Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Allowing development in UNC path
Message
Information générale
Forum:
ASP.NET
Catégorie:
Securité
Divers
Thread ID:
00788595
Message ID:
00788716
Vues:
44
I'm glad it was a simple fix.

>Thank you very much.
>
>Would you believe, the only thing I was doing wrong was not selecting URL instead of AllCode from that picklist.
>
>Thanks again
>Kev
>
>>Hi Kevin,
>>
>>By default, a UNC path is not a "trusted" location for a project. Your project may not run correctly when you attempt to debug or run from this location. For more information, see Configuring Security Policy.
>>
>>The following tools modify the policy affecting the file share:
>>.NET Framework Configuration Tool (Mscorcfg.msc)
>>Code Access Security Policy Tool (Caspol.exe)
>>
>>Starting the .NET Framework Configuration Tool
>>To run Mscorcfg.msc from the Start menu:
>>Click Start, point to Programs, and point to Administrative Tools.
>>Click Microsoft .NET Framework Configuration.
>>
>>To run Mscorcfg.msc from the command line:
>>At the command line, type:
>>
>><Drive>:\\Winnt\Microsoft.NET\Framework\<Version number>\mscorcfg.msc
>>
>>The user interface for the tool is displayed.
>>
>>Mscorcfg.msc
>>One (simple) way to modify the policy affecting a file share is to give a specific file share FullTrust permission using mscorcfg.msc. You must be an administrator on the computer to make this change.
>>To give a file share FullTrust permission:
>>1. Start mscorcfg.msc.
>>2. Expand the security node, the Machine node, the Code Groups node, the
>>All_Code node, and then highlight the LocalIntranet_Zone node.
>>3. In the right pane select Add a new child code group to this code group.
>>4. Choose Create a new Codegroup, then click Next.
>>5. Choose a Condition Type of Zone, then select Local Intranet Click Next.
>>(You can also choose "URL" condition type and input the UNC path.)
>>6. Choose Use Existing Permission Set of FullTrust. Click Next.
>>7. Click Finish.
>>8. Restart Visual Studio.
>>9. Build your project.
>>
>>
>>>Hi
>>>
>>>I want to store my code into a UNC path rather than my local machine, how can I update the security to allow programs to be run in that path?
>>>
>>>I can get the EXE to run fine outside the .Net environment, but it won't run in Debug mode!
>>>
>>>Any ideas?
>>>Thanks
>>>Kev
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform