G
gogaz
Hi,
I know query in Subject line "Could not find a part of the path" has
been replied before lots of time, but mine is bit different.
My web server is windows 2003 R2 with both .net framework 1.1 and 2.0
installed on C:\.
Websites are saved on D:\wwwroot
I run the follow code for a website which is running on dedicated pool,
aspx files on 1.1 framework:
If Not directory.Exists(Server.mappath("..\Images\" & i)) then
directory.create(Server.mappath("..\Images\" & i))
end if
When i try to create a sub-folder 22 under D:\wwwroot\<website>\Images\
i get following error:
Could not find a part of the path "D:\"
If i manually create folder 22, then the code works fine to upload
images into that folder.
I googled a lot and tried everything... gave aspnet account full
permissions to D:, tried
http://support.microsoft.com/default.aspx?scid=kb;en-us;827421
also set up asp.net service to run using Network Service, restarted
server.. but all in vain
Then i changed the website properties -> ASP.NET tab -> ASP.NET version
from 1.1 to 2.0
And this did the trick and code started working fine.
But i have around 70 websites on this server using .net 1.1, and also I
DONT want to use this approach coz I am sure there must be a workaround
to use both 1.1 and 2.0 on same IIS and running websites properly
Please help!!
Thanx in advance
Warm Regards
PS: I got error in event log that permission denied to
\\<servername>\D$\System Volume Information
when i was running servermapdrive service mentioned in
http://support.microsoft.com/default.aspx?scid=kb;en-us;827421
I know query in Subject line "Could not find a part of the path" has
been replied before lots of time, but mine is bit different.
My web server is windows 2003 R2 with both .net framework 1.1 and 2.0
installed on C:\.
Websites are saved on D:\wwwroot
I run the follow code for a website which is running on dedicated pool,
aspx files on 1.1 framework:
If Not directory.Exists(Server.mappath("..\Images\" & i)) then
directory.create(Server.mappath("..\Images\" & i))
end if
When i try to create a sub-folder 22 under D:\wwwroot\<website>\Images\
i get following error:
Could not find a part of the path "D:\"
If i manually create folder 22, then the code works fine to upload
images into that folder.
I googled a lot and tried everything... gave aspnet account full
permissions to D:, tried
http://support.microsoft.com/default.aspx?scid=kb;en-us;827421
also set up asp.net service to run using Network Service, restarted
server.. but all in vain
Then i changed the website properties -> ASP.NET tab -> ASP.NET version
from 1.1 to 2.0
And this did the trick and code started working fine.
But i have around 70 websites on this server using .net 1.1, and also I
DONT want to use this approach coz I am sure there must be a workaround
to use both 1.1 and 2.0 on same IIS and running websites properly
Please help!!
Thanx in advance
Warm Regards
PS: I got error in event log that permission denied to
\\<servername>\D$\System Volume Information
when i was running servermapdrive service mentioned in
http://support.microsoft.com/default.aspx?scid=kb;en-us;827421