unknown_routine
asked on
Location of files in IIS . Where pic folders should go
I have IIS 7.5 and when I go to InetMgr, I right click on the default website and then choose Explore,I see:
C:\inetpub\wwwroot
So far so good and as expected.
Now I created a C# web application and created a virtual directory under the default website I right click and explore I see :
C:\CSharpTest\WebApplicati on8\WebApp lication8
This is also can be expected. However When I Run the Application picture are not loaded since WebApplication8 folder is not created in C:\inetpub\wwwroot.
I know .NET 2.0 VS 2005 does creates the folder in inetpub\wwwroot. So under Vs 2010 Do I need to copy files manually to the Inetpub/wwwroot?
C:\inetpub\wwwroot
So far so good and as expected.
Now I created a C# web application and created a virtual directory under the default website I right click and explore I see :
C:\CSharpTest\WebApplicati
This is also can be expected. However When I Run the Application picture are not loaded since WebApplication8 folder is not created in C:\inetpub\wwwroot.
I know .NET 2.0 VS 2005 does creates the folder in inetpub\wwwroot. So under Vs 2010 Do I need to copy files manually to the Inetpub/wwwroot?
What is the URL that you are using for pictures? Using relative paths for pictures makes it easy to show pictures from any location from within the website folder.
ASKER
I found more interesting Info:
When page loads I see empty picture place holder. If I right click on it and then choose properties I see:
http://localhost/WebApplication8/pics/a.jpg
Then If I put this directly into the IE: http://localhost/WebApplication8/pics/a.jpg
I get an empty page!
When page loads I see empty picture place holder. If I right click on it and then choose properties I see:
http://localhost/WebApplication8/pics/a.jpg
Then If I put this directly into the IE: http://localhost/WebApplication8/pics/a.jpg
I get an empty page!
Just for kicks, try to put this into the browser and let me know what you get.
http://localhost/WebApplication8/WebApplication8/pics/a.jpg
This is based on your recent post that says you have a virtual directory in this location:
C:\CSharpTest\WebApplicati on8\WebApp lication8
Now usually this is the name of the the application "CSharpTest" along with the actual directory that it is under "WebApplication8" but you seem to have an additional folder called "WebApplication8"
http://localhost/WebApplication8/WebApplication8/pics/a.jpg
This is based on your recent post that says you have a virtual directory in this location:
C:\CSharpTest\WebApplicati
Now usually this is the name of the the application "CSharpTest" along with the actual directory that it is under "WebApplication8" but you seem to have an additional folder called "WebApplication8"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Found the answer!