Click here to Skip to main content
15,887,822 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Phase 1: Using asp.net 4.x (IIS 6.0) for the company's website, all web pages display correctly, both where locally stored pages are concerned, as well as pages stored on a (virtual directory) network share called \\MyServer\MyDocumentation$. To access the network share I am using IUSR_MYWEBSITE and a manually set up password (not managed by the server), which matches a username and password on the file server. This works fine and all links work ok and show the pages whether these are local or on the share, including .mht and .htm files.

Phase 2: I designed my own HttpHandler to control access to .mht and .htm files, and set up Application Extension Mappings for .htm and .mht files (aspnet_isapi.dll, all verbs). I also made the required entry in web.config (add path="*.mht" verb="*" type="MyHttpHandler" /.) This works fine for locally stored mht or htm pages (on the web-server), but not for the pages (.mht and .htm) on the virtual directory (network share). The error is listed below. When I remove the Application Extension Mappings then links work fine once again but the HttpHandler is not being used.

I have tried to set whatever permissions I thought could be set but attempts have so far been futile.

Any help would be greatly appreciated.

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: An error occurred loading a configuration file: Failed to start monitoring changes to '\\MyWebSite\MyDocumentation$ because access is denied.

Source Error:
[No relevant source lines]

Source File: \\MyWebSite\MyDocumentation$\web.config    Line: 0
Posted
Updated 18-Jan-12 0:04am
v5
Comments
Slacker007 18-Jan-12 6:04am    
Edits made: Formatting, tags.
Surendra_Singh 31-May-19 5:51am    
Is solve? i have same Problem.

1 solution

If you have created a handler on root of your application then it will be invisible for the application in virtual directory.

http://www.beansoftware.com/ASP.NET-FAQ/Virtual-Directory-Http-Handler.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900