I am having some issues hosting wcf service with ftp server after loading the wcf service on the server it is showing the following 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 34: </serviceBehaviors>
Line 35: </behaviors>
Line 36: <serviceHostingEnvironment multipleSiteBindingsEnabled="false"/> Line 37: </system.serviceModel>
Line 38: <system.webServer>
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
<standardEndpoints>
<webHttpEndpoint>
<!--
Configure the WCF REST service base address via the global.asax.cs file and the default endpoint
via the attributes on the <standardEndpoint> element below
-->
<standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="true"/>
</webHttpEndpoint>
</standardEndpoints>
</system.serviceModel>
is your dir configured as an application? If not, configure your directory as an application in iis.
Hi naveen,
Yes, you need to configure your directory as an application. Please go to your IIS--> domain--> directory--> right click and then convert it to application. Hope it help
naveenchandr...
Member
469 Points
232 Posts
Error in WCF service
Oct 09, 2012 11:26 AM|LINK
Hi Everyone ,
I am having some issues hosting wcf service with ftp server after loading the wcf service on the server it is showing the following 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 34: </serviceBehaviors> Line 35: </behaviors> Line 36: <serviceHostingEnvironment multipleSiteBindingsEnabled="false"/> Line 37: </system.serviceModel> Line 38: <system.webServer>Source File: E:\Domains\siteasap.com\wwwroot\webservice_dir\web.config Line: 36
I am not able to rectify this error.
Any kind of suggestion or help will be greatly appreciated.
venugopal th...
Member
6 Points
19 Posts
Re: Error in WCF service
Oct 09, 2012 11:36 AM|LINK
once u have try below code
<system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/> <standardEndpoints> <webHttpEndpoint> <!-- Configure the WCF REST service base address via the global.asax.cs file and the default endpoint via the attributes on the <standardEndpoint> element below --> <standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="true"/> </webHttpEndpoint> </standardEndpoints> </system.serviceModel>oned_gk
All-Star
36078 Points
7363 Posts
Re: Error in WCF service
Oct 09, 2012 11:41 AM|LINK
Suwandi - Non Graduate Programmer
dotnetnerd
Contributor
2604 Points
587 Posts
Re: Error in WCF service
Oct 10, 2012 03:49 AM|LINK
Hi naveen,
Yes, you need to configure your directory as an application. Please go to your IIS--> domain--> directory--> right click and then convert it to application. Hope it help
Windows ASP.NET Hosting | Reseller Hosting | Cloud Hosting
pradeep shar...
Contributor
4004 Points
763 Posts
Re: Error in WCF service
Oct 10, 2012 04:30 AM|LINK
hi
This error generaly occurs when u r application not configured to IIS as a virtual directoy