Problem with images in VS2005

M

Miguel Dias Moura

Hello,

I just moved from Visual Studio 2003 to Visual Studio 2005.
I am creating a web site and all the images are in App_GlobalResources.

In Design View I can see all the images but as soon as I preview the
web site in Internet Explorer i can't see any image.

In my browser I checked the url of one of the images and the url is:
http://localhost:1270/BonsAlunos_v200/App_GlobalResources/logo.jpg

Do you know what might be going on?

My web site is in MyDocuments/My Web Projects

Thank You Very Much,
Miguel
 
D

Daniel TIZON

Hi Miguel,
ASP.NET 2.0 comes with new reserved folders. These folders begins with
App_xxx.
These folders are protected from HTTP download, because are supposed to be
used server side only
For example, the App_GlobalResources folder is used to contain resources
files (.resx) that are automaticaly compiled into typed classes, that are
accessibles from all Pages of your site.

So, you should use another folder to place your images, sorry !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top