473,809 Members | 2,506 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web Service Question

Posted in a different news group - but hoping to find an answer here...

I am using VS 2005 and am testing my first web service. If I follow the
common instructions for creating a web service by creating a new website
using the ASPX.Net Web Service template, there appears to be no dll file
created when building the web site. However, if I create a class library and
move the asmx file and App_Code directory to that library the .dll file is
then created. I've not seen any references that make me believe this is the
correct way to do this.

In other words, if I follow the steps in this link
http://msdn2.microsoft.com/en-us/library/6x71sze4.aspx there is a comment
that says "The Service.vb (or .cs) class file and the Global.asax class file
are compiled into the project .dll file, which is then copied to the server
in the default \bin directory of the target virtual directory. If the project
is set to compile a debug version, Visual Studio creates a project .pdb file
in the \bin directory. "

I have no dll file or \bin directory.

Can anyone please provide additional guidance?
Oct 8 '06 #1
6 1749
You need to copy asmx file and asmx.cs file over to where you want to
deploy. Watch out for your web.config file too. Good luck

chanmm

"Tony" <To**@discussio ns.microsoft.co mwrote in message
news:5C******** *************** ***********@mic rosoft.com...
Posted in a different news group - but hoping to find an answer here...

I am using VS 2005 and am testing my first web service. If I follow the
common instructions for creating a web service by creating a new website
using the ASPX.Net Web Service template, there appears to be no dll file
created when building the web site. However, if I create a class library
and
move the asmx file and App_Code directory to that library the .dll file is
then created. I've not seen any references that make me believe this is
the
correct way to do this.

In other words, if I follow the steps in this link
http://msdn2.microsoft.com/en-us/library/6x71sze4.aspx there is a comment
that says "The Service.vb (or .cs) class file and the Global.asax class
file
are compiled into the project .dll file, which is then copied to the
server
in the default \bin directory of the target virtual directory. If the
project
is set to compile a debug version, Visual Studio creates a project .pdb
file
in the \bin directory. "

I have no dll file or \bin directory.

Can anyone please provide additional guidance?


Oct 8 '06 #2
I didn't think I had to copy the code to the web server... In fact, I don't
think I would want to copy code tothe web server.

"chanmm" wrote:
You need to copy asmx file and asmx.cs file over to where you want to
deploy. Watch out for your web.config file too. Good luck

chanmm

"Tony" <To**@discussio ns.microsoft.co mwrote in message
news:5C******** *************** ***********@mic rosoft.com...
Posted in a different news group - but hoping to find an answer here...

I am using VS 2005 and am testing my first web service. If I follow the
common instructions for creating a web service by creating a new website
using the ASPX.Net Web Service template, there appears to be no dll file
created when building the web site. However, if I create a class library
and
move the asmx file and App_Code directory to that library the .dll file is
then created. I've not seen any references that make me believe this is
the
correct way to do this.

In other words, if I follow the steps in this link
http://msdn2.microsoft.com/en-us/library/6x71sze4.aspx there is a comment
that says "The Service.vb (or .cs) class file and the Global.asax class
file
are compiled into the project .dll file, which is then copied to the
server
in the default \bin directory of the target virtual directory. If the
project
is set to compile a debug version, Visual Studio creates a project .pdb
file
in the \bin directory. "

I have no dll file or \bin directory.

Can anyone please provide additional guidance?


Oct 8 '06 #3
I would suggest, then, that you download and install the Web Application
Project add-in. You will find the usage and semantics almost identical to
VS.NET 2003.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Tony" wrote:
I didn't think I had to copy the code to the web server... In fact, I don't
think I would want to copy code tothe web server.

"chanmm" wrote:
You need to copy asmx file and asmx.cs file over to where you want to
deploy. Watch out for your web.config file too. Good luck

chanmm

"Tony" <To**@discussio ns.microsoft.co mwrote in message
news:5C******** *************** ***********@mic rosoft.com...
Posted in a different news group - but hoping to find an answer here...
>
I am using VS 2005 and am testing my first web service. If I follow the
common instructions for creating a web service by creating a new website
using the ASPX.Net Web Service template, there appears to be no dll file
created when building the web site. However, if I create a class library
and
move the asmx file and App_Code directory to that library the .dll file is
then created. I've not seen any references that make me believe this is
the
correct way to do this.
>
In other words, if I follow the steps in this link
http://msdn2.microsoft.com/en-us/library/6x71sze4.aspx there is a comment
that says "The Service.vb (or .cs) class file and the Global.asax class
file
are compiled into the project .dll file, which is then copied to the
server
in the default \bin directory of the target virtual directory. If the
project
is set to compile a debug version, Visual Studio creates a project .pdb
file
in the \bin directory. "
>
I have no dll file or \bin directory.
>
Can anyone please provide additional guidance?
>
>
Oct 8 '06 #4
That did it... thanks Peter.

It does raise a couple of questions however...

