.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Deploying Web Service

Posted By:      Posted Date: October 04, 2010    Points: 0   Category :.NET Framework
Hello, I'm a newbie. I created .NET asp application and deployed it with an .asmx web service to a test server.  The web service runs only when I'm running the application using visual studio in debug mode.  I stop the debug mode and the web service stops working. Does anyone have any thoughts?  Is there any configuration settings I missed?  Any help would be appreciated.

View Complete Post

More Related Resource Links

Deploying .asmx web service to SharePoint

I'm trying to deploy a simple .asmx web service to SharePoint with the ultimate goal of consuming it with an InfoPath form. The server is SharePoint 2010 beta and the development is being done with VS 2010 beta. I have built the web service and can test it on my local machine.  The methods work and I can successfully view the WSDL with the Service Description Link. I have have built the WSDL and DISCO, modified them for SharePoint and deployed them along with the .asmx file to the _vti_bin folder of my SharePoint Server per the Microsoft Walkthrough instructions. I don't have a .dll to deploy to the GAC. When I browse the deployed .asmx file, I see the test page with the list of methods.  However, when I try to add ?WSDL or ?DISCO to the URL (or use the Service Description link), I get a page not found error (404). Looking in the web server log, I see that the file wswsdl.aspx or wsdisco.aspx are being called and then are returning a 404.  As I understand it, these two files are called to interpret the ?WSDL or ?DISCO querystring parameters and convert them to the *wsdl.aspx or *disco.aspx file names in the directory.  This is working fine for other web services already deployed to the directory. So the big question is, what am I missing?  I'm not sure what to look at next and I'm pretty green with web services (although I did this on a MOSS 2

Deploying ASP.NET web service problem



Windows Server 2003, 64-bit

IIS 6.x

To test the above, I created a simple, default HelloWorld ASP.NET web service using VS 2005. The service runs. That is, I can see the HTML page that says "The following operations are supported...."


And if I click on the "HelloWorld" link, the page which has the sample SOAP messages and Invoke button displays. The problem is, if I click on the "Invoke" buttion, I see below errors in a different browser window. Can someone tell me what they mean or better yet, how to fix the problem? (The web service runs just fine on my local XP Professional computer.)






System.InvalidOperationException: Unable to generate a temporary class (result=1).

error CS2001: Source file 'C:\WINDOWS\TEMP\fj76rmhp.0.cs' could not be found

error CS2008: No inputs specified


   at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)

   at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemb

Help deploying Windows Service to 64bit Server usinf Visual Studio 2008 Setup Project?

I have a Windows Service I created a while back for our Win2003/2008 32bit Servers, written in Visual Studio 2008, deployed via a VS2k8 Setup Project.  Everything works great, installs fine, and runs as it should.  There is no platform dependent code, it's all straight-up .Net Framework stuff, so we thought it should deploy to a Win2008 64bit Server just fine.  But this seems not to be the case.

When I try to install the Service as is on the 64bit machine, the service and associated DLL's are installed to the "C:\Windows\SysWOW64" folder, but when you right click the Service itself and look at the properties, it is trying to find the .exe file in the "C:\Windows\System32" folder. This difference prevents the service from running, obviously.

If I change the Setup Project settings, set the Target Platform to "x64" and change in the File System screen to use the "System (64-bit) Folder" placing the files in there and re-run the setup.exe on the server.... now the files are correctly installed to the "C:\Windows\System32" folder, but the Service itself is not 'installed', that is it *does not* show up in the Services Manager.

Just for the giggles of it I tried to manually install the service using 'installutil.exe' in the .Net Fra

Deploying an .asmx Web Service on a Windows Server 2003 machine

Hi, I have created a WEb Service using Visual Studio 2008 on an XP PC. I have sucessfully deployed the web service and tested it correctly on my local machince. It is located at http://localhost/MAC/Service.asmx.

Now, what I want to do is deploy this Web Service on a server. The server is running Windows Server 2003 Web Edition. I thought it was only a matter of copying the "UMACS" folder on my XP PC, which includes the Service.asmx, web.cong and service.cs files etc, and then copy this to the server and try to deploy it through IIS.

I have tried this but everytime I try to access http://localhost/MAC/Service.asmx like before, I get "Error 404: Web site cannot be found". I have done a lot of searching on this. I have enabled IIS apping use the command "c:WINDOWS\Microsoft.NET\Framework\1.1.4322\aspnet_regiis.exe -i" but still this doesn't work.

Is there something else I need to do to deploy this web service?

In the IIS on the server, there is a "Web Service Extensions" section. Do I have to do something in here first to make it work?

Windows Service Applications Tutorials

You can easily create services by creating an application that is installed as a service. For example, suppose you want to monitor performance counter data and react to threshold values. You could write a Windows Service application that listens to the performance counter data, deploy the application, and begin collecting and analyzing data.

WCF Tip: Using Properties in Service Contracts

