Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Could not create type 'Test'.

Line 1: <%@ WebService Language="C#" CodeBehind="~/App_Code/Test.cs" Class="Test" %>
I have done one simple webservice not wcf service.It is working fine on local but while hosting on server,getting above error.In IIS of server already created virtual directory for website,inside that I uploaded one folder.That folder contain my webservice,app_code and webconfig.I have created service in framework 4.0.When error come on server,last line shows Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.33440.Means both version are same on local and server.How to handle this?

What I have tried:

I tried doing lot webservice and uploading on server.But no success.
Posted
Updated 23-Oct-16 21:17pm
v2
Comments
F-ES Sitecore 24-Oct-16 4:07am    
You need to upload the bin folder with all the assemblies (dll files) as well. The easiest way to know what to upload is to "publish" the project to a folder on your local file system, then upload the contents of that folder to your host.

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