Re: Styles and images not rendered when debugging in VS 2005
- From: "Dave Sexton" <dave@jwa[remove.this]online.com>
- Date: Tue, 13 Jun 2006 14:33:31 -0400
Hi John,
Try dropping a web.config file in the directory that contains your images to
allow anonymous access:
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web>
<authorization>
<!-- allow all unauthenticated users to download images
do not place .aspx files or sensitive data in the
directory that contains this web.config file -->
<allow users="?" />
</authorization>
</system.web>
</configuration>
You can also use the <location> element in the root web.config file to do
the same thing.
HTH
"John Ashmore" <John Ashmore@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E6B33DEA-B0D7-442D-9B5D-01189884D80D@xxxxxxxxxxxxxxxx
I have built a web application using ASP.NET 2.0 master pages to store
common
content. However, once I enabled Forms authentication in web.config, the
pages no render properly when running in debug mode. None of the images or
styles are displayed. I have tried to publish the application to another
folder and run it directly from a browser and everything is OK. The
problem
only occurs when running in debug mode from VS 2005.
Any help would be greatly appreciated!
Thanks,
John
.
- Prev by Date: Warning: "Project will be debugged with specific security permissions"
- Next by Date: referenced libs with Copy Local = False
- Previous by thread: Warning: "Project will be debugged with specific security permissions"
- Next by thread: referenced libs with Copy Local = False
- Index(es):
Relevant Pages
|