So, it is the permission problem with ASPNET user, not the problem with the user I 
created locally, 'myPowerUser', and put in web.config(impersonate)?  What should I do? 
 Thanks.

bobfilipiak <[EMAIL PROTECTED]> wrote:It is a matter of permissions. You have 
permissions to map the drive 
but the ASPNET user doesn't have access to it.



--- In [EMAIL PROTECTED], Brian Qing 
<[EMAIL PROTECTED]> wrote:
> In Windows 2003, I mapped a network drive G:.  In ASP Net, there 
is a code snippet: 
>  
> Dim a, b as boolean
> Dim objDOM as new XmlDocument
>  
> a = System.IO.File.Exists("C:\LocalFolders\SomeFiles.xml")
> b = System.IO.File.Exists("G:\NetFolders\SomeFiles.xml")
> objDOM.load("G:\NetFolders\SomeFiles.xml")
>  
> C: is the local hard drive.  Variable 'a' returns 'true' and 
variable 'b' returns 'false'.  This is run under IIS.  ASP .Net 
worker process is impersonated under 'myPowerUser', which is member 
of Power Users group.
>  
> If I create a small windows application and copy/paste the same 
code snippet and run, of course, under my windows logon account, 
which is member of Administrators.  Then, Variable 'a' 
returns 'true' and variable 'b' returns 'true'.
>  
> However, if I assign 'myPowerUser' to be member of Administrators, 
it still does not work.
>  
> The whole thing works on the another Windows 2000 server, but not 
this Windows 2003 server.  Does anyone know what is going on?  
Thanks.
> 
>             
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!
> 
> [Non-text portions of this message have been removed]


Yahoo! Groups SponsorADVERTISEMENT


---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
  
   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



                
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!

[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/

<*> 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/
 

Reply via email to