I have a solution working at VS 2008. It contains lots of projects. I installed VS 2010 and it converted all projects to work in .NET Framework 4. After I've found that there is no profit to use VS 2010, I decided to move back to 2008. After that debugging is totally broken.
When I select project and select "Debug -> Start New Instance" It says me:
Error while trying to run project: Unable to start debugging.
The remote computer does not have a CLR version which is compatible with the remote debugging components. To install a compatible CLR version, see instructions in the 'Remote Component Setup' page on Visual Studio CD.
I tried to remove both VSs and install 2008, removed .NET Frameworks and installed 3.5.
I don't understand why it wants remote debugger while I'm trying just to run winforms application on local machine. The same happens for Console applications.
Appreciate any help.
Is your issue with Visual Studio or with the 4.0 Framework?
If it is with just the framework. I would change your projects Target Framework back to your former framework and continue to use VS2010.
If it is with VS2010, I would do the same thing as above before trying to run it in VS2008 again. You will probably have to edit the project files to the proper VS Version.
See this CodeProject Article for an example what needs to be done.
or better yet if you have source control just restore your Solution from there.
Related
I want to use latest Mono (5.4.1.6) to write a console app in Visual Studio 2015/2017 for a Raspberry Pi 3 (Linux). Searching the web I've found that it is possible to use Visual Studio, but there are limitations.
I can use MonoRemoteDebugger, but I also need to target Mono framework, not .NET framework, because I do not know if they are fully compatible. Adding the Mono target profile works only up to profile 4.0 and I want to use the latest Mono (.NET 4.5).
MDebug looks fine, but it is not free.
Mono Helper also looks fine, but how can I remotely debug the app?
I can use Xamarin Studio 6.3 configured for remote debugging, but I have not tested it and I do not know how well it works. Also, I prefer Visual Studio and it would be great if I avoided installing a different IDE if VS could do the job.
So, is it possible to remotely debug Mono app from Visual Studio? Should I try Visual Studio Code?
If I finished my app, then how can I generate the release build?
I've noticed that the plugins have the option to debug the app, but not for generating the release build.
This is new to me and information found on the web did not help me understand everything I need to do my work. Any help would be appreciated. Thank you!
It seems it is not possible with free software. I can use Visual Studio with MonoRemoteDebugger and if I have doubts about code compatibility, I can build the project in Xamarin which permits targeting Mono.
I've created simple one line Console application for the 3.5 framework and was attempting to try out the "Visual Studio Installer" setup wizard project to install on a server. Both Console and "Setup Wizard"are for the .net 3.5 framework however when I try the setup.exe on the target server I get a message regarding 4.5 framework pre-requisites.
Visual Studio 2013
C# Console application
.net 3.5
Windows Server 2003 R2
Any ideas where this reference to 4.5 is likely to be coming from?
Thanks
As in the MSDN Forum answer:
https://social.msdn.microsoft.com/Forums/windows/en-US/54e20ea4-ddfa-4315-9a04-57daa74b6952/setup-wizard-tries-to-install-to-wrong-framework-version?forum=winformssetup
"If this the installer project extension that generated an MSI setup and a setup.exe, then in the setup project go to View => Editor=>Launch conditions, right-click the NET launch condition, Properties window, and choose the relevant one from the drop down in Version. "
when i hit alt+shift+F12 in InfoPath (which should open VSTA), i get the following error:
Obviously no helpful information (thanks Microsoft.
I have installed MSXML and .NET 2.0 as according to: source
If your computer does have the Microsoft .NET Framework 2.0 and Microsoft Core XML Services 6.0 installed before installing Microsoft Office InfoPath 2007, InfoPath uses the Microsoft Visual Studio Tools for Applications (VSTA)
i double-checked the installations aswell: Source
.NET 2.0 in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP
and when i run msxml6.msi the wizard instantly shows:
i tried several reinstalls of all those features:
(sorry for the screenshot beeing in german but i rly didn't get the installation wizard to change it's language, i tried everything.)
interestingly i can start vsta.exe standalone. But InfoPath cannot create a C# Project for VSTA.
now has anyone a good idea how i can get either better error information (i tried event viewer allready, didn't find anything useful) or solve the problem?
thanks in advance! phil
Turns out that it depends on your Version of Visual Studio installed.
i uninstalled MS Visual Studio Express for Web and installed VS Professional. It's perfectly working now. At least Microsoft could specify this somewhere -.-
I've installed Visual Studio 2013 Premium (MSDN license) on my machine. Yet, the ASP.NET Web Application template is not there (except for Version2012, which offers me MVC 4, see screenshot below):
I have uninstalled and reinstalled VS2013 three times now. I've deleted the ItemTemplatesCache and ProjectTemplatesCache folders along with running the devenv /InstallVSTemplates and devenv /Setup to no avail. I've also checked to make sure web developer tools are installed. Under the \Common7\IDE\ProjectTemplatesCache\CSharp\Web folder, I only see MVC 4 template files. Am I missing something? An extension or additional program?
Below I added a screenshot of the frameworks I have installed. Any direction or advice would be appreciated. Thank you!
Jodie.
I think that "Re-install Visual Studio from scratch" is not a solution.
I have faced with the described problem and found much faster way to fix it:
First of all, try to repair Visual Studio installation (in "Control Panel\Programs\Programs and Features" find your Visual Studio, right-click and select "Repair"). Reboot after (!).
Check if template appeared in the Visual Studio. If not, then: in the "Control Panel\Programs\Programs and Features" make sure that you have "Microsoft Web Platform Installer 4.x" installed (I have 4.6 version). If not - install it from here: http://www.microsoft.com/web/downloads/platform.aspx
Run "Web Platform Installer" (it should be here: "%ProgramFiles%\Microsoft\Web Platform Installer\WebPlatformInstaller.exe")
On the "Products" tab find the line "Microsoft ASP.NET and Web Tools 2013.1 for Visual Studio 2013" (make sure that it is not for 2012!). If line has "Add" button on the right side enabled, then click it and install the tools. Reboot PC (!) and you should have your ASP.NET project template back.
If line says "Installed", then you should repair it via "Control Panel\Programs\Programs and Features", just find "Microsoft ASP.NET and Web Tools 2013.1 -Visual Studio 2013", right-click and select "Repair"). Reboot PC (!) and you should have your ASP.NET project template back!
Cheers!
After many hours of troubleshooting, these are the steps I took to fix the issue (on Windows 7 Ultimate). I assumed it was an issue with a corrupt installation and possible problems with registry keys, so I removed any and all Microsoft development tools using the following steps:
FULL VIRUS SCAN (just to make sure this was not related to a virus or malware). I used Microsoft Security Essentials
Downloaded Microsoft FixIt to help clean up registry keys as I deleted programs. After I deleted any program or program updates, I ran this tool to verify a clean uninstall had been done
Visual Studio 2010 - Ran the Visual Studio 2010 Uninstall Utility and removed the program. Went into Control Panel > Programs > Uninstall a program > View Installed Updates and searched for 'Visual Studio 2010', then removed any updates associated with VS2010 (and ran the FixIt program after every uninstall to verify the registry keys had been wiped)
Followed this MSDN post to remove Visual Studio 2012 (paying particular attention to the 'Optional Shared Packages' and removed any and all programs under this list, again running Microsoft FixIt to verify the registry keys were wiped)
Followed this blog post from Shawn Harrison to remove all SQL server; also referenced these two MSDN posts Uninstall an Existing Instance of SQL Server (Setup) and SQL Server Files Left After Uninstall
Uninstalled Visual Studio 2013, along with all references to 'Visual Studio 2013' in programs and installed updates; used FixIt to clean up registry keys after every install
Last but not least, I removed all MVC Visual Studio-related tools, references extensions including Web Tools and Web Platform Installer
This solved my problem with missing templates :)
(I'm soooooooo grateful this was all done on an SSD, however, I think it would have taken 5x longer with an old-spinning HD)
Cheers, everyone!
Not the solution in your case, but I had a similar issue where I could not find the MVC templates. Eventually I realized that I still had .NET Framework 3.5 selected, which of course does not provide MVC... switching to .NET Framework 4.5 let me find the MVC templates again.
You already had 4.5 selected in the screenshot, but I'm just posting this here for others who might make the same mistake as I did.
Don't forget to check that "Microsoft Web Developer Tool" was actually enabled during installation see this related stackoverflow question: How do I open a csproj with ProjectTypeGuids 349c5851-65df-11da-9384-00065b846f21?
"Microsoft Web Developer Tool" that was the problem for me
Have you tried updating the gallery
Tools>Extension and updates> Templates
To get up and running you could click Version 2012 under Web and get to the stock web applications templates which will provide you upto MVC 4
For MVC 5 you can either download Visual Studio 2013 Express Web, it roughly has the same ASP.NET features at Premium on MSDN License.
Update for Studio 2013:
Make sure you install express for Windows and not express for Windows Desktop. The Desktop version does not have the Web templates.
I had a similar issue with VS 2013 Web Express Update 3. After reinstalling stuff all week its fixed. I had to uninstall VS, delete the "Microsoft Visual Studio 12.0" directory, and reinstall VS. There are other workarounds that are more precise.
hey there. So, we have a VS2010 project and the VisualSVN server on one machine. We added a new machine with the client visual svn and the projected loaded in. except for the WCF service. i'm getting a...
" error : the project file c:/..../wcfProject.csproj cannot be opened.
The project type is not supported by this installation."
i've checked the directory, the files and file structure are there and the same as the main development machine. any tips/solutions?
thanks
David K.
I had a similar problem with some WCF solution which I downloaded from a blog.
The solutions of running deveng with the switches did not resolve my issues. After some more searching it turned out that the following clue in the answer of Ralph Willgoss lead to the solution of my problem:
I resolved it by installing the Visual Web Developer.
I also had to (manually) install the Web Platform Installer to (automatically) download the last requirements for the project to properly load.
I had a similar problem when trying to create a new project of the following types:
WCF Service Application
WCF Work Flow Service Application
Syndication Service Library
I was using Windows 7 Ultimate 64bit, with no other versions of Visual Studio installed.
I also had tried many other options, such as:
devenv /resetsettings
devenv /resetskippkgs
ensuring I had C++ option of VS2010 installed
VS2010 Service Pack 1
I resolved it by installing the Visual Web Developer.
There are a few things this could be so I can't give you one specific answer. However, here are a few things to try on your machine that is throwing the error:
First, verify which version of Visual Studio is set as the default for opening csproj files. It could be that you installed SQL or something else that uses an older version of Visual Studio. Sometimes that can give an error. Even if the default is the Visual Studio version selector I've seen it throw an error. Open up the correct version of Visual Studio (through the Programs menu) and then inside Visual Studio try to open the package. If that works, you know the issue is with which version is opening the file.
If that doesn't work, you could try resetting the Visual Studio settings. From the run menu type devenv /setup This should reset the Visual Studio environment and hopefully it will fix the issue. If this does not work, try running devenv /ResetSkipPkgs from the Run menu. This will try to load any packages that Visual Studio previously skipped.
If these steps don't work, let us know. Give us any further error messages that come up after attempting these steps.