473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Web Service Deployment Issues

I have a Web Service developed using C# and the .NET framework v1.1.

When I access the DLL on the localhost, using the URL

http://localhost/Folder/bin/MyService.dll

it works fine. However, when I x-copy deploy the DLL and its web.config
(authorization allow *) to a remote server and set all permissions for
the account ASPNET (the local ASPNET account), I have problems
accessing the same url remotely like:

http://remoteserver/Folder/bin/MyService.dll

Any pointers?

Feb 2 '06 #1
5 936
Shouldn't you be using http://remoteserver/folder/myservice.asmx to access
your webservice?
--
Dale Preston
MCAD C#
MCSE, MCDBA
"Sathyaish" wrote:
I have a Web Service developed using C# and the .NET framework v1.1.

When I access the DLL on the localhost, using the URL

http://localhost/Folder/bin/MyService.dll

it works fine. However, when I x-copy deploy the DLL and its web.config
(authorization allow *) to a remote server and set all permissions for
the account ASPNET (the local ASPNET account), I have problems
accessing the same url remotely like:

http://remoteserver/Folder/bin/MyService.dll

Any pointers?

Feb 2 '06 #2
Thanks. That was an obvious bit I forgot. I am sure I knew that
somewhere in my brain but just totally brain farted on it.

Now, what are the other files that one deploys when deploying a web
service? The asmx, the dll and what? I am sure you don't deploy the .cs
file?

Feb 2 '06 #3
Sathyaish,
Normaill you would deploy the built assembly (dll) into the /bin folder,
the .asmx file, and the web.config and global.asax files.

Ensure that the debug setting in web.config is set to "false" and that you
have built the service in Release mode build configuration.
It also needs to be an IIS Application.

Peter

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


"Sathyaish" wrote:
Thanks. That was an obvious bit I forgot. I am sure I knew that
somewhere in my brain but just totally brain farted on it.

Now, what are the other files that one deploys when deploying a web
service? The asmx, the dll and what? I am sure you don't deploy the .cs
file?

Feb 2 '06 #4
Thanks, Peter. It seems I'd just not cared to copy the asmx probably
because I didn't know or probably knew but had forgotten. I'd copied
the web.config though and set the correct authorization, customErrors
(@mode=RemoteOnly, which is also the default) etc.

Good thing you reminded me about the debug switch. I know that also but
I have forgotten the syntax for that. It was something like:

<somethng here debug="false" />

that helped not to pop up the "dude! wanna debug? What're you gonna
use?". What was the syntax, please?

Feb 2 '06 #5
You have to deploy:

1. DLL (/bin)
2. ASMX

No code files.

NOTE that this can technically just be the DLL in 2.0, if you compile using
the command line tools (prep for no file deploy, or whatever it is called).

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"Sathyaish" wrote:
Thanks. That was an obvious bit I forgot. I am sure I knew that
somewhere in my brain but just totally brain farted on it.

Now, what are the other files that one deploys when deploying a web
service? The asmx, the dll and what? I am sure you don't deploy the .cs
file?

Feb 3 '06 #6

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

Similar topics

3
by: Glenn Venzke | last post by:
I'd like to write a windows service. Unfortunately, my company would only spring for the standard edition of VB.NET which doesn't support the creation of windows services. Is it possible to write one...
1
by: Wendy Elizabeth | last post by:
Can you give me some suggestions of why the xml web service is not working? I have an xml web service that works in my visual studio. net 1.1 environment. I setup this project up for deployment...
3
by: Jeremy S. | last post by:
On my dev machine (XP/Pro with VS.NET 2003) I have been developing a Windows Service and installing it on the local machine by opening the Visual Studio Command Prompt and then executing . Now I...
1
by: Wendy Elizabeth | last post by:
Can you give me some suggestions of why the xml web service is not working? I have an xml web service that works in my visual studio. net 1.1 environment. I setup this project up for deployment...
4
by: Zany | last post by:
I added a Web Deployment Project so I can create a debug, staging, and release version. Each set is compiled and saved in a separate folder under the csproj_deploy folder. All works fine. Here's...
4
by: =?Utf-8?B?ZG91Zw==?= | last post by:
I built a ws locally takes in a request object and returns a response object. The ws reads in a good sized xml file and the request oject has elements used to create an xml subset and returns it as...
2
by: wph101larrya | last post by:
I have a developed service and client application running on a Vista machine in IIS7 in the Visual Studio 2008 beta 2 with .NET 3.5 framework. I am trying to deploy the service app to a test...
3
by: =?Utf-8?B?RHVrZSAoQU4yNDcp?= | last post by:
I've added a web deployment project and want to use the config section replacement but I'm obviously not understanding something. I have set up an alternate appSettings file,...
1
by: kirk.quinbar | last post by:
Have you ever used a .net deployment project to install a windows service? If so, then i ran into an issue recently that maybe you could shed some light on. I am sure I probably did something...
4
by: cj | last post by:
I'm finally back to trying to write a web service. In VB 2005 I created a new web site and then ASP.NET Web Service. It opened showing App_Code/Service.VB with the following code already in it ...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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$) { } ...
0
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...
0
BarryA
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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...
0
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,...

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.