Ask a questionAsk a question
 

AnswerWebservice deployment

  • Tuesday, April 11, 2006 2:48 PMSalvaPatuel Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi,

    I am facing some issues trying to create a Setup project for my webservice. I have done this thousand of times on 1.1 but things are a little different on 2.0

    I have a simple webservice, with all these new folders that have mess my file organization (app_code, app_data, app_globalResources, etc). The webservice works fine and now I need to create a setup project so I can distribute the webservice in a single installation file.

    The problem is the following one:
    When I create the web setup project and I try to add the "Primary output" the form appears with only one entry , "content"... mmm... does not look right. If I put content when I compile and I deploy my webservice actually installs the service but copies all my source files and solution files....!

    How can I solve this? I can deploy my webservice from my VS using "Publish Web" but is not very handy if I have to distribute a setup for several customers (of course, I can not connect from my machine to every individual customer and press "publish web"...

    Is there any simple way as I have done it with version 1.1?

    Thanks!

Answers

  • Thursday, April 13, 2006 7:10 AMMark FussellMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Sounds like you need to use the Web App project which take you back to the .NET 1.1 days of project development for an ASP.NET web service application.

    See here for RC1 candidate. http://msdn.microsoft.com/asp.net/reference/infrastructure/wap/default.aspx

    A word of warning when using this with WSE 3.0. The Visual Studio 2005 Web Application Projects (RC1) project type does not work with the WSE 3.0 integrated Visual Studio configuration tool. To use WSE 3.0 with the Visual Studio 2005 Web Application Projects (RC1) type you have to use the configuration tool standalone, launching this by;

    Start-> All Programs-> Microsoft WSE 3.0-> Configuration Tool and then loading with the app.config file or the web.config file depending on the type of project.

    Hope this helps.

    Mark Fussell

    WSE Program Manager

  • Thursday, April 27, 2006 3:14 PMalden Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    I had the same problem as you.

    My solution was the following:
    Download the Web Deployment Projects adding for Visual Studio from here:
    http://msdn.microsoft.com/asp.net/reference/infrastructure/wdp/default.aspx

    Then add a Web Deployment Project to your solution. The project that it will deploy should be set to your webservice project. From the web deployment project you can set all sorts of options such as how to pre-compile the code (no more source files!). Then for your Web Setup Project Add the primary output of the Web Deployment Project. It seems to be a workable solution for me at least. Good luck.

All Replies

  • Thursday, April 13, 2006 7:10 AMMark FussellMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Sounds like you need to use the Web App project which take you back to the .NET 1.1 days of project development for an ASP.NET web service application.

    See here for RC1 candidate. http://msdn.microsoft.com/asp.net/reference/infrastructure/wap/default.aspx

    A word of warning when using this with WSE 3.0. The Visual Studio 2005 Web Application Projects (RC1) project type does not work with the WSE 3.0 integrated Visual Studio configuration tool. To use WSE 3.0 with the Visual Studio 2005 Web Application Projects (RC1) type you have to use the configuration tool standalone, launching this by;

    Start-> All Programs-> Microsoft WSE 3.0-> Configuration Tool and then loading with the app.config file or the web.config file depending on the type of project.

    Hope this helps.

    Mark Fussell

    WSE Program Manager

  • Thursday, April 27, 2006 9:51 AMSalvaPatuel Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi,

    Thanks for your answer, I will download and try it.

    I have a doubt, let's say that I do not install the Web App projects, how the new vs2005 model works when you need to create a installer for a web service? Why only provides "content" and includes the source files?

    thanks!

  • Thursday, April 27, 2006 3:14 PMalden Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    I had the same problem as you.

    My solution was the following:
    Download the Web Deployment Projects adding for Visual Studio from here:
    http://msdn.microsoft.com/asp.net/reference/infrastructure/wdp/default.aspx

    Then add a Web Deployment Project to your solution. The project that it will deploy should be set to your webservice project. From the web deployment project you can set all sorts of options such as how to pre-compile the code (no more source files!). Then for your Web Setup Project Add the primary output of the Web Deployment Project. It seems to be a workable solution for me at least. Good luck.
  • Friday, April 28, 2006 6:34 AMPinging Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hey!

    Can anyone please guide me to a step-by-step process for deployment  of WSE3.0 with my asp.net 2.0 webservice in VS2005?

    I am trying to deploy to a clean machine with neither the asp.net nor the WSE3.0 runtime installed

    I have tried ClickOnce, but that is workable mostly for Windows Forms Applications..

    Thanks in Advance

  • Friday, August 25, 2006 8:12 AMDhori Alpesh Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    hi

    Publish webservice is not a proper way but it is one solution

    Use  setup&deployment wizard in which select  webproject

    in which donot select option content leave  as it this option for copy all content file to destination

    just add primary out it atomaticaly create virtual directory

    Thanks,

    Dhori Alpesh

    Software Developer

  • Monday, January 22, 2007 11:19 PMwillis58103 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    In your post you said "From the web deployment project you can set all sorts of options such as how to pre-compile the code."

    Can you please specify exactly which web deployment option I can set to pre-compile the code?  I've looked through the project properties but haven't found it.

    Chad