I've created a WCF Service Application, when I click to F5 it works fine, but when I'm publishing in IIS I got this Error
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 16: </serviceBehaviors>
Line 17: </behaviors>
Line 18: <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
Line 19: </system.serviceModel>
Line 20: <system.webServer>
When you published it to IIS, did you check in IIS Manager whether it has been converted to an Application? Like Parser Error Message section said, you need to do that properly, or this error is expected.
Lex Li
http://lextm.com
---------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
Marked as answer by Leo Tang - MSFT on Mar 11, 2012 05:58 AM
Bayar Duhoki
2 Posts
Server Error in '/' Application
Mar 03, 2012 08:43 PM|LINK
Hi
I've created a WCF Service Application, when I click to F5 it works fine, but when I'm publishing in IIS I got this Error
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Source File: C:\inetpub\wwwroot\hserver2\web.config Line: 18
Please can anybody tell me what to do to correct this error
or if i host this site to an public IP, does it will work fine to connect with it through my client app
IIS-7 publish IIS7 - General IIS-7 Authentication iis-7 publish
lextm
4487 Posts
Re: Server Error in '/' Application
Mar 04, 2012 12:39 AM|LINK
http://lextm.com
---------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
Leo Tang - M...
4161 Posts
Microsoft
Re: Server Error in '/' Application
Mar 05, 2012 07:31 AM|LINK
Hi,
Below is an article about the concept of application in IIS, for your reference:
Understanding Sites, Applications, and Virtual Directories on IIS 7
http://learn.iis.net/page.aspx/150/understanding-sites-applications-and-virtual-directories-on-iis/
Feedback to us
Develop and promote your apps in Windows Store
kctt
654 Posts
Re: Server Error in '/' Application
Mar 06, 2012 04:36 AM|LINK
In IIS manager, default website, right click on hserver2 and convert to application.