Link to home
Start Free TrialLog in
Avatar of unknown_routine
unknown_routineFlag for United States of America

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\WebApplication8\WebApplication8

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?
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

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.
Avatar of unknown_routine

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!
Avatar of jonjojr
jonjojr

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\WebApplication8\WebApplication8

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
Avatar of unknown_routine
unknown_routine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Found the answer!