Click here to Skip to main content
15,884,998 members
Please Sign up or sign in to vote.
1.40/5 (3 votes)
See more:
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
Posted
Updated 27-Jun-22 16:50pm
v2
Comments
thatraja 21-Feb-11 21:45pm    
Make your error message clearly.....also add 'code block' for the error message....if possible include link for snap of the error message
myes 21-Feb-11 23:30pm    
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

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
 
Share this answer
 
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /WCFWebSite/PreEnrol/registration_complete.aspx

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3930.0
 
Share this answer
 
Comments
Richard Deeming 28-Jun-22 3:17am    
Your error message is not a "solution" to someone else's question.

If you want to ask a question, then ask a question[^]. But you'll need to provide a hell of a lot more information than just an error message if you want anyone to be able to help you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900