« Previous Next »

Thread: Help Needed on ASP.Net Deployment

Last post 03-14-2008 12:06 AM by apondu. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 08-10-2007, 4:00 PM

    • apondu
    • Not Ranked
    • Joined on 08-10-2007, 3:52 PM
    • Mysore
    • Posts 3

    Help Needed on ASP.Net Deployment

    Hi Friends...

    I needed some help on ASP.Net web application along with its web service deployment
     
    I have a situation where i am not able to understand and confused a bit on how to proceed with the deployment.

    I have a Web Application and a Web Service associated with the Web Application and each of these have a ther own web.config files. Now i  want to deploy both the application together but the problem is the there are database connections strings in the web.config files which can be changed .

    Can someone please let me know the procedure to follow for the deployment because i found example for class library and web application but i couldn't find any example where i have to deploy both the web application and web service together.

    Can someone please take sometime and help me out with the procedure.

    i am using VS 2005 and Web Deployment addon.
     
    My mail-id apondu@gmail.com

    Thank You

    Regards,
    Govardhan
    Regards,
    Govardhana
    http://www.apondu.50megs.com
  • 08-12-2007, 1:45 AM In reply to

    • mvolo
    • Top 25 Contributor
    • Joined on 09-17-2003, 1:48 PM
    • Philadelphia, PA
    • Posts 584
    • IIS MVPs

    Re: Help Needed on ASP.Net Deployment

    Hi Govardhan,

    You can merge the configuration for both together into one web.config file, assuming that the configuration does not conflict with each other.  If both your web application and web service use the same connection strings, then there shouldnt be a problem, they can just be specified once.

    If they do use the same connection string names but different connection strings, you can specify the settings for each in a location tag to apply them to a specific url.  For example:

    <!-- global settings for the app -->
    <connectionStrings>
      ...
    </connectionStrings>

    <!-- specific settings for the /webservice.asmx web service -->
    <location path="webservice.asmx">
     <connectionStrings>
       ...
     </connectionStrings>
    </location>

    Provided that your code reads this configuration for the specific url, you can do this.

    Alternatively, if your web app functionality or the webservice are in their own subdirectory, you can deploy the web.config to the subdirectory to have it apply to that subdirectory only.

    I hope this is what you are asking for.

    Thanks,

    Mike Volodarsky

    Program Manager
    IIS Core Server
    Visit mvolo.com for more inside information on IIS7, IIS and ASP.NET


    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 08-12-2007, 1:55 AM In reply to

    • apondu
    • Not Ranked
    • Joined on 08-10-2007, 3:52 PM
    • Mysore
    • Posts 3

    Re: Help Needed on ASP.Net Deployment

    hi mvolo, Thanks for the response, Both my web application and web service are 2 seprate projects but both are in the same solution. I tried to deploy thm by compiling them using web deployment project addon but i createda .msi setup and deployed i was able to get only the web application but it was not able to refer to the web service which is deployed in the same virtual directory along with the web application... can u please help me out on how to deploy web application along with the web service which are 2 seprate projects but both of them are in same solution. Thanks for the response and help Regards, Govardhan
    Regards,
    Govardhana
    http://www.apondu.50megs.com
  • 08-13-2007, 8:49 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,238
    • IIS MVPs

    Re: Help Needed on ASP.Net Deployment

  • 03-14-2008, 12:06 AM In reply to

    • apondu
    • Not Ranked
    • Joined on 08-10-2007, 3:52 PM
    • Mysore
    • Posts 3

    Re: Help Needed on ASP.Net Deployment

    Hi,

    The better option for my problem of 2 different project was to merge both the project into one main project, then add the reference to the web servce in the web.config and then use it.

    Later when the main project is deployed we have a option of giving different port numbers we might have to change the port number of the web service too and this must be done manually we can do that by using the option provided in IIS.

    If some one comes across the same problem please feel free to mail

    Regards,
    Govardhana
    http://www.apondu.50megs.com

    Regards,
    Govardhana
    http://www.apondu.50megs.com
Page 1 of 1 (5 items)
Microsoft Communities