VS 2013 cannot create new asp.net web application project - visual-studio-2013

So I'm trying to create a new asp.net web application in Visual Studio 2013. I select the empty project template (have also tried Web Forms too) click Ok.
Then I get an error message "Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL)).
I have search the net for help but no joy yet. I have seen lots of people saying that in Tools > options > Source Control > Environment to make sure "Get Everything when a solution or project is opened" is unticked. By default all these boxes are unticked. In the Source Control Environment Seetings it has Team Foundation with nothing ticked beneath. Not sure what to do?

Related

IIS Debug: Unable to open script document

Unexpectedly stopped working for me debugging classic ASP in Visual Studio 2015.
I have enabled Server-Side Debugging and on error and trying to lunch VS (and break app) I got error that I need to find file to view source. When I trying to browse for it I got another error with "Unable to open script document".
Also when I set breakpoints in code and app reach this places I got this same message: "Unable to open script document".
I tried to:
uninstall/install VS
reset all VS settings
remove/add IIS
After day of searching solutions I found cause of the problem..
Yesterday I added prefered editor to .asp files in Tools -> Options -> Text Editor -> File Extension. After removing .asp extension from list Debugging start working.
I had this same issue but off of a fresh upgrade to Visual Studio 2017. It was my exception settings catching 3rd party java script libraries being loaded in. I fixed this by turning off JavaScript Runtime Exceptions and WebKitJavaScript Exceptions.

Can't create or open web applications

I'm using VS 2013 Pro and having big problems. Opening an exsiting Web application and creating new web applications throws errors, rendering VS completely useless.
I will try to describe the problems, details about what might be causing the problem and what I've tried to fix the problem.
The problems
1) When I try to open an existing web application, I get an error saying:
Creation of the virtual directory http://localhost:1234/ failed with the error: Unable to access the IIS metabase. You do not have sufficient privilege to access IIS web sites on your machine.
2) When I try to create a new web application, I get an error saying:
Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
Details
During the weekend the internal IT department, made a change to the network. The "My Documents" folder i stored on a network drive. The IT department changed the path of the "My Documents" folder. Visual Studio has some setting files which are stored in "My Documents" and it might not have updated the path to the folder, causing the error.
What I have tried
Ran Visual Studio as Administrator
Repaired Visual Studio from "Add/remove programs"
Uninstalled and reinstalled Visual Studio
Uninstalled Resharper
Tried this Can't create new projects nor items: Visual Studio 2010 dialog initialization exception
Running c:\windows\microsoft.net\framework\v2.0.50727\aspnet_regiis.exe -ga ASPNET (gave the error: An error has occurred: 0x800706fc The trust relationship between the primary dom
ain and the trusted domain failed.)
Nothing has fixed the problem. Please heeeeelp!!!
Solution 1:
Control Panel -> Programs and Features -> Turn Windows Features on or off... inside that, we had to select Internet Information Services -> Web Management Tools -> IIS 6 Management Compatibility -> IIS Metabse and IIS 6 configuration compatibility.
Solution 2:
Edit the web application's project file with a text editor and change this line from True to False:
<UseIIS>True</UseIIS>
Solution 3:
Grant IIS AppPool identity permissions to the %systemroot%\inetsrv\config
Solution 4:
run in command prompt:
aspnet_regiis -i or aspnet_regiis.exe -ga

Visual Studio : Language Service Error

I'm trying to compile a project I have in Visual Studio 2010. It has built fine on 2 other computers with Visual Studio, but on this computer, it will not compile, and returns:
"The property could not be read/written because the language service returned an unknown error"
Obviously, I have tried googling, and nothing of any use came up, so some help would be great.
Additional Information:
Project is an XNA 4.0 Project
Trying to deploy the solution to a Windows phone. The phone is plugged in, unlocked, etc. and other projects will deploy successfully to it.
I've run into the exact same error message when I tried editing the AssemblyInfo.cs using VS 2010's Assembly Information dialog from within the project properties (open Properties -> Application from below the given project).
As this thread suggests, I deleted the AssemblyInfo.cs file and filled in the values I wanted in the dialog box which created a new and working AssemblyInfo.cs. Maybe this would help/would have helped in your scenario as well.
Note, that you'll get a fresh and valid GUID if you simply click save after opening the dialog.
I encountered this today in VS 2017. It went away as soon as I performed a build which fetched all my references.

Error while running MVC3 Application

i have Visual Studio 2010.
Recently I was using MVC2 and due to some reason I installed MVC3 in my computer. Everything was working fine, till today.
Now when I am creating new project, I am getting below error:
When I clicked on debug
When I went to the folder and tried to open the solution I am getting this
Please help
EDIT 1
When I open the C# project file of the application and tried to run I am getting the below error
Also when I added a controller and tried to right click on the method to create view. I am not getting any option of "Add View"
I suspect the problem is due to any corrupt DLL or assembly.
Edit
Linked to another question Error while running MVC3 Application after reinstalling also
I would try uninstalling and then reinstalling the MVC3 binaries in Add/Remove Programs. Be sure to grab both the MVC 3 and MVC 3 - Visual Studio 2010 Tools.
Note: I am saying the Tools as well because VS crashed on you when you tried to create a new application.

Exception when Deploying to SharePoint 2010 from Visual Studio 2010

I've done MOSS 2007 development for some time, and am just starting to get my feet wet with SharePoint 2010. I created a SharePoint project, added a Visual Web Part, and typed "Hello, World!" into the web part's user control.
Everything works fine the first time I deploy the project (by selecting Deploy from the project's context menu in the Solution Explorer). It deploys the project, activates the feature, and the web part is immediately available for use.
However...
The second time I deploy the project, I get an error in the Error List stating:
Error occurred in deployment step
'Recycle IIS Application Pool':
Invalid namespace
Now, if I go to SharePoint and manually delete the web part, deactivate the feature, and retract the solution, I can deploy from Visual Studio again; the error seems to only occur if the project has been deployed at least once.
I think I'm missing something obvious here. Any recommendations?
I found the answer!
But not on the Web, so I'll post it here as I did in a related posting on SharePoint.SE.
Apparently, VS 2010 uses WMI to control IIS during a redeploy. Without the features enabled, I got the error described above.
The solution was to: open the Turn Windows on or off menu in the Control Panel (under Programs), and enable WMI compatibility. The path to the feature is:
Internet Information Services -> Web
Management Tools -> IIS 6 Management
Compatibility -> IIS 6 WMI
Compatibility
Edit: For reference sake, this article has screenshots of which features should be activated on Windows 7 to support SharePoint.

Resources