[英]Using IIS 7.5 as development server with VS2010.Web service failing
I have a website with few .aspx pages and few .asmx services.It is working perfectly with the built in Visual Studio web server.I wanted to test it in Local IIS server 7.5 before moving it into production. 我有一个网站,该网站上只有很少的.aspx页面和很少的.asmx服务。它与内置的Visual Studio Web服务器完美兼容。 But there are some issues.
但是有一些问题。
When running the website it is directing to the login page( http/localhost/Login.aspx), but after clicking the login button it is not taking to the home page. 在运行网站时,它会定向到登录页面(http / localhost / Login.aspx),但是单击登录按钮后,它不会进入主页。 I found that the login service(asmx) fails .I'm using Jquery .Ajax and data type is json for calling the method in the webservice(.asmx)
我发现登录服务(asmx)失败。我正在使用Jquery .Ajax,数据类型为json,用于在webservice(.asmx)中调用该方法
1) In IIS Manager, I created a folder under sites and pointed to the physical Location of project files. 1)在IIS管理器中,我在站点下创建了一个文件夹,并指向项目文件的物理位置。
2) In Visual Studio,solution explorer-->property pages--> start options--> I Choose custom server and Base URL: http//localhost.(There is no Local IIS server option to choose.) 2)在Visual Studio中,解决方案资源管理器->属性页->启动选项->我选择自定义服务器和基本URL:http // localhost。(没有本地IIS服务器选项可供选择。)
Here the error details I'm getting in chrome/Inspect element. 这是我在chrome / Inspect元素中得到的错误详细信息。
(Request URL:http://localhost/ReportDataservice.asmx/ProcessLogin Request Method:POST Status Code:500 Internal Server Error) (请求URL:http://localhost/ReportDataservice.asmx/ProcessLogin请求方法:POST状态码:500 Internal Server Error)
Do I need to do any change IIS 7.5 settings or VS environment? 我是否需要更改IIS 7.5设置或VS环境? It is working perfectly with built in VS server.
它与内置VS服务器完美配合。
Thanks! 谢谢!
Mathew 马修
我为IIS 7.5更新了Visual Studio 2010的修补程序后,问题解决了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.