云应用程序无法与asp.net应用程序中的HTTP Hanlder一起使用 [英] Cloud application doesn't work with HTTP Hanlder in the asp.net application

查看:98
本文介绍了云应用程序无法与asp.net应用程序中的HTTP Hanlder一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我确实有一个Asp.net应用程序,它有一个插件Jabber Chat客户端,它的服务器是Linux,

现在,我已经创建了一个HTTPHandler来处理来自此Jabber客户端的请求,并将其重定向到Linux服务器,并侦听来自Linux服务器的响应并将其发送给Jabber客户端,

问题是当我在Azure云环境之外运行我的应用程序时,它可以正常运行并正确执行HTTPHandler,但是当我在Azure Cloud Environment中运行它时,它从不执行HTTPHandler并显示服务不可用"

我什至用简单的Asp.net应用程序进行了测试,每当我在web.config中声明HTTPHandler时,它都会停止运行该应用程序,并显示以下错误,并且如果我从web.config中删除了HTTPHandler,它将执行该网页

I do have an Asp.net application, it has a plugin Jabber Chat client, it''s server is Linux,

now I have created a HTTPHandler to handle the request from this Jabber Client, and redirects them to the Linux server, and listen the response back from the Linux server and send them to the Jabber client,

the issues is when I run my application out of Azure Cloud environment, it works fine and executes the HTTPHandler properly, but when I run it within Azure Cloud Environment, it never executes the HTTPHandler and shows "Service Unavailable"

I did even tested this with the simple Asp.net application, whenever I declare the HTTPHandler in web.config, it stop running the application ans shows below error, and If I remove the HTTPHandler from the web.config, it executes the web page

---------------------------
Microsoft Visual Studio
---------------------------
Windows Azure Tools for Microsoft Visual Studio

There was an error attaching the debugger to the IIS worker process for URL 'http://127.255.0.0:82/' for role instance 'deployment16(307).CloudLogin.Userlogin1_IN_0'. Unable to start debugging on the web server. See help for common configuration errors. Running the web page outside of the debugger may provide further information.

Make sure the server is operating correctly. Verify there are no syntax errors in web.config by doing a Debug.Start Without Debugging. You may also want to refer to the ASP.NET and ATL Server debugging topic in the online documentation.

---------------------------
OK   
---------------------------



我曾尝试将Handler放入< system.webserver>内,但即使这样也不起作用

以下是我在web.config中的代码



I have tried putting the Handler inside the <system.webserver>, but even it doesn''t work

below is my code in the web.config

<httpHandlers>
    <add verb ="*" path="http-bind/*" type ="RolProxy.RolProxy" validate="false"/> 
</httpHandlers>


非常感谢您提供任何帮助


Any help is highly appreciated

推荐答案

尝试将其添加到您的web.config中.因为这可能是ii7造成的.
Try adding this in your web.config. because this may be issue due to ii7.
<system.webServer>
    <handlers>
      <add verb="*" path="http-bind/*" type="RolProxy.RolProxy"/>
    </handlers>
    <modules runAllManagedModulesForAllRequests="true" />
</system.webServer>


我有完全相同的问题.您解决了吗?
I have exactly the same problem. Have you resolved?


我有完全相同的问题.你解决了吗?
紧急...请帮助我.
I have exactly the same problem. Have you resolved?
Its urgent... Please help me.


这篇关于云应用程序无法与asp.net应用程序中的HTTP Hanlder一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