I am trying to create an HttpHandler as discussed in Chapt 23 pages 945 and 946.
I receive the following error:
Parser Error Message: Could not load file or assembly 'App_Code' or one of its dependencies. The system cannot find the file specified.
The only modification that may be causing me grief was from early in the book, Chapt 3 page 80, structuring the web.config file so that classes in the \App_Code folder can use different languages. However, the \App_Code\VB
gives the same error.
After trying different type commands settings. I still could not get anything to work. Then I came accross the following post http://www.codecomments.com/archive2...10-672264.html
. This posting says just to leave off the App_Code parameter, it is not required. Leaving off the parameter eliminated the error. However, now when I specify the URL in the browser, I get a "The page cannot be found" error in the browser.
Here is my browser address, the application's web config and program's class declarations:
<add verb ="*" path ="WebCam.img" type="MappedWebCamCapture"/>
Public Class MappedWebCamCapture : Implements IHttpHandler
Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
context.Response.ContentType = "image/jpg"
Also, when using example on page 943, using *ashx files and outputting an image from an HttpHandler. This works great on the local server. However, when specifying the url remotely, the browser does not know how to handle the request. It first asks me if i want to download the ashx file. When I say yes, and specify to save as image.jpg, I can save and open the image. Additional, if I specify the url in an asp page on a remote server image control will the show the image.
Why won't the local computer serve up the remote image?