urlMappings tag in Web.config

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
3/7/2012 4:57:21 AM
Gravatar
Total Posts 1

urlMappings tag in Web.config

Hi everybody,

 

I am working in mojoportal 2.3.6.2 with Visual Studio 2010 and have troubles with the tag urlMappings in web.config file.

If i use the tag in a simple Visual Studio WebApplication project, as in

<urlMappings enabled="true">
   <addurl="~/ir/bwcamera.mjpeg"mappedUrl="~/Handler1.ashx"/>
</urlMappings>

at the request for the url /ir/bwcamera.mjpeg/ I am redirected in the metod ProcessRequest of the class Handler1 in the file Handler1.ashx.cs. The method writes the sentence "Hello World" in the response in this way:

public void ProcessRequest(HttpContext context)
{
     context.Response.ContentType ="text/plain";
     context.Response.Write("Hello World");
}

If i use the same tag urlMappings in the web.config of my mojoPortal project, at the request for the url /ir/bwcamera.mjpeg/ my browser is  redirected in a page with the message  "No image specified".

Anyone already solved this problem?

Thanks in advance.

Luigi.

 

You must sign in to post in the forums. This thread is closed to new posts.