Creating ASP Web App fails in Visual Studio 2013 - asp.net

I'm trying to make new ASP.NET Web Application project in Visual Studio 2013 but it immediately fails with this error:
Could not load type 'Microsoft.VisualStudio.Web.WindowsAzure.Contracts.AzureResourceCreationType' from assembly 'Microsoft.VisualStudio.Web.Internal.Contracts, Version=2.3.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a'.
I used to be able to create web apps. Visual studio updated to update v4 a while back. Also I made sure all extensions are updated.
Any help would be greatly appreciated, thank you.

After a lot more searching I found the answer from this post:
Visual Studio 2013 Premium solution load errors after Update 3
I had to run the following commands and everything works again afterwards.
gacutil -i "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Web Tools\Publish\Microsoft.VisualStudio.Web.Publish.dll"
gacutil -i "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Web Tools\Publish\Microsoft.VisualStudio.Web.Internal.Contracts.dll"

I had the same issue after removing VS2015RC and installing full VS2015.
Side note: The above fix (changing path to point at "Microsoft Visual Studio 14") fixed the above error in VS2015.
Looking through the control panel and program updates, VS2013 update 4 was installed around the same time as VS2015 so I ran a repair on update 4 and it had no affect.
Repaired KB2932965 a VS2013 update, still no luck

Related

Visual Studio 2017 15.7.2 - ASP.NET Core Application is missing

I installed the Visual Studio 2017 Enterprise and updated it to the last version. I choosed the necessary web components in the Visual Studio Installer, tried to execute the devenv /InstallVSTemplates, tried to repair Visual Studio and installed .NET Core SDK (x86 and x64).
Nothing of this helped me, I still can't find the ASP.NET Core Application under .NET Core in Visual Studio. How can I solve this problem?
Solution that I found myself: Everything described above was indeed caused by a mistake in the third screen.
I did not find how to solve this problem automatically, I just installed all these .msi packages manually. The installer loads them, but for some unknown reason can not install it themselves. To install them manually, you need to go to the directory where Visual Studio is installed, there just look for these packages by name and install them. Then you need to run the installer again and if it shows another error with another package, you need to repeat the procedure with a manual installation. I had to repeat it three times with three different packages. After that, I started the installer once more and it installed the rest.

How to launch VStudio 2015 RC for ASP.NET vNext

I installed VSStudio 2015 from here: http://www.asp.net/vnext
Installation says success but I have no icon on desktop to run why?
VS2015RC installation did not put an icon on my desktop either, it is in the application menu though.
The exe should be located here.
C:\Program Files (x86)\Microsoft Visual Studio
14.0\Common7\IDE\devenv.exe
You can create a shortcut and put it on the desktop yourself.
If you cannot find the folder maybe you need to reinstall or repair the installation.
The official download site is here. The community edition should have all you need to get started with ASP.NET 5 and all the vNext stuff.

Build error : Incompatible versions of SQL Server Data Tools and database runtime components are installed on this computer

I have a Visual Studio 2012 project that reports an error from msbuild when trying to publish the database from the command line:
Microsoft.Data.Tools.Schema.SqlTasks.targets(390,5): Build error :
Incompatible versions of SQL Server Data Tools and database runtime
components are installed on this computer.
I have checked and installed all updates for VS2012 SSDT and everything is up to date.
The trick was to install SSDT updates for Visual Studio 2010 - despite the fact that my solution was running in VIsual Studio 2012. The solution was upgraded from 2010 so perhaps that is why there is the dependency.
Another clue was in the path to the build target - v10 not v11
C:\Program Files
(x86)\MSBuild\Microsoft\VisualStudio\v10.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets(390,5): [error message followed]
I had the same issue but without the version v10/v11 being the issue.
To fix this problem, I closed Visual Studio 2012 then went into Programs and Features and did a repair of the following installer:
Microsoft SQL Server Data Tools - enu (11.1.41025.0)
Microsoft SQL Server Data Tools - Database Projects - Web installer entry point
Restart Visual Studio and compile again. Worked for me.
Downloading and running the latest installer for Visual Studio 2012 fixed this issue for me.

System.Data.SQLite Visual Studio 2012 .NET 4.5 Won't Show in Data Source

I'm developing on a Winodws 7 x86 machine in Visual Studio 2012 using .NET 4.5. I installed the x86/x64 System.Data.SQLite official Nuget package for my project. But I still don't see it as an option in the Data Source\Data Provider selections in the "Choose data source" dialog. I saw this answer here and it looks like this is all I should have to do (SQLite 1.0.82.0 (latest) in Visual Studio 2012 not showing in Designer Data Source). Am I missing something?
Thanks!
This package worked for me.
Apparently
"This setup package is capable of installing the design-time
components for Visual Studio 2012."
means
"This setup package is required for installing the design-time
components for Visual Studio 2012."
I just wanted to add this as a followup because I was having issues seeing the designer in VS2012 as well and it may help others in the future.
After multiple attempts at installing the designer and not seeing it show up, I ran
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe /setup
This will force VS to rebuild its registry based on all of the installed packages. This will take a couple of minutes. Afterwards, I was able to start up VS 2012 and see the entry.
I am curious whether the installer executes this command at all or if it just triggers it but does not wait for it to finish. At which point the end user opens VS 2012 before the command has time to finish.

Problems with 'Publish Web Site' on Visual Studio 2010

Recently I've upgraded from Visual Studio 2008 to Visual Studio 2010, however I'm having various problems when uploading my compiled web site to the live area. I'm doing exactly the same as I would have done with Visual Studio 2008, however, now I receive errors such as:
{filename}.aspx is not a pre-compiled file
masterpage.master does not exist
All these errors don't make sense. Has anyone encountered these problems before, and was a solution ever found?
Try run the Clean Solution command from the Build menu on your solution.
Try diagnosing by publishing to a brand new IIS location. Perhaps there are files from your VS2008 build that aren't being overwritten by your VS2010 build.
Are all the files present in the bin directory as you'd expect?
Is there an PrecompiledAppConfig.config file in the root?
You can run the Clean command by selecting Build -> Batch Build. You will see the options Build, Rebuild, and Clean in the dialog box.
The web site does not have to be created in IIS in order to use the Batch Build dialog.
Hope this helps,
Rick
you probably have not created an application or virtual directory on your server.
use IIS Manager to create it

Resources