you'll notice all of the Service Contracts are implemented with interfaces containing only methods. For the longest time I thought that's all that was supported, until I thought about it a little more. In C# land, properties are simply wrappers around a get method and set method, so why wouldn't we be able to use properties in a service contract? Well the answer is we can.

Realizing a Service-Oriented Architecture with .NET

This article is meant to be a practical discussion guide to building a .NET application in a service-oriented architecture. We will consider real-world goals, real-world obstacles, and experience-based solutions. I quickly concede the approaches discussed here are not exhaustive or infallible. This paper is focused on application development, not application integration. We will specifically consider architectural issues and component design issues.

The Potential of Web Services

Web Service for uploading documents into SharePoint

WS UploadService is a web service written for Microsoft Office SharePoint Server 2007 and Windows SharePoint Services 3.0 and is meant for uploading documents into SharePoint. I have just uploaded the zip file to GotDotNet.com so it will take some time before the zip file appears in the list of downloads. For the time being, you can download the zip file from the following location

Creating and Using an ASP.NET Web Service in Visual Web Developer

In addition to letting you create Web pages, Microsoft Visual Studio also lets you create Web services that use ASP.NET XML. Creating a Web service in Visual Studio is similar to creating a Web page. You can also use the Microsoft Visual Web Developer Web development tool to reference and use Web services that are in a Visual Web Developer solution, on your local computer or in a local or external UDDI directory. In this walkthrough, you will create the Web service in one solution and use it in another.

Tasks illustrated in this walkthrough include:

Creating a simple XML Web service in Visual Web Developer.

Creating a separate Web site that uses the Web service.

deploying to msdeploy does not support a proxy server


I am trying to deploy through webmatrix but my system Proxy server configuration is not being used. I assume that webmatrix would detect the proxy server settings and use that for the msdeploy calls under the hood. Can anyone confirm this is a know issue? 

AutoGenerateSelectButton="False" ignored when using Domain Service


Crosspost from RIA Services forum: http://forums.silverlight.net/forums/t/196466.aspx

I'm creating a Dynamic Data application in VS2010 and have recently switched to using a Domain Service to give greater control over the data presented to the client. I've noticed that the AutoGenerate<Action>Button attributes on my GridView are being ignored. The presence of the Edit and Delete buttons appear to be contingent on the existence of Update and Delete methods on the partial classes autogenerated in the Domain Service, but i'm not seeing how to control the generation of the Select button. Is there a way to control this from within the Domain Service class?

Any framework for creating a job scheduler service?


Just curious to know if there was any official Microsoft code blocks, classes, or such for writing a service that runs other assemblies or WCF services?  That can be configured easily from a web page, pre-coded, for running tasks at certain times on certain recurring intervals?  I've already built one but am open to anything done better- which I'm sure there is.  Thanks!!!

Convert WCF service to self hosting application


 I created project as a  WCF Service application and now according to recuriment that needs to be converted as a self hosting application

How can i do this?

Converting WCF service app to Self hosting app?

WCF Data Service to JSON example? v4


I would like to take WCF Data Service and produce JSON output to consume on various mobile apps.

Can anyone give me a how-to on the JSON part?  I.e., what is different than normal XML outut?



Problem to obtain client IP on web service



I'm having problems to obtain the client IP on web service. Here's my scenario:

One server with Windows 2003, hosting the web service using .Net Framework 2.0, with IP and host name ServerTransaction.
Other server with Windows 2003, hosting a web application using .Net Framework 2.0, that consuming the web service on  ServerTransaction, with IP and host name ServerApplication.
Many other computers on the local network (IPs:,,, ...) acessing the web application on ServerApplication.

On the code of the web service I've tried to use HttpContext.Current.Request.UserHostAddress or HttpContext.Current.Request.ServerVariables("REMOTE_ADDR") or HttpContext.Current.Request.ServerVariables("HTTP_X_FORWARDED_FORR"), but always I can only get the IP of ServerApplication (

Any idea or tip?

Thanks and sorry for my bad english.

A lengthy operation in an ASP.NET web service


I've built an ASP.NET web service with .NET 2.0 (an asmx file). I invoke a web service method using Ajax. The method takes a substantial amount of time to execute (5 minutes to 1 hour). I believe it's not a good idea to "hang" the web request for so long.
I'm wondering if the web service method could spawn an additional process which in turn would execute the lengthy operation and notify the web service once the operation is completed.
Are there any good practices regarding this kind of functionality?


.Net Frameword 4 SOAP Web Service



We want to upgrade from VS2005 to VS2010. Before we do that, I would like some clarity about some things.


Can we build typical SOAP webservices with the 4 Framework as I could with 2.0?


Would a WCF Service allow me to have both REST/SOAP services in one application?


Is Framework 4 ONLY for REST services and I need to stick to 3.5 for SOAP?


I downloaded the free Web Developer 2010, but I cannot seem to get anywhere trying to figure this out.


Thanks for any input.





ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend