Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2004

Tip: Looking for answers? Try searching our database.

How to compile web service?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Siegfried Heintze - 02 Nov 2004 18:06 GMT
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'm 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.

So I tried

csc /t:library /r:System.Web.dll = /r:System.Web.Services.dll
Service1.asmx.cs

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

________________________________________
Jeff Dillon - 02 Nov 2004 23:36 GMT
Use the Copy Project feature.

Jeff
> It appears that the automatic compilation feature of ASP.NET causes
> problems with a security package called Black Ice that my hosting service is
[quoted text clipped - 44 lines]
>
> ________________________________________
Siegfried Heintze - 03 Nov 2004 00:12 GMT
Jeff,
Are you telling me that I must use VS.NET and I cannot automate this with a
BAT that calls the C# compiler and uses my Perl ftp procedures to deploy to
the remote hosting service? If so, how do I automate this using VS.Net?

 Thanks,
     Siegfried

> Use the Copy Project feature.
>
[quoted text clipped - 49 lines]
> >
> > ________________________________________
Jeff Dillon - 03 Nov 2004 00:33 GMT
No, not must..just one way.

Reverse-engineer what the Copy Project feature does.

Jeff

> Jeff,
> Are you telling me that I must use VS.NET and I cannot automate this with a
[quoted text clipped - 61 lines]
> > >
> > > ________________________________________
Dino Chiesa [Microsoft] - 03 Nov 2004 16:44 GMT
wait,

it is possible to just copy over files from one directory to the ASP.NET app
deployment dir.  This will "deploy" the app.  You can use VS to do this, or
xcopy, or drag-n-drop from explorer, Or a perl script, or whatever.   It's
just copying.

What the original poster was asking about was the JIT-compiling of ASPX and
ASMX files, I suppose.  When this happens, the aspnet worker process
actually preprocesses the ASPX or ASMX, then launches csc.exe (or vbc.exe,
etc) and compiles the code into a new DLL, randomly named. The random name
is making Black Ice cough, according to the OP.  This is part of the ASP.NET
model for v1.1 and cannot be changed.

For ASP.NET v2.0 ("Whidbey"), there is a possibility to "pre-compile"
websites.  This may address your needs.  But for v1.1, you will always get
randomly-named DLLs when you include any ASPX or ASMX files in your web app.

-Dino

> No, not must..just one way.
>
[quoted text clipped - 74 lines]
>> > >
>> > > ________________________________________

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.