Re: Styles and images not rendered when debugging in VS 2005

Tech-Archive recommends: Speed Up your PC by fixing your registry



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



.



Relevant Pages

  • Re: Retrieving image from SQL (C#) problem
    ... In ASP.NET 2.0 I am retrieving images from a MS SQL server, ... SqlConnection con = new SqlConnection); ... --> Why does this work in debug mode, and not on the published folder? ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: readnotify.com
    ... Readnotify doesn't primarily rely on web bugs, ... to NOT download images will not protect you. ... :Can O2k be set so that it doesn't auto download images? ... Computer Emergency Response Teams, and Digital Investigations. ...
    (Security-Basics)
  • Re: No Pics/Graphics in OE
    ... click here to download images?? ... saying click here to download the images. ... "Robbie" wrote in message ... > in" block Images and other external html email" This will allow you to see ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Anyone using an ARCHOS
    ... instead of having to take the laptop on holiday. ... Does anyone know if they can download images ... from a CF card reader or must they be downloaded ... will the Archos accept RAW images or must ...
    (rec.photo.digital)
  • Re: saving web based images in mail items in Calendar
    ... I opened the e-mail, right clicked to download images, saved, reopened and there were no images. ... I also clicked on the bar within the e-mail message to download images, save, etc. ... ... Diane Poremsky [MVP - Outlook] ...
    (microsoft.public.outlook.calendaring)