----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: LovedJohnySmith Message 4 in Discussion Folks - We can't understand your problems unless, you mentioned your problem clearly, anyway let me give you the solution from my understanding of your problem. 1) Please try using _mkdir, just for kicks - http://hatka.net/wlogdev/archive/2004/08/29/178.aspx 2) <identity impersonate="true" 3) Impersonation in code - http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q306158#4 (Checking System.Security.Principal.WindowsIdentidy.GetCurrent().Name before and after impersonation shows the context changed, but the CreateDirectory fails anyway. 4) Changing the account aspnet_wp runs under - changed it to system and to your poweruser account. and try to wrote a small regular .net application that makes a call to Directory.CreateDirectory(@"n:\test"). so you all know the NAS is working correctly and it has to be a permissions issue of some kind. 5) You may try to strong-name the ASP.NET application and set fully trust for the assembly. If it looks still a code access security error, you may try open assembly.cs in your project and add following code: using System.Security; using System.Security.Permissions; [assembly:FileIOPermission(SecurityAction.RequestMinimum,Unrestricted=true)] // Request complete File IO functionality [assembly:RegistryPermission(SecurityAction.RequestMinimum, All="*")] //Request complet access to the registery key [assembly:ZoneIdentityPermission(SecurityAction.RequestMinimum,Zone=Security Zone.NoZone)] // Request unrestricted zone These will help your application to require proper permission. Thanx, Smith ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