1) Is deploying the source code the recommended method to deploy a web
service if using Visual Studio 2005?
2) I'm wondering why everything I read said that a dll was going to be
generated and yet it was not.
3) Is there a reference that you could suggest where I could read about this?

Thanks again Peter.
TE

"Peter Bromberg [C# MVP]" wrote:
I would suggest, then, that you download and install the Web Application
Project add-in. You will find the usage and semantics almost identical to
VS.NET 2003.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Tony" wrote:
I didn't think I had to copy the code to the web server... In fact, I don't
think I would want to copy code tothe web server.

"chanmm" wrote:
You need to copy asmx file and asmx.cs file over to where you want to
deploy. Watch out for your web.config file too. Good luck
>
chanmm
>
"Tony" <To**@discussio ns.microsoft.co mwrote in message
news:5C******** *************** ***********@mic rosoft.com...
Posted in a different news group - but hoping to find an answer here...

I am using VS 2005 and am testing my first web service. If I follow the
common instructions for creating a web service by creating a new website
using the ASPX.Net Web Service template, there appears to be no dll file
created when building the web site. However, if I create a class library
and
move the asmx file and App_Code directory to that library the .dll file is
then created. I've not seen any references that make me believe this is
the
correct way to do this.

In other words, if I follow the steps in this link
http://msdn2.microsoft.com/en-us/library/6x71sze4.aspx there is a comment
that says "The Service.vb (or .cs) class file and the Global.asax class
file
are compiled into the project .dll file, which is then copied to the
server
in the default \bin directory of the target virtual directory. If the
project
is set to compile a debug version, Visual Studio creates a project .pdb
file
in the \bin directory. "

I have no dll file or \bin directory.

Can anyone please provide additional guidance?


>
>
>
Oct 9 '06 #5
Tony,
I'm really agnostic about all this. Source code (e.g. XXX.CS / .VB) doesn't
get served under the asp.net runtime. However, personally, I've never liked
the VS 2005 "website project" analogue and was very happy when Scott Guthrie
and his excellent ASP.NET team finally responded with the ASP.NET Web
Application Project. I use both, but really prefer having a single assembly
and NO SOURCE FILES on my server! I don't need "updateable " - I can rebuild
in a second and write over the old assembly in the /bin folder.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Tony" wrote:
That did it... thanks Peter.

It does raise a couple of questions however...

1) Is deploying the source code the recommended method to deploy a web
service if using Visual Studio 2005?
2) I'm wondering why everything I read said that a dll was going to be
generated and yet it was not.
3) Is there a reference that you could suggest where I could read about this?

Thanks again Peter.
TE

"Peter Bromberg [C# MVP]" wrote:
I would suggest, then, that you download and install the Web Application
Project add-in. You will find the usage and semantics almost identical to
VS.NET 2003.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Tony" wrote:
I didn't think I had to copy the code to the web server... In fact, I don't
think I would want to copy code tothe web server.
>
"chanmm" wrote:
>
You need to copy asmx file and asmx.cs file over to where you want to
deploy. Watch out for your web.config file too. Good luck

chanmm

"Tony" <To**@discussio ns.microsoft.co mwrote in message
news:5C******** *************** ***********@mic rosoft.com...
Posted in a different news group - but hoping to find an answer here...
>
I am using VS 2005 and am testing my first web service. If I follow the
common instructions for creating a web service by creating a new website
using the ASPX.Net Web Service template, there appears to be no dll file
created when building the web site. However, if I create a class library
and
move the asmx file and App_Code directory to that library the .dll file is
then created. I've not seen any references that make me believe this is
the
correct way to do this.
>
In other words, if I follow the steps in this link
http://msdn2.microsoft.com/en-us/library/6x71sze4.aspx there is a comment
that says "The Service.vb (or .cs) class file and the Global.asax class
file
are compiled into the project .dll file, which is then copied to the
server
in the default \bin directory of the target virtual directory. If the
project
is set to compile a debug version, Visual Studio creates a project .pdb
file
in the \bin directory. "
>
I have no dll file or \bin directory.
>
Can anyone please provide additional guidance?
>
>

Oct 10 '06 #6
Completely agree...

Thanks Peter, at least now I know I'm not doing 'something wrong'.

Tony

"Peter Bromberg [C# MVP]" wrote:
Tony,
I'm really agnostic about all this. Source code (e.g. XXX.CS / .VB) doesn't
get served under the asp.net runtime. However, personally, I've never liked
the VS 2005 "website project" analogue and was very happy when Scott Guthrie
and his excellent ASP.NET team finally responded with the ASP.NET Web
Application Project. I use both, but really prefer having a single assembly
and NO SOURCE FILES on my server! I don't need "updateable " - I can rebuild
in a second and write over the old assembly in the /bin folder.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Tony" wrote:
That did it... thanks Peter.

It does raise a couple of questions however...

1) Is deploying the source code the recommended method to deploy a web
service if using Visual Studio 2005?
2) I'm wondering why everything I read said that a dll was going to be
generated and yet it was not.
3) Is there a reference that you could suggest where I could read about this?

Thanks again Peter.
TE

"Peter Bromberg [C# MVP]" wrote:
I would suggest, then, that you download and install the Web Application
Project add-in. You will find the usage and semantics almost identical to
VS.NET 2003.
Peter
>
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
>
>
>
>
"Tony" wrote:
>
I didn't think I had to copy the code to the web server... In fact, I don't
think I would want to copy code tothe web server.

"chanmm" wrote:

You need to copy asmx file and asmx.cs file over to where you want to
deploy. Watch out for your web.config file too. Good luck
>
chanmm
>
"Tony" <To**@discussio ns.microsoft.co mwrote in message
news:5C******** *************** ***********@mic rosoft.com...
Posted in a different news group - but hoping to find an answer here...

I am using VS 2005 and am testing my first web service. If I follow the
common instructions for creating a web service by creating a new website
using the ASPX.Net Web Service template, there appears to be no dll file
created when building the web site. However, if I create a class library
and
move the asmx file and App_Code directory to that library the .dll file is
then created. I've not seen any references that make me believe this is
the
correct way to do this.

In other words, if I follow the steps in this link
http://msdn2.microsoft.com/en-us/library/6x71sze4.aspx there is a comment
that says "The Service.vb (or .cs) class file and the Global.asax class
file
are compiled into the project .dll file, which is then copied to the
server
in the default \bin directory of the target virtual directory. If the
project
is set to compile a debug version, Visual Studio creates a project .pdb
file
in the \bin directory. "

I have no dll file or \bin directory.

Can anyone please provide additional guidance?


>
>
>
Oct 10 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1969
by: Liza | last post by:
Hello, can you guys help me out here....? this is part of my masters degree and hence is very important to me..... my supervisor doesn't seem to be too interested in helping me and infact is on holiday as we speak. ok here's my question.....
5
14131
by: Richard Steele | last post by:
I have created a WinForm application that needs to be run as a windows service (the PC is inaccesible by any user) i have successfully installed the application as a windows service. When i start the service, i get the following error Error 1053: The service did not respond to the start or control request in a timely fashion 1. Is there anyway to extend the timeout period.? I use timed threads to load a serial device driver and this...
2
1821
by: Tom Simpson | last post by:
I have set up a Windows service in VB.NET, and created a 'Service Manager' Windows Forms app that can 'get' information from that service. The service consists of the basic service 'framework' along with a large class that I wrote that actually does all the work. The Service Manager app uses .NET remoting to get info into/back from the service. I have a couple of questions that I need info on before I complete this service:
2
1776
by: John A | last post by:
I have a Web Service that I am reponsible for that we use for data integration purposes. Recently I have been tasked with sending some of this data to a third party. Because they need to receive the data in real time. They have requested that I subscribe to a Web Service that they have published. The only problem is that they often take longer than 30 seconds to process my data before I get a response back from them. This is taking far...
17
6457
by: UJ | last post by:
Is there any way for a windows service to start a windows program ? I have a service that will need to restart a windows app if it needs to. TIA - Jeff.
2
6904
by: deko | last post by:
When to use a privileged user thread rather than a windows service? That's the question raised in a previous post . It was suggested that if the service needs to interact with a WinForms app (which is the UI used to adjust the actions taken by, and the schedule of the service), then a privileged user thread should be used in the UI - no service required. But... "A windows service enables the creation of long-running executable
5
606
by: Tom | last post by:
Using multiple System.Timers.Timer objects in a Windows Service for performing multi-thread activities in a periodic fashion. Timers are AutoReset=false, to only have a single timer execution thread running at any given moment. Typically, timers will have an interval of 5 to 15 minutes. Conditionally, the interval may be set to 1 second (1000 ms) before the next call to Timer.Start(). Here is the question: if the interval is one...
6
3993
by: Joseph Geretz | last post by:
I have the following class which I am serializing and passing back and forth between my Web Service application and the client. public class Token : SoapHeader { public string SID; public string UID; public string PWD; }
5
3313
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name? Why do I need to set a property within my code to the service name? Are all these required or am I just doing this for consistency purposes?
2
5343
by: =?Utf-8?B?bXVyYWRqYW1lcw==?= | last post by:
Yes, sorry I tried to make it clear in the original question that I want to get the user token of the service - ie. the account the service is running under. I know services don't have user tokens - I suspect users do have tokens, hence "user token", otherwise we might call them "service tokens" or somesuch :-) If you read the question again, you migh see that the fundamental question is, *assuming there is no other approach*: The...
0
9603
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,...
0
10643
Oralloy
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...
0
10378
jinu1996
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...
0
10121
tracyyun
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...
1
7664
isladogs
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...
0
6881
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();...
0
5550
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...
1
4333
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.