Solved

How do I tranfer my VB.NET Application files to Windows Web Server 2008 ?

Posted on 2009-03-28
1
289 Views
Last Modified: 2012-08-14

   I developed a ASP.Net and VB.Net website  and  I want to transfer my files to a dedicated Web server running windows server 2008 . I created a database in the SQL Management Studio in the server and I attached my MDF file and How I do establish a Connection String ? What are the things I have to mention in the web.config file .

      In my local system I just placed my mdf file in the App_Data folder and used it for development How do i establish a connection in web server 2008  ?
   
0
Comment
Question by:navinbabu
1 Comment
 
LVL 9

Accepted Solution

by:
RobertNZana earned 500 total points
ID: 24013336
In your web.config file you can create your connection string like this...
http://weblogs.asp.net/owscott/archive/2005/08/26/Using-connection-strings-from-web.config-in-ASP.NET-v2.0.aspx

For example...

<connectionStrings>
    <remove name="LocalSqlServer" />
    <add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
    <add name="MainConnStr" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|main.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
</connectionStrings>
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A safe way to clean winsxs folder from your windows server 2008 R2 editions
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question