Is there any way to coax the VC8 linker into generating an application
manifest with a trust level section suitable for an administrative
application? Or do I have to add this manually each time that I rebuild?
Regards,
George. 11 11166
Hi George, Is there any way to coax the VC8 linker into generating an application manifest with a trust level section suitable for an administrative application?
Would you please provide more detailed information about this issue? How do
you use the -tr option manually to generate the application manifest right
now?
Thanks for your understanding!
Best regards,
Gary Chang
Microsoft Community Support
================================================== ====
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006. Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
================================================== ====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from this issue.
================================================== ====
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ====
Gary,
Thanks for your reply. I am referring to setting the
requestedExecutionLevel attribute. See the section on "Application Manifest
Schema" in http://msdn.microsoft.com/library/de...cProtVista.asp.
According to another MSDN article which I can't seem to find right now, this
is an extension of the trust level section. The article is dated September
2005 but you must have known about it for some time internally. Surely you
have given some thought to this by now. Would you please provide more detailed information about this issue? How do you use the -tr option manually to generate the application manifest right now?
Frankly, that is not a very palatable option. It would be nice to find a
simple example of an administrative application manifest that didn't contain
a bunch of COM or .Net gobble-de-gook.
Regards,
George.
To answer my own post (in part): It would be nice to find a simple example of an administrative application manifest that didn't contain a bunch of COM or .Net gobble-de-gook.
I pulled this off of somebody's blog (with corrected syntax):
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" uiAccess="true"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
Regards,
George.
That's great, George! I am glad to know you found the solution.
If you have any more concerns on it, please feel free to post here.
Have a nice day!
Best regards,
Gary Chang
Microsoft Community Support
================================================== ====
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006. Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
================================================== ====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from this issue.
================================================== ====
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ====
Gary,
As I stated, my previous post only answered my question "in part." The
unanswered part is how to get the linker to add this automatically so that I
don't have to edit the manifests manually. Is there any way to get the
linker to insert custom xml into the manifest?
To update my previous post: <requestedExecutionLevel level="requireAdministrator" uiAccess="true"/> <
Omit "uiAccess="true"" for console admin applications. Substitute this line
instead:
<requestedExecutionLevel level="requireAdministrator"/>
Regards,
George.
Sorry, Georgr, I missed your original point. :( Is there any way to get the linker to insert custom xml into the manifest?
yes, you can merge your manifest into the application's manifest:
1. Open the project's Property Pages dialog.
2. Specify the manifest file you need to insert in the Configuraion
Properties/Manifest Tool/Input and Output/Additional Manifest Files entry.
3. Click OK and Rebuild the project.
Wish this helps!
Best regards,
Gary Chang
Microsoft Community Support
================================================== ====
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006. Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
================================================== ====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from this issue.
================================================== ====
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ====
Gary,
Well this procedure works well as far as the VC8 linker is concerned.
However the output took down every system on which I tried to run the
application with the merged manifest. This doesn't happen if I edit the
manifests manually. This isn't really your problem (in this NG) but it
certainly is a problem for someone at MS.
Regards,
George.
""Gary Chang[MSFT]"" <v-******@online.microsoft.com> schrieb im Newsbeitrag
news:Dp**************@TK2MSFTNGXA03.phx.gbl... Sorry, Georgr, I missed your original point. :(
Is there any way to get the linker to insert custom xml into the manifest?
yes, you can merge your manifest into the application's manifest:
1. Open the project's Property Pages dialog. 2. Specify the manifest file you need to insert in the Configuraion Properties/Manifest Tool/Input and Output/Additional Manifest Files entry. 3. Click OK and Rebuild the project.
Wish this helps!
Best regards,
Gary Chang Microsoft Community Support ================================================== ==== PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00 AM PST, February 14, 2006. Please complete a re-registration process by entering the secure code mmpng06 when prompted. Once you have entered the secure code mmpng06, you will be able to update your profile and access the partner newsgroups. ================================================== ==== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from this issue. ================================================== ==== This posting is provided "AS IS" with no warranties, and confers no rights. ================================================== ====
Thanks for understanding, George.
I apologize for any inconvenience this may cause you, we will forward your
feedback to our corresponding product team for review.
Good Luck!
Best regards,
Gary Chang
Microsoft Community Support
================================================== ====
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006. Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
================================================== ====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from this issue.
================================================== ====
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ====
""Gary Chang[MSFT]"" wrote: Thanks for understanding, George.
I apologize for any inconvenience this may cause you, we will forward your feedback to our corresponding product team for review.
I want to confirm what George is seeing. If I include the manifest he posted
in a .manifest file and let the manifest tool generate the resource, it
causes a BSoD on XP systems. Sometimes, I have to run the app two or three
times before it crashes, and sometimes the crash takes a few seconds to kick
in, but it's consistent.
Before I found this thread, I had narrowed it down to the <security> tag. It
seemed that, no matter what I included in <security>, if it was present, the
app would crash. However, the security section is necessary for UI automation
applications in Windows Vista
( http://windowssdk.msdn.microsoft.com...2ae702805.asp),
so removing it is not an option.
As a side note, the IDE doesn't understand the requestedPrivileges and
requestedExecutionLevel tags. It generates a warning if they are present in
the .manifest file.
I did enter a bug against this in the MSDN product feedback center at http://lab.msdn.microsoft.com/Produc...ckID=FDBK48918 if anybody wants to validate/vote on it.
To workaround this, you can either edit the resource directly after
building, or do what I did:
1) Manually add a resource to the project of type RT_MANIFEST and ID of 1.
2) Paste the contents of the .manifest file into the resource.
3) Go to the project properties, go to the manifest tool's input/output
section, and turn off the option to embed the manifest.
Then, when you build, the resource will be properly formed, won't crash XP,
and will allow UI automation in Vista (as long as you sign it), without
having to remember to manually edit the resources after building.
--
Troy
Troy,
Sorry to see this is still a problem on XP systems. I guess someone will
have to develop an exploit to get it fixed. :-) What I find particularly
interesting is that vulnerable systems go down hard. They don't even
genearate a crash dump.
Regards,
George.
"Troy" <Tr**@discussions.microsoft.com> schrieb im Newsbeitrag
news:1A**********************************@microsof t.com... ""Gary Chang[MSFT]"" wrote:
Thanks for understanding, George.
I apologize for any inconvenience this may cause you, we will forward your feedback to our corresponding product team for review.
I want to confirm what George is seeing. If I include the manifest he posted in a .manifest file and let the manifest tool generate the resource, it causes a BSoD on XP systems. Sometimes, I have to run the app two or three times before it crashes, and sometimes the crash takes a few seconds to kick in, but it's consistent.
Before I found this thread, I had narrowed it down to the <security> tag. It seemed that, no matter what I included in <security>, if it was present, the app would crash. However, the security section is necessary for UI automation applications in Windows Vista (http://windowssdk.msdn.microsoft.com...2ae702805.asp), so removing it is not an option.
As a side note, the IDE doesn't understand the requestedPrivileges and requestedExecutionLevel tags. It generates a warning if they are present in the .manifest file.
I did enter a bug against this in the MSDN product feedback center at http://lab.msdn.microsoft.com/Produc...ckID=FDBK48918 if anybody wants to validate/vote on it.
To workaround this, you can either edit the resource directly after building, or do what I did:
1) Manually add a resource to the project of type RT_MANIFEST and ID of 1. 2) Paste the contents of the .manifest file into the resource. 3) Go to the project properties, go to the manifest tool's input/output section, and turn off the option to embed the manifest.
Then, when you build, the resource will be properly formed, won't crash XP, and will allow UI automation in Vista (as long as you sign it), without having to remember to manually edit the resources after building.
-- Troy
"RossettoeCioccolato" wrote: Troy,
Sorry to see this is still a problem on XP systems. I guess someone will have to develop an exploit to get it fixed. :-) What I find particularly interesting is that vulnerable systems go down hard. They don't even genearate a crash dump.
Thanks to your post, I realized that it wasn't a problem in the manifest
itself, like I first thought. The workaround isn't too bad, but it does mean
that changes to the manifest are a two-step process, since you have to edit
the XML file as well as the .RC. I suppose you could edit the resource
directly, but it's much easier to work with XML than a hex dump. <g>
I've never entered a bug through the MSDN product feedback, so I'm not sure
if you can see it at http://lab.msdn.microsoft.com/Produc...ckID=FDBK48918. Maybe if enough people vote on it, it might get fixed. :)
--
Troy This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Carl Gilbert |
last post by:
Hi
I was reading an article
(http://blogs.msdn.com/pandrew/archive/2004/10/31/250161.aspx) on getting
nGallery to work as I am having issues getting my application to work on
some 1&1 web...
|
by: Fabrice |
last post by:
Hello,
One question about security. I try to secure my web application on IIS6 and
asp.net 1.1
I have differents questions about the element "trust level" in the
config.web to manage...
|
by: Aahz |
last post by:
I have asp.net 1.1 web site with two controls downloaded from internet
(obout slide menu and webcharts), which runs fine on the old server.
Few days ago my hosting provider sent me on new server...
|
by: g3000 |
last post by:
I used VS .Net 2003 to run a c# web app.
but when I run it I get the below
Security Exception
Description: The application attempted to perform an operation not
allowed by the security...
|
by: Tamir Khason |
last post by:
According guidlines of ASP.NET security with medium trust level I should able
to use file system IO with my virtual directory, but actual recieve error
500 (not appears with full trust level)...
|
by: Steve Teeples |
last post by:
Can an application manifest document be added to a C# application? If so,
can it be done from within the IDE of Visual Studio 2005?
I want to customize my application's security level...
|
by: dgk |
last post by:
Is there a FAQ somewhere about how to publish a web app to a (2003)
server? I've mapped a drive to a directory under inetpub/wwwroot, and
used the Visual Studio "Publish Web Site" menu option to...
|
by: KUTTAN |
last post by:
I a using
System.Reflection
System.Runtime.InteropServices
System.Security.Permissions
In my web application
In this, Reflection need low thrust level to run
But I have hosted my site in ...
|
by: vikysaran |
last post by:
Hello,
I have my new application on Godaddy.com server. Previously it was giving error on Permission. i asked support about it and they told me to set trust level MEDIUM so I search over the...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |