Ask a Question related to ASP.NET General, Design and Development.
-
Kevin Spencer #1
Re: DirectoryInfo.....
Try not using an Administrative Share.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
[url]http://www.takempis.com[/url]
Complex things are made up of
lots of simple things.
"Tap" <tapasvi.mehta@citigroup.com> wrote in message
news:0a1901c35b55$3ad5e530$a501280a@phx.gbl...> I am trying to read directories that are on mapped drive
> using DirectoryInfo class, and it does not allow it.
>
> 1) From development box mapping a drive that is on Windows
> NT machine.
>
> 2) Trying to read this mapped drive from ASP.NET code
> behind file, and it does not recognizes this folder.
> Exists property is returned as false.
>
> '''''''
> Dim source As DirectoryInfo = _
> New DirectoryInfo("\\MyServer\MyShare$\")
>
> If source.exists Then
>
> Else
>
> End If
> '''''''
>
> I also tried changing the "processModel" username &
> password to Windows NT machine logon name & password and
> it works fine with VB.NET projects, but not ASP.NET
> projects. What can i do to resolve this ?
>
> Thanks,
>
Kevin Spencer Guest
-
RePost : DirectoryInfo.....
I am trying to read directories that are on mapped drive using DirectoryInfo class, and it does not allow it. 1) From development box mapping a... -
Tap #2
Re: DirectoryInfo.....
Are you saying that, i use another user id and a password
who does not have administrative access to that machine ?
Windows>-----Original Message-----
>Try not using an Administrative Share.
>
>--
>HTH,
>
>Kevin Spencer
>Microsoft MVP
>..Net Developer
>[url]http://www.takempis.com[/url]
>Complex things are made up of
>lots of simple things.
>
>"Tap" <tapasvi.mehta@citigroup.com> wrote in message
>news:0a1901c35b55$3ad5e530$a501280a@phx.gbl...>> I am trying to read directories that are on mapped drive
>> using DirectoryInfo class, and it does not allow it.
>>
>> 1) From development box mapping a drive that is on>>> NT machine.
>>
>> 2) Trying to read this mapped drive from ASP.NET code
>> behind file, and it does not recognizes this folder.
>> Exists property is returned as false.
>>
>> '''''''
>> Dim source As DirectoryInfo = _
>> New DirectoryInfo("\\MyServer\MyShare$\")
>>
>> If source.exists Then
>>
>> Else
>>
>> End If
>> '''''''
>>
>> I also tried changing the "processModel" username &
>> password to Windows NT machine logon name & password and
>> it works fine with VB.NET projects, but not ASP.NET
>> projects. What can i do to resolve this ?
>>
>> Thanks,
>>
>
>.
>Tap Guest
-
Deepak Kumar Vasudevan #3
Re: DirectoryInfo.....
Does the running account has Access for the drive that is being accessed?
ASP.NET will run with LOCALMACHINE/ASPNET account
--
================================
Deepak Kumar Vasudevan
CS Software Solutions
Phones: +91-44-2819-1336 thru 38
91-98400-26014
[url]www.cssolutionsinc.com[/url]
Mailbox Protected by SpamPal ([url]http://www.spampal.org.uk/[/url])
================================
"Tap" <tapasvi.mehta@citigroup.com> wrote in message news:0a1901c35b55$3ad5e530$a501280a@phx.gbl...
I am trying to read directories that are on mapped drive
using DirectoryInfo class, and it does not allow it.
1) From development box mapping a drive that is on Windows
NT machine.
2) Trying to read this mapped drive from ASP.NET code
behind file, and it does not recognizes this folder.
Exists property is returned as false.
'''''''
Dim source As DirectoryInfo = _
New DirectoryInfo("\\MyServer\MyShare$\")
If source.exists Then
Else
End If
'''''''
I also tried changing the "processModel" username &
password to Windows NT machine logon name & password and
it works fine with VB.NET projects, but not ASP.NET
projects. What can i do to resolve this ?
Thanks,
Deepak Kumar Vasudevan Guest



Reply With Quote

