Click here to Skip to main content
15,921,660 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have one WCF service ...

Which is working fine when i am hosting in my localhost IIS..

But when i uploaded my webservice in my live server its giving that error

HTML
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 51:             ASP.NET to identify an incoming user. 
Line 52:         -->
Line 53:         <authentication mode="Windows" />
Line 54:         <!--
Line 55:             The <customErrors> section enables configuration 


Source File: D:\WWWRoot\tigererp.com\www\wcf_dateservice\web.config    Line: 53 


Please Help Me....

Thanks...
Posted

To resolve this problem, remove the virtual directory in IIS. Then, re-create the virtual directory and configure it as an application. To remove the virtual directory, follow these steps:

* Click Start, and then click Control Panel.
* In Control Panel, double-click Administrative Tools, and then double-click Internet Information Services.
* Click the name of the server that you want to configure, and then double-click Web Sites.
* Double-click the name of the Web site that you want to configure.
* Right-click the name of the virtual directory that you want to remove, and then click Delete. Click Yes.

To create a new virtual directory and configure it as an application, follow these steps:

* Click to select the name of the Web site in which you want to add the new virtual directory.
* On the Action menu, point to New, and then click Virtual Directory.
* In the Virtual Directory Creation Wizard, click Next.
* Type the name of the virtual directory that you want to create, and then click Next.
* Click Browse, select the directory for the application, and then click OK.
* Click Next, and then click Finish.
 
Share this answer
 
Root level web.config needs to be defined as:

XML
<location path="Admin">
<system.web>
<authorization>
<allow roles="administrators" />
<deny users="*" />
</authorization>
</system.web>
</location>
 
Share this answer
 

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