0

enter image description here

In my application have requirement, to setup a website and webservice in a same domain so I have to create one WebSite for example ABCWebSite (which is a .NET MVC application) and under the ABCWebSite I wanted to host an ABCService which is a WCF web service. I have followed the same. But I am getting following issue.

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:

       </serviceBehaviors>
     </behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" minFreeMemoryPercentageToActivateService="0" />
</system.serviceModel>
<system.webServer>

Please let me what i am missing or is this approach is good to go.

Heaps Thank you in Advance.

Pavan
  • 533
  • 5
  • 15

0 Answers0