将VS 2010项目转换为VS 2013获取错误Httpcontext.current.Request [英] convert VS 2010 project to VS 2013 getting error Httpcontext.current.Request
本文介绍了将VS 2010项目转换为VS 2013获取错误Httpcontext.current.Request的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个asp.net项目,它在2010年开发并且工作正常。
现在我只是转换vs vs 2013项目,它在
Global.asax.cs->中引发错误。 Application_start 方法。
HttpException未被用户处理
语句为:
Hi,
I have a asp.net project which is develop in vs 2010 and working fine.
Now I just convert to vs 2013 project and it is throwing error in
Global.asax.cs-> Application_start method.
HttpException was unhandled by the user
statement is :
System.web.Httpcontext.current.Request.URL.Host.Tostring();
请让我知道什么是corensponding代码编写清除此错误。
感谢您的解决方案。
Asutosha SArangi
Please let me know what is the corensponding code to be written to clea this error.
Appreciate and thanks for your solution.
Asutosha SArangi
推荐答案
您好,
也许您可以在这里找到一些有用的信息。
http:// stackoverflow.com/questions/27286240/mvc-5-application-start-not-running [ ^ ]
最好的问候!
Hi,
Maybe you can find some helpful information here.
http://stackoverflow.com/questions/27286240/mvc-5-application-start-not-running[^]
Best Regards!
这篇关于将VS 2010项目转换为VS 2013获取错误Httpcontext.current.Request的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文