简体   繁体   English

使用IIS 7.5作为VS2010.Web服务的开发服务器失败

[英]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)中调用该方法

  • My settings 我的设置

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.

相关问题 getJSON Web API适用于Development Server,但IIS Express 7.5会抛出404 Not found - getJSON Web API works on Development Server but IIS Express 7.5 throws 404 Not found AJAX不能与Web服务器一起使用,但可以在本地文件系统上使用; IIS 7.5 - AJAX not working with web server but working on local filesystem; IIS 7.5 JQuery $ .post在VS 2010实例中工作,但在IIS 7.5中部署时则不行 - JQuery $.post works in VS 2010 instance but not when I deploy in IIS 7.5 jQuery使用的WCF服务:与VS dev服务器一起使用,但不适用于IIS - WCF service for consumption by jQuery: works with VS dev server, but not with IIS Sharepoint 2010自定义WCF服务应用程序开发 - Sharepoint 2010 Custom WCF Service Application Development asp.net mvc,IIS 6 vs IIS7.5和集成的Windows身份验证会导致JavaScript错误? - asp.net mvc, IIS 6 vs IIS7.5, and integrated windows authentication causing javascript errors? 如何使用JQuery和AngularJS调用IIS中托管的Web服务 - How to call web service hosted in IIS using JQuery and AngularJS VS2010有一个所见即所得的网页编辑器扩展吗? - Is there a wysiwyg web editor extension for VS2010? 在SharePoint 2010上阅读自定义Web服务 - reading custom web service on SharePoint 2010 为什么Web服务无法返回正确的JSON? - Why is Web Service failing to return proper JSON?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM