How to open downloaded SLN file?

Posted on 2004-11-21
Last Modified: 2008-02-26
Hi there,

Been developing with c# for quite a bit now but can't believe I can't figure this one!

When I develop a new c# website, Visual Studio .Net creates me a nice new virtual directory on the server and all files I add are autoamtically addeded to th project

Now I downloaded an open source application (zip file), it comes with everything

etc etc

So great, I unzipped it to my local hard drive and tried to open the SLN (solution file),.,, but everytime i do it says (between the ----------)

"The default web access mode for this project is set to file share, but the project folder at http://localhost/ndcms cannot be opened with the path "c:\inetpub\wwwroot\ndCMSD".

"Unable to open web project"

Retry using a different file share path
Try to open the project with frontpage server extension

I sort of understand this, yes it can't find the source files etc on my local IIS. My question is what is the best way to copy local files into the IIS, just copy them into the directory  on IIS and the create a virtual directory? But will that mean the .SLN file is now invalid??

Where is the path name "c:\inetpub\wwwroot\ndCMSD" stored??

I know its pretty normal to have IIS on localhost, BUT i have a seperate server named server1 which is local to my LAN.

To cut a long story short, i am looking for the best way to convert the files extracted from the ZIP into my IIS file.

I thought there would be an import or similar??

Question by:ianinspain
    LVL 20

    Accepted Solution

    When you have a "total stranger" web project in your machine, don't bother to try to open using VS.NET. It won't let you until you create one virtual directory that points to the project folder. So what you need to do here is either

    1. Open IIS snap-ins and create a virtual directory that points to the web project folder,
    2. or right click on the folder (ndCMSD), select "Web Sharing" tab, and continue with select "Share this folder" option button will open "Edit Alias" dialog window. Enter an alias name and leave other settings as default, then press OK button.

    The virtual directory "Application Name" (no.1) or the "Alias name" (no.2) must be the same with URLPath setting in <project_name>.csproj.webinfo file and "Project" setting in the .sln file.

    To know what is URLPath in <project_name>.csproj.webinfo and "project" in .sln file open the two files using notepad.

    Author Comment

    Superb! Works perfect... I chose option 1.. Create a new vitual directory in IIS... right clicked it and clicked create... on my directory... Superb!

    I am quite interested in what <project_name>.csproj.webinfo is.. which i did edit, do you know where i can find info with regards to format/contents of <project_name>.csproj.webinfo and .sln file??

    Also do you know what the difference with web sharing tab is to creating a new virtual directory?? They appear to be a little different...

    Thanks very much for the info..


    Author Comment

    Also .. i do get an error message, it isn't a problem i know.. but says that it believes that the project(solution used to be under Source Control as a file is missing... It says no problem, it will treat the solution/project/files that were under source control as if they are not..

    So i know its nothing to worry about, but are you aware where this information is stored, something is still telling it that it is under source control even though i have done a Save ALL, Save Solution, Save Project... If i close it down again and re-open .. it still thinks its under source control.

    There is no MSSCCPRJ.SCC in the directory on the server or my project directory

    Just though you may know?

    Thanks once again..

    LVL 20

    Expert Comment

    >> ...what the difference with web sharing tab is to creating a new virtual directory??...
    As a matter of fact, I don't see any difference when create a web folder either using IIS console or Windows Explorer. Except, IIS provides more functionatilies on security nd http request handling.

    As you read the following article, you'll find there's actually the 3rd way:

    >> quite interested in what <project_name>.csproj.webinfo is...
    Most of the time, you shouldn't have needs to modify the .csproj.webinfo and .sln files directly. I learnt the project files structure by experience, project by project. Sometimes for some reasons it's inevitable (I would say) to hack the files to make my life easier.

    >> ...i do get an error message..
    That because the project was created or added to the solution using VSS. I know exactly what's the error message, but you still can continue working with VS.NET after press a button and close the dialog window, right? :o)

    >> ..There is no MSSCCPRJ.SCC in the directory...
    This is my suggestion to get rid from the annoying VSS error message
    1. Remove the .sln file. Don't worry, you can re-create again easily.
    2. Open the .csproj with notepad, and you'll find something similar with this config

            ProjectType = "Web"
            ProductVersion = "7.10.3077"
            SchemaVersion = "2.0"
            ProjectGuid = "{CA0B5B92-04E2-428D-8BE8-56C30C760D20}"
            SccProjectName = "SAK"
            SccLocalPath = "SAK"
            SccAuxPath = "SAK"
            SccProvider = "SAK"
    Remove the lines which contain SccProjectName, SccLocalPath, SccAuxPath and SccProvider. Save and close the file.

    3. Double click the csproj file and open it via VS.NET
    4. Click on the menu File->Save All. Then VS.NET will prompt you to save a new solution file. Give a name and save.

    And one more reading for your original question.

    Author Comment

    Hi ihenry!

    Superb!, yep ... acutally I just edited the proj file in notepad and removed

            SccProjectName = "SAK"
            SccLocalPath = "SAK"
            SccAuxPath = "SAK"
            SccProvider = "SAK"

    Didn't delete the sln... left it.. and all works well..

    Thanks for all your help on this, got me out a jam... perfect

    Assigning points ,... thanks!


    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    728 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now