Compiling Web Services without Visual Studio
Siegfried Heintze <[email protected]> Mon, 1 Nov 2004 21:39:06 -0700
| Newsgroups | gmane.comp.windows.devel.soap.general |
|---|---|
| Message-ID | <200411012138453.SM01220@fasolt> |
It appears that the automatic compilation feature of ASP.NET causes =
problems
with a security package called Black Ice that my hosting service is =
using.
I=92m hoping that if I manually compile my web service, I can avoid the
randomly named DLLs that ASP.NET creates when I hit my web service after
FTPing new C# source code.
So I used Visual Studio to create a web service on the remote hosting
service and that worked. However, I would like to use "make" or write my =
own
bat file to compile and deploy my web service.=20
So I tried =93csc /t:library /r:System.Web.dll =
/r:System.Web.Services.dll
Service1.asmx.cs=94 and copied the resulting DLL to the bin directory of =
my
web service. You can see the contents of Service1.asmx below in the =
error
message. Now when I point me browser to the web service I get the error
below.
What am I doing wrong?
Thanks,
Siegfried
-------------------------------------------------------------------------=
---
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.=20
Parser Error Message: Could not create type 'AnalyzeCase.Service1'.
Source Error:=20
Line 1: <%@ WebService Language=3D"c#" Codebehind=3D"Service1.asmx.cs"
Class=3D"AnalyzeCase.Service1" %>
Source File: c:\inetpub\heintze\CaseAssessment\Service1.asmx =A0=A0 =
Line: 1=20
________________________________________