HiI have just upgraded my development machine (Vista sp1, VS2008) to 9.1 and I am having the following error with static files. Any dynamic files are returned OK, but any static files, htm, images etc give the error. Anyone have an idea as to why?A request for http://localhost/ig_common/20091CLR35/Forms/WebSchedule/AppointmentAdd.aspx works OK (well apart from all the missing images) but a request for http://localhost/ig_common/20091CLR35/Forms/WebSchedule/print.htm gives the following error:Server Error in Application "DEFAULT WEB SITE/IG_COMMON"Internet Information Services 7.0Error SummaryHTTP Error 500.19 - Internal Server ErrorThe requested page cannot be accessed because the related configuration data for the page is invalid.Detailed Error InformationModule CustomErrorModuleNotification SendResponseHandler StaticFileError Code 0x80070021Config Error Lock violationConfig File \\?\C:\inetpub\wwwroot\aspnet_client\Infragistics\web.configRequested URL http://localhost:80/ig_common/images/BlueExplorer.gifPhysical Path C:\inetpub\wwwroot\aspnet_client\Infragistics\Images\BlueExplorer.gifLogon Method AnonymousLogon User AnonymousConfig Source 12: <handlers accessPolicy="Read, Script"/> 13: <staticContent enableDocFooter="false" isDocFooterFileName="true" defaultDocFooter=""> 14: <clientCache cacheControlMode="NoControl"/></staticContent>Links and More Information This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.View more information »
Kannan.S, that article is about a different error with different causes. I am not migrating or creating the web.config(s) that cause my error.
Hi,
Refere the below link and resolve the problem.
http://weblogs.asp.net/mschwarz/archive/2008/11/07/appcmd-migrate-and-http-error-500-22-things-you-can-try.aspx
Regards,
Kannan.S
[Infragistics] Sung Kim, sadly that didn't help at all.
The only thing I have found that makes it work is removing the staticContent section from all the web.configs
To make my example above work I need to remove:
<staticContent enableDocFooter="false" isDocFooterFileName="true" defaultDocFooter=""><clientCache cacheControlMode="NoControl"/></staticContent>
From:
C:\inetpub\wwwroot\aspnet_client\Infragistics\web.configC:\inetpub\wwwroot\aspnet_client\Infragistics\20091CLR35\Forms\web.configC:\inetpub\wwwroot\aspnet_client\Infragistics\20091CLR35\Forms\WebSchedule\web.config
I did find some posts on iis.net about "unlocking" the staticContent section which I have done and it makes no difference
I delete web.config in aspnet_client/Infragistics folder and another inside the image folder.
Then the image show again, but I m not sure this will bring other issues or not.
Try reinstalling the .NET feature of IIS 7.0:
http://www.sjmdev.com/post/2009/02/26/HTTP-Error-50019-Internal-Server-Error-IIS-7e28093fix.aspx