Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Viewed 8 times

0


I have Web Application that contain the aspx and asmx page, which i have published in root folder. Everything working perfectly then i change the folder cp (httpdocs/cp/)and publish my web application to cp folder . in this folder the asmx file is not working. it giving me the error :

Could not create type 'Time_Doctor_WebApp.App.Allproject'.

Line 1: <%@ WebService Language="C#" Codebehind="Allproject.asmx.cs" Class="Time_Doctor_WebApp.App.Allproject" %>

Source File: /Cp/App/allproject.asmx Line: 1

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3690.0

i upload an empty asmx file which also giving me this error? when i publish application to httpdocs folder then everything work perfetly including asmx pages.

It only give me error in cp folder when publish app to cp folder. Need Help ?


What I have tried:

I use the location of bin folder but it not working
<runtime>
   <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
     <probing privatePath="bin"/>
Posted
Updated 28-Oct-20 23:32pm
Comments
F-ES Sitecore 28-Oct-20 7:34am    
You can't publish asp.net applications to subfolders, they will only work in folders designated as a site root. To get it working in a sub-folder you have to make the folder a virtual directory in IIS. If your site is hosted somewhere that might not be possible depending on what your host allows, you'll need to check their documentation.
Member 14852747 28-Oct-20 7:55am    
How to create virtual directory for the application in iis server . Means which method i can use?

1 solution

Open IIS Manager. Navigate to the folder where you've published your application. Right-click, and select "Convert to Application".

Managing Applications in IIS 7 | Microsoft Docs[^]
 
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