Visual Studio Error When Creating New ASP.NET Web Application - visual-studio-2013

I have successfully created Web API projects a few days ago using Visual Studio 2013 update 4. Today when I try to create a project using the same default project that comes with VS, I get this error:
Unspecified error (Expection from HRESULT: 0x80004005 (E_FAIL))

I figured it out. In my case, my company maps my documents folder where the templates are stored to a network share and I was not connected to the VPN. Oh silly day.

Related

Website working on visual studio but not working on IIS

I have an issue which is now headache for me wasted 4 days in the error.
my Project is working fine on visual studio it contains webservices but when i publish the files in release mode and hosted it in iis then it gives error "500 and error is object reference set to instance".
Guys Please help me out from this

VS2017 RC - The following error occurred when trying to configure IIS Express

Installed VS2017 RC - Started New Project ASP.NET Core Web Aplication(.Net CORE), selected Individual User Accounts as Authentication type. Try to run code generated with no changes and got the following error: Error occurred when trying to configure IIS Express for project... Error: ../.vs/config/applicationhost.config Error: cannot write configuration file
Looked at that file and it appears that it should have been writable.
FYI using VS2015 Update 3 everything builds and runs as expected including IIS Express.
I have encountered the same issue but deleting .vs folder worked for me.
I was having this issue, but only after the recent updated to Visual Studio 2017 RC (12/12/16).
I searched for a good hour and really didn't find anything, so I simply downloaded the latest IIS Express (v10) and it seems to have corrected the issues for 2017, but also for 2015 that started after the update as well.
IIS Express Download
EFS (Encryption File System) is known to cause file access problems. Ensure that EFS is turned off in your project directory.
More information:
https://blog.danielsmon.com/2017/04/03/cant-write-to-applicationhost-config/

Unable to Launch IIS Express Web Server - VS 2015 Community

I am developing a web project and I am not being able to test it using the IIS Express from the Visual Studio 2015.
I have googled this error and I found many references to it on the internet, but I believe that my case is different, because there is no other error message displayed besides "Unable to Launch IIS Express Web Server".
I've looked at the Windows Event Viewer and I got these errors below:
The worker process failed to initialize correctly and therefore could not be started. The data is the error.
The Module DLL C:\Program Files (x86)\IIS Express\aspnetcore.dll failed to load. The data is the error.
I also tried to launch the IIS Express directly using: c:\Program Files (x86)\IIS Express>iisexpress.exe /trace:error and I was successfull, so I think that the problem must be somewhere within Visual Studio and that my port (8080) is free.
Does anyone knows what else I can do?
If you are working with .NET core/ASP.NET core application then
please make sure you have installed these-
.NET Core SDK
VS 2015 Tooling Preview 2
If it is appeared to be solution-specific then-
Look for applicationhost.config file at <solution-name>\.vs\config\applicationhost.config location
Try removing this file and run solution again.
See if this helps.
I had the same error few days ago. I tried many things but i think Repairing DotNetCore.1.0.0-VS2015Tools.Preview2.exe fixed the issue.
Also, check whether you can run the web app in Kestrel web server. If you can run then worth checking web.config file for the presence of aspnetCoreModule tag properly.
This link might be helpful -- https://github.com/aspnet/Home/issues/1583

TFS 2010 Error when trying to open Team Projects "TF31001: Cannot connect to Team Foundation Server at..."

My instance of TFS 2010 has developed this problem.
When I try and connect to a Team Project in VS 2010 I get this error:
TF31001: Cannot connect to Team Foundation Server at 'PROJECT COLLECTION'. The server returned the following error: Value cannot be null. Parameter name: serviceDefinition
I have ran the Team Foundation Server 2010 Best Practices Analyzer and it found no problems. I can load the Admin Console fine, everything seems to be in working order, there are no other errors that I have seen and there is nothing in the Event Log that would suggest there has been an issue and there have been no drastic changes to service accounts or SQL Server.
Has anyone seen this error before? If so what did you do to fix it?
Delete the cache from below location, then try to connect again.
c:\users\[username]\Appdata\Local\Microsoft\Team Foundation\3.0\Cache

vs2013 azure cloud service project fails to add a role

I'm having troubles with VS 2013 and Azure SDK 2.2 respectively.
I've created an empty Cloud Service.
When I add a new Web Role (or Worker Role — it ends the same way) the new project starts being created, but the process fails with dialog message
Windows Azure Tools For Visual Studio
The following Nuget packages could not be installed in project 'projectname':
WindowsAzure.Storage (version '2.1.0.0'): One or more errors occured.
After pressing OK i get another dialog containing a NullReferenceException message
Object reference not set to an instance of an object
and after that end up with inconsistent content of the ServiceConfiguration and ServiceDefinition files: some of them contain mentions of the half-created project, others do not contain.
So, it is impossible for me now to create any Web or Worker roles. Does anyone have any ideas how to cope with it?
It appears to be the broken installation.
After uninstalling Azure SDK and VS 2013, and installing both again, the issue vanished.
I just had the same problem (with VS 2015). I was able to get rid of it by installing the Azure SDK from here. I´m pretty sure I installed the SDK before from Visual Studio. But after installing the one from the link it worked.
Hope this helps if someone else has the same problem.

Resources