开发者

Problem deploying webservice "Could not create type 'Service'

开发者 https://www.devze.com 2023-02-07 00:37 出处:网络
I have big trouble deploying my webservice. It is the basic helloWorld start webservi开发者_如何学Cce.

I have big trouble deploying my webservice. It is the basic helloWorld start webservi开发者_如何学Cce.

At my localhost everything os ok. But when I copy the service to my server in my virtual directory i recieve this error:

Server Error in '/' Application.

Parser Error Description: 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.

Parser Error Message: Could not create type 'Service'.

Source Error: Line 1: <%@ WebService Language="vb" CodeBehind="~/App_Code/Service.vb" Class="Service" %>

Source File: /customers/iv_webservice/Service.asmx Line: 1 Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4955

Now I have tried almost everything. Including scanning the web for the past 9 hours for an answer.

I know my virtual directory in the web.config is ok, since I have other virtual websites on my server. I even manage to have aspx. files in the same directory and they are ok.

Now, what am I missing?


Does your web service use a 3rd party assembly or unmanaged Dll that is not deployed to the server? In my experience "cannot create object of type" errors are missing unmanaged Dlls. In the case of missing managed assemblies, the error will usually tell you which assembly is missing.


Can you try compiling the service.vb as an standalone assembly? That might help understand any dependencies you might not be satisfying.. You might also see additional information in Event viewer or if you set the debug mode to true in web.config to see if there are any errors reported compiling service.vb.

0

精彩评论

暂无评论...
验证码 换一张
取 消