locked
publish site using the with web config and database RRS feed

  • Question

  • User-2144563216 posted

    I tried to publish my ASP.Net site in VS2012. The pages that do not require login and the database works fine.

    However, I dont how to publish the web config file and the database.

     

    Any help please

    Tuesday, February 25, 2014 1:01 PM

Answers

  • User-1315512054 posted

    Hello,

    You should change the connection string (if needed) in the web.config file and publish it via FTP client or you could inculde it in the project and change the connection string on the server.

    For the database, it depends on your hosting provider if the extarnal connections are enabled then you could use the SQL Management Studio. IF not, then you should use the hosting provider control panel.

    Regards

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, February 25, 2014 1:24 PM
  • User1815411410 posted

    hi there,

    you need to alter your connection string

    Please see http://faq.asphosthelpdesk.com/article.php?id=53 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, February 27, 2014 2:12 AM

All replies

  • User-1315512054 posted

    Hello,

    You should change the connection string (if needed) in the web.config file and publish it via FTP client or you could inculde it in the project and change the connection string on the server.

    For the database, it depends on your hosting provider if the extarnal connections are enabled then you could use the SQL Management Studio. IF not, then you should use the hosting provider control panel.

    Regards

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, February 25, 2014 1:24 PM
  • User-2144563216 posted

    sorry need a little more help

    <connectionStrings>

        <add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-myDatabase-20140109095318;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-myDatabase-20140109095318.mdf"

          providerName="System.Data.SqlClient" />

        <add name="myDBConnectionString" connectionString="Data Source=.;Initial Catalog=myDB;Integrated Security=True"

          providerName="System.Data.SqlClient" />

      </connectionStrings>

    what do I change?

    Tuesday, February 25, 2014 3:30 PM
  • User1815411410 posted

    hi there,

    you need to alter your connection string

    Please see http://faq.asphosthelpdesk.com/article.php?id=53 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, February 27, 2014 2:12 AM