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.dl l = /r:System.Web.Se rvices.dll
Service1.asmx.c s
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.Se rvice1'.
Source Error:=20
Line 1: <%@ WebService Language=3D"c#" Codebehind=3D"S ervice1.asmx.cs "
Class=3D"Analyz eCase.Service1" %>
Source File: c:\inetpub\hein tze\CaseAssessm ent\Service1.as mx =A0=A0 =
Line: 1=20
_______________ _______________ __________ 4 9401
Use the Copy Project feature.
Jeff
"Siegfried Heintze" <si*******@hein tze.com> wrote in message
news:u2******** *****@TK2MSFTNG P11.phx.gbl... 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.dl l = /r:System.Web.Se rvices.dll Service1.asmx.c s
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.Se rvice1'.
Source Error:=20
Line 1: <%@ WebService Language=3D"c#" Codebehind=3D"S ervice1.asmx.cs "
Class=3D"Analyz eCase.Service1" %>
Source File: c:\inetpub\hein tze\CaseAssessm ent\Service1.as mx =A0=A0 =
Line: 1=20
_______________ _______________ __________
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
"Jeff Dillon" <je**@removeeme rgencyreporting .com> wrote in message
news:e4******** ******@TK2MSFTN GP10.phx.gbl... Use the Copy Project feature.
Jeff "Siegfried Heintze" <si*******@hein tze.com> wrote in message news:u2******** *****@TK2MSFTNG P11.phx.gbl... 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.dl l = /r:System.Web.Se rvices.dll Service1.asmx.c s
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.Se rvice1'.
Source Error:=20
Line 1: <%@ WebService Language=3D"c#" Codebehind=3D"S ervice1.asmx.cs "
Class=3D"Analyz eCase.Service1" %>
Source File: c:\inetpub\hein tze\CaseAssessm ent\Service1.as mx =A0=A0 =
Line: 1=20
_______________ _______________ __________
No, not must..just one way.
Reverse-engineer what the Copy Project feature does.
Jeff
"Siegfried Heintze" <si*******@hein tze.com> wrote in message
news:e4******** ******@TK2MSFTN GP15.phx.gbl... 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
"Jeff Dillon" <je**@removeeme rgencyreporting .com> wrote in message news:e4******** ******@TK2MSFTN GP10.phx.gbl... Use the Copy Project feature.
Jeff "Siegfried Heintze" <si*******@hein tze.com> wrote in message news:u2******** *****@TK2MSFTNG P11.phx.gbl... 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.dl l = /r:System.Web.Se rvices.dll Service1.asmx.c s
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.Se rvice1'.
Source Error:=20
Line 1: <%@ WebService Language=3D"c#" Codebehind=3D"S ervice1.asmx.cs "
Class=3D"Analyz eCase.Service1" %>
Source File: c:\inetpub\hein tze\CaseAssessm ent\Service1.as mx =A0=A0 =
Line: 1=20
_______________ _______________ __________
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
"Jeff Dillon" <je**@removeeme rgencyreporting .com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. .. No, not must..just one way.
Reverse-engineer what the Copy Project feature does.
Jeff
"Siegfried Heintze" <si*******@hein tze.com> wrote in message news:e4******** ******@TK2MSFTN GP15.phx.gbl... 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
"Jeff Dillon" <je**@removeeme rgencyreporting .com> wrote in message news:e4******** ******@TK2MSFTN GP10.phx.gbl... > Use the Copy Project feature. > > Jeff > "Siegfried Heintze" <si*******@hein tze.com> wrote in message > news:u2******** *****@TK2MSFTNG P11.phx.gbl... > > 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.dl l = /r:System.Web.Se rvices.dll > > Service1.asmx.c s > > > > 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.Se rvice1'. > > > > Source Error:=20 > > > > Line 1: <%@ WebService Language=3D"c#" > > Codebehind=3D"S ervice1.asmx.cs " > > > > Class=3D"Analyz eCase.Service1" %> > > > > Source File: c:\inetpub\hein tze\CaseAssessm ent\Service1.as mx =A0=A0 = > > > > Line: 1=20 > > > > _______________ _______________ __________ > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Peter |
last post by:
Hi,
I am trying to compile an existing project (originally c) in .NET (rename .c
files to .cpp). After fixing some problems, here are the ones that I don't
know how to deal with:
--------------------------------------------------------------------------
....
.... \myfile.cpp(987) : error C2440: 'initializing' : cannot convert from
'int (__cdecl *)(mytype *,char *,int)' to 'int (__cdecl *)(void)'
|
by: mei xiao |
last post by:
Hi, there,
I have a small web service project written in C# and compiled using visual
studio.net, but how can I compile it using command line?
Thank you.
-May
|
by: Seok Bee |
last post by:
Dear Experts,
I've completed my console application and now wants to compile the
application and an executable file to be run at another location. However,
I've tried compiling that program in the command prompt with the following
command :
vbc Module1.vb /out:OEAutomation.exe /t:exe
I received a lot of error messages.
|
by: Andy Fish |
last post by:
Hi,
I have a web service app which is designed to be able to proxy requests from
one instance of the application to another instance of the same application
on a different machine
This means that in visual studio I have a project with a web reference to
itself. it was fine until I added a new web method and a call to it. now I
can't compile because I haven't updated the web reference, but I can't
update the web reference until I can...
|
by: walter |
last post by:
Hi there, we have a big ecommerce site contains lots of services which is
developed by different teams. But physically there are on the same site just
different folders. here is what I want to do :
1. Compile each service folder into a separated DLL.Note I don't think
aspnet_compiler works for me since all these services is not stand-alone
application. But I definitely don't want to compile the whole site as one
since each service has...
| |
by: Symon |
last post by:
I've got a web service project that was built under VS 2003 which has a
SoapExtension in the project. The SoapExtension is registered in the
<soapExtensionTypes> element of the web.config and has worked fine for some
time.
Recently we tryed to update the project to VS 2005 and run it under ASP.NET
2.0, but now we get a compile time exception:
"The value of the property 'type' cannot be parsed. The error is: Could not
load file or...
|
by: Tom |
last post by:
I am developing my pages on my development machine
and then copying to the production server.
I am not pre-compiling, I am using the 'dynamic compile'
feature. This is working fine except that everytime
I change a page on the production server I need to restart
IIS to effect the change.
If I don't restart IIS, it tries to recompile but gets and
error ( 'cannot execute a program......vbc.exe......).
Am I missing something which allows...
|
by: Peter Stojkovic |
last post by:
VS 2005 , WINDOWS XP SP2
I have a WIN-FORMS project and a secons project with a web-service.
The WEB-Service is called from inside the WIN-Forms Project.
I am normally working in the network of the customer , where the WEB-Service
is available.
But now i am working at home with my laptop.
How can I compile the project, without the WEB-Service available.
|
by: Adam Porter |
last post by:
First off, I've placed my very first webservice on the web and can access the .asmx file through my browser. Now, as I'm writing my Client App, I want to call these services. I'm getting a strange error at Compile-Time on all of my WebService calls. Here's some basic information. Have you seen anything like this before...and/or know how to fix it ?
Declaring an Instance of the WebService:
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |