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? 6 1732
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**@discussions.microsoft.comwrote in message
news:5C**********************************@microsof t.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?
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**@discussions.microsoft.comwrote in message
news:5C**********************************@microsof t.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?
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**@discussions.microsoft.comwrote in message
news:5C**********************************@microsof t.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?
>
>
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**@discussions.microsoft.comwrote in message
news:5C**********************************@microsof t.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?
>
>
>
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**@discussions.microsoft.comwrote in message
news:5C**********************************@microsof t.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?
>
>
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**@discussions.microsoft.comwrote in message
news:5C**********************************@microsof t.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?
>
>
>
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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'...
|
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...
|
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.
|
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...
|
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...
|
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...
|
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?...
|
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...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |