Converting web site project to web application in vs 2008 - converting web service issue

Last post 06-25-2008 5:51 AM by Thomas Sun – MSFT. 1 replies.

Sort Posts:

  • Converting web site project to web application in vs 2008 - converting web service issue

    06-22-2008, 4:18 PM
    • Loading...
    • spatemp
    • Joined on 05-15-2003, 8:39 AM
    • Posts 55

    I am converting web site project into web applicatio project in vs 2008 and running into web reference related issue.  I am not so sure how to address this.

     Our old web site application had app_webreferences folder with AllServices as sub folder and then all of the web services under that folder.

    for example:  AllServices\AService.wsdl  AllServices\BService.wsdl   AllServices\CService.wsdl   etc...

    our code references AllServices.BService in the code or AllServices.AService etc...

     It seems like when I Right Clicked on web application project and clicked "Convert to Web Application" it did not do anything as to adding web reference.

    I guess I can add it manually but the problem I am having is how do I create subfolder called AllServices under web reference and put all web services (AService, Bservice, CService) in that one folder to minimize some of code changes. 

     It seems like in WebSite apllication the proxy class that was generated was just one because it was under AllService folder.  I essentially want to duplicate that in Web Applicaton project.

     Anyhelp would be appreciated.   Thanks.

  • Re: Converting web site project to web application in vs 2008 - converting web service issue

    06-25-2008, 5:51 AM
    Answer

    Hi,

    You need to re-add these web services in your new Web Application.

    Before migrating any code into your new Web Application Project (using "Convert to Web Application"), you should first setup assembly references for it, such as add Service Reference.

    You also need to make sure that the Namespace of proxy class matches the Namespace you used in the code.

     

    I hope this helps.

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Page 1 of 1 (2 items)
Microsoft Communities
Page view counter