当我托管我的Web应用程序时,它在"/"应用程序中显示服务器错误

问题描述:

当我托管Web应用程序时,它在"/"应用程序中显示服务器错误
原因是
如果对WCF服务的服务引用的内联脚本设置为true,则会发生此错误.对于WCF服务,内联脚本应该为false.
对于该错误,我该怎么办.

When i host my web application it shows Server Error in ''/'' Application
The reason for this is
This error can occur if a Service Reference to a WCF service has Inline Script set to true;. For WCF services Inline Script should be false.
What shall i do for this error.

Server Error in ''/'' Application. No web service found at: /Webservice/LogOut.asmx. This error can occur if a ServiceReference to a WCF service has InlineScript set to ''true''. For WCF services InlineScript should be ''false''. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.InvalidOperationException: No web service found at: /Webservice/LogOut.asmx. This error can occur if a ServiceReference to a WCF service has InlineScript set to ''true''. For WCF services InlineScript should be ''false''. 

Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [InvalidOperationException: No web service found at: /Webservice/LogOut.asmx. This error can occur if a ServiceReference to a WCF service has InlineScript set to ''true''. For WCF services InlineScript should be ''false''.] System.Web.Script.Services.WebServiceData.GetWebServiceData(HttpContext context, String virtualPath, Boolean failIfNoData, Boolean pageMethods, Boolean inlineScript) +804 System.Web.Script.Services.WebServiceClientProxyGenerator.GetInlineClientProxyScript(String path, HttpContext context, Boolean debug) +23 System.Web.UI.ServiceReference.GetInlineScript(Control containingControl, HttpContext context, Boolean debug) +216 System.Web.UI.ScriptManager.RegisterServices() +133 System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +124 System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +78 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4128

您需要在IIS本身中进行一些更改以承载Web服务.

[ ^ ]或 [ ^ ]可能会为您提供帮助.
或者,搜索google以在IIS上托管Web服务.

阿努拉格(Anurag)
You would need to make some changes in the IIS itself for hosting web services.

This[^] or This[^] might help you.
Or, search google for hosting webservices on IIS.

Anurag