Home All Groups Group Topic Archive Search About

Problem with images in VS2005

Author
16 Dec 2005 5:17 PM
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

Author
16 Dec 2005 6:08 PM
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 !

--
Daniel TIZON
MCP - MCSD.NET - MCT


"Miguel Dias Moura" <md*REMOVE*moura@gmail*NOSPAM*.com> a écrit dans le
message de news: uJO4jSmAGHA.***@TK2MSFTNGP12.phx.gbl...
Show quote
> 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
>

AddThis Social Bookmark Button