Main Page
 The gatekeeper of reality is
 quantified imagination.

Stay notified when site changes by adding your email address:

Your Email:

Bookmark and Share
Email Notification
ASP.Net 3.5 and the SLN
Overview
When you create a new website on a web server (without being logged into the web server through something such as RDP) with a network path in Visual Studio 2008, the solution file (.sln) and accompanying .suo file are not generated on the web server. Instead, those two files are created locally on your computer. In order to get the .sln (and configured .suo) onto the website you just need to copy the .sln file from your local computer, place it in the main folder of the website on the web server, double-click on the SLN file to open the website project in Visual Studio 2008 and perform a re-build (to generate the .suo). Once the SLN is on the website and the SUO is created anyone can double-click the SLN in order to open the website with Visual Studio 2008. The steps listed below go through the process.

Creating a new website on the web server from the local computer
  1. Under "File" -> "New" -> "Website" -> "ASP.NET Web Site".
  2. Specify a network path to where the web site will be located (such as \\folderA\folderB\yourProject). The destination will be created by Visual Studio 2008 with usually an "App_Data" folder, default.aspx, default.aspx.vb and web.config files.
  3. Create and attach the application pool to the new folder created. This is done by logging into the web server and accessing the Internet Information Services (IIS) Manager.


Getting the SLN file into the new website on the web server
  1. If you find that no solution file was created when the new folder was created, the location of the solution file is most likely on your local computer.
  2. In order to get the solution file onto the web server (so others can easily open the website project, locate the solution file (.sln) on your local computer usually at:
    Documents and Settings -> Your account name -> My Documents -> Visual Studio 2008 -> Projects -> Foldername of the Project -> ProjectName.sln
  3. Copy the SLN file (not the SUO file).
  4. Paste the SLN file into the main folder of the website you created on the web server.
  5. Double-click on the SLN file on the web server to open the website project in Visual Studio 2008.
  6. Perform a re-build and the SUO file will be auto-generated and placed in the same location as the SLN file.
  7. At this point anyone can double-click on the SLN file and open the website project in Visual Studio 2008.
About Joe