Could not create type 'test' while accessing hosted serviceAn 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?