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 11189
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
requestedExecut ionLevel attribute. See the section on "Applicatio n 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:sche mas-microsoft-com:asm.v1" manifestVersion ="1.0">
<trustInfo xmlns="urn:sche mas-microsoft-com:asm.v3">
<security>
<requestedPrivi leges>
<requestedExecu tionLevel level="requireA dministrator" uiAccess="true"/>
</requestedPrivil eges>
</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: <requestedExecu tionLevel level="requireA dministrator" uiAccess="true"/> <
Omit "uiAccess="true "" for console admin applications. Substitute this line
instead:
<requestedExecu tionLevel level="requireA dministrator"/>
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.m icrosoft.com> schrieb im Newsbeitrag
news:Dp******** ******@TK2MSFTN GXA03.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 requestedPrivil eges and
requestedExecut ionLevel 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 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 space.
www.gallerox.com
I am trying to follow step 1 of the article. I do not understand what the
|
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 process rights.
|
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 with restricted
trust policy (medium trust). Since that I cannot configure my
web.config to run !!!
I have noticed that two controls mentioned above create problem (when I
remove them it works fine , without editing web.config at all ).
Can...
|
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 policy. To grant this application the required
permission please contact your system administrator or change the
application's trust level in the configuration file.
|
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)
Following two examples.
"My virtual directory/Some directory/Some other directory"
within an application in "My virtual directory" I have to get
FileVersionInfo of files from "Some other directory"
string dPath = "Some directory";
ArrayList al =...
| |
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 ("Administrator level")
and believe it has to be done from within this manifest file that is to be
linked into the program.
--
-----------
Thanks,
|
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 build and
publish it. The app files show up on the server. I went into IIS and
created it the app as a virtual directory. Now IIS looks good, with
the gear icon on the directory, but trying to access the application
via IE gives this message:
...
|
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 a shared server.
So thrust level is high
|
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 internet and got http://msdn.microsoft.com/en-us/library/ms998341.aspx article.
as described in article, i made 'customWeb_mediumtrust.config' file and place it into Base Directory (Am i right???)
at compiling it is giving following error-...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |