I created new website(File->Create->WebSite) in visual studio 2010 and then tried to open this in other computer with visual studio 2010, however VS couldn't open the website saying "one ore more projects in solution were not loaded correctly" and output window tells: "website2 (it is name of the website) doesn't exist" despite that this exists.
Does someone know the solution of this?
Try following , It may help.
On your first computer , open the project , Right click on your WebSite and click open containing folder. copy your website from the folder to the new computer. open your project on second computer , remove the website which is not loading correctly and then add existing project to the solution. select the website which you just copied from the first computer.
Related
I came across this project online and can't really get it to open with Visual Studio. Extremely new to Visual Studio. This doesn't have an exact project file that can be opened from what I've understood. It has a bunch of .cs and .aspx.cs files. How exactly do I open and execute this project in Visual Studio? Or am I barking up the wrong tree and trying to open something that can't be opened?
Link to the project - http://www.speedyshare.com/98XZf/ca-ma-sy
May be your project is not a web application project. it might be wesite.
If it is web application you will find .csproj file, if you didn't find then just follow the below steps
Open Visual Studio
click on file --> Open --> Website
You will get dialogue box with local file structure, Just Navigate to your project folder and select and click on open, After click on open your solution will be ready with your project.
Cheers,
Vijay
Hi I don't know what I did, when I try to run visual studio project by pressing F5, I can see only loading symbol in browser but not displaying anything. When I checked whats going on, I got to know it is running on IIS Express and not on ASP.net development server.
What changes I should do to make my project to run on ASP.NET development server?
In the properties of your web project you can see the start options which has a server option.
Also if you right click your web project you can see option to use IIS express or dvelopment server.
Don't worry , this is not big issue .
Just open your csproject file into notepad.
And find this line in your csproject
<UseIISExpress>True</UseIISExpress>
Then change True to false
<UseIISExpress>false</UseIISExpress>
And save that ,then you can run your project .
Is there a way to specifically name a website project "Website" in a visual studio 2012 solution?
For example:
Create a blank solution at c:\temp\Solution
Right-click in solution explorer, select Add New Website at c:\temp\Solution\Website
Problem:
In solution explorer, the website will be named something like Website(1) or Website(2), etc. instead of just Website?
Is this a flaw in visual studio or user error?
it mostly happens if the name conflicts and it starts assigning indexes with website name in project directory, i mean the .sln file.
or if somehow a different port no is used, then it does the same thing.
as said by yourself , its not a problem that is to be bothered...
I created an Empty Website (not a project) using File > New Website > Aps.net Empty Web Site. Usually when I click on Build, there is an option to "Publish Web Site". However, I don't see it here. All I can see is build and rebuild solution. What am I doing wrong? Even when I right click on the website, it just gives me an option to Build, but not Publish. I previously was using VS 2010, and it has the Publish option.
Publishing is only support for web application projects, not web site projects.
http://msdn.microsoft.com/en-us/library/dd547590.aspx
I don't know if this is true in all cases, but I just uninstalled VS 2012 Web Express, deleted the contents in the Microsoft Visual Studio 11 folder, and then installed the Professional version instead. Maybe the Express version doesn't have this, but after installing the Professional version, I do have the "Publish Web Site" option.
I believe this problem can be solved by downloading and installing the relevant Web Publish Update from this web page:
http://msdn.microsoft.com/library/jj161045
I had the same problem in Visual Web Developer 2010 Express. When I installed the update, the option to "Publish Web Site" became available to me.
EDIT: You may find that when you click "Publish Web Site", you get an error like this:
the imported project "C:\ProgramFiles\MSBuild\Microsoft\VisualStudio\v11.0\WebSites\microsoft.website.publishing.
targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
I solved this problem by going into "website.publishproj" (found in the Solution Explorer with my website open), and "hardwiring" the WebPublishTargetsVersion element like this:
<WebPublishTargetsVersion>10.5</WebPublishTargetsVersion>
For some reason, the existing code was returning 11.0, instead of 10.5.
Hardwiring it like this might cause problems later if you update your version. So do it with caution.
I have an Asp.Net project in Visual Studio 7.1 , Now when I open it in Visual Studio 2008 , I can't access to project files :
(source: picfront.org)
How can I open the project with VS2008 or VS2010 ?
Open the sln file with a simple text editor (make backup)
and search for your project that did not find, and correct the directory path.
You have probably a line like that... you need to fix the dir, saved it and open it again.
Project("{XXXX-XXXXX-XXXX}") = "PECeShopSame",
"Dir1\PECeShopSame\PECeShopSame.csproj", "{XXXX-XXXXX-XXXX}"
I see this is old post but I learned that you can also accomplish converting the .csproj file by browsing to the .csproj file and double-clicking on it. Visual Studio will open and offer to convert it for you - follow the wizard. As a final step in the wizard, it will prompt you to select the project in solution explorer and convert to web application.
I had situation where the files didn't appear in solution explorer after converting .csproj file therefore I couldn't select "convert to web application". I closed the (empty) solution then opened as web site (instead of project/solution) and all was well!