Hi everyone, I'd appreciate some pointers here... I am trying to get a directory listing from a network drive through .NET. The code works locally on the webserver perfectly however remotely it gives an Access is Denied error after the authentication fails...
I found the following at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetse c/html/SecNetch08.asp and have done the following: Using the ASP.NET Process Identity When the application is not configured for impersonation, the ASP.NET process identity provides the default identity when your application attempts to access remote resources. If you want to use the ASP.NET process account for remote resource access, you have three options: * Use mirrored accounts. This is the simplest approach. You create a local account with a matching user name and password on the remote computer. You must change the ASPNET account password in User Manager to a known value (always use a strong password). You must then explicitly set this on the <processModel> element in Machine.config, and replace the existing "AutoGenerate" value. Important If you change the ASPNET password to a known value, the password in the LSA will no longer match the SAM account password. If you need to revert to the "AutoGenerate" default, you will need to do the following: Run Aspnet_regiis.exe, to reset ASP.NET to its default configuration. For more information, see article Q306005, HOWTO: Repair IIS Mapping After You Remove and Reinstall IIS <http://support.microsoft.com/default.aspx?scid=kb;en-us;Q306005> in the Microsoft Knowledge Base. * Create a custom, least privileged local account to run ASP.NET and create a duplicate account on the remote computer. * Run ASP.NET using a least-privileged domain account. This assumes that client and server computers are in the same or trusting domains. Unfortunately when viewing the page remotely it asks me to log on, although the logon box says Connecting to 'mywebserver' I cannot find any account and password which will allow me to pass here either on the mywebserver any domain account. Any ideas? Richard. ________________________________________________________________________________ This message might contain confidential information. If it has been sent to you in error please do not forward it or copy it or act upon its contents, but report it to [EMAIL PROTECTED] Forum Bioscience Holdings Ltd & subsidiary companies (Forum) have the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as Forum deems to be necessary in order to protect its information, its interests and its reputation. Forum prohibits and takes steps to prevent its information systems from being used to view, store or forward offensive or discriminatory material. If this message contains such material please report it to [EMAIL PROTECTED] This message has been virus checked by messagelabs.com [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/saFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
