VS2013 won't open wix file (.wxs) - hang on "Opening the file" - visual-studio-2013

Installed wix3.8 and tried to open .wxs file (Wix project) in vs2013 (update 3).
Pop up with "Opening the file" appears and hangs.
Tried also with wix37.
Tried to restart VS2013.
Did anyone encounter that

Related

Visual studio 2017 process with an id of is not running error

when I open a project in VS and Press F5 I get the error of "Process with an id of "xxxx" is not running" but if I keep Visual studio open and wait for about 30 minutes and then press F5 it works fine!
Does anyone knows why?
1.Run Visual Studio as an administrator
2.Open your project file(In Solution Explorer, right-click project=>unload project=>edit x.xxproj)
Delete script below:
<DevelopmentServerPort>63366</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost:63366/</IISUrl>
Save the changes and reload the project. F5 to check if it helps.
Please check this similar issue.
Do the following steps :-
Close all the instances of VS in your PC.
Open folder which contains solution file for current project and delete the hidden .vs folder.
Again open the Visual Studio.
Press F5 and IIS Express should load as normal, allowing you to debug.
It works for me. Thanks!
we need a lot more information.
Are you trying to build a program with an IIS Instance? Did you delete any DLLs? Does it work on other machines?
Things to try:
Try a full clean and rebuild. That is, clean the solution, git new, rebuild all. Fix any errors and warnings, then launch with F5.
Run Visual Studio as an admin. Start > Visual Studio > right click > Run as Administrator.
In your csproj file, delete the following lines:
<DevelopmentServerPort>62140</DevelopmentServerPort>
<DevelopmentServerVPath></DevelopmentServerVPath>
<IISUrl>http://localhost:62116/</IISUrl>
Save, then reload.
Try following the solutions from this Stack Overflow:
Process with an ID #### is not running in visual studio professional 2013 update 3
Delete the IIS folder with:
rmdir /s /q "%userprofile%\Documents\IISExpress
Delete the .vs\Config folder in your Visual Studio instance.
Relaunch Visual Studio as Administrator, so they can be rebuilt.
You should now be up and running.
I tried all the solutions from here and from the Internet.
Eventually I uninstalled IIS Express and reinstalled it, and it worked. (tried on VS 2015)
I've done th esame as Sunny_sid but I just renamed .vs with old_vs, just in case.
Restart VS right after and project runs !
I was getting the same error today in my Visual Studio 2019. The easy fix is to kill the process that is running in the port you are trying to use.
To fix this, here are the steps I have done.
Verify that the port your application is running, right-click on the project, open the property pane.
Open the PowerShell and type the preceding command
Get-Process -Id (Get-NetTCPConnection -LocalPort 1068).OwningProcess
Please remember to change the port number. From the result, you can see that you have an ongoing process with Id 21276. You can also get this information from your IISEXPRESS too, from the pop-up message you get when the error occurs.
Go to Task Manager and then click on the Details` tab, find the process
Right-click on the process and then click End Task
You can also try doing this in PowerShell by running taskkill /F /PID pid_number or taskkill /IM "process name" /F
In my case, the error was caused by the fact that the project was targeting .NET5 but my other workstation only has .NET6. I changed the version number in the csproj file. I assume that installing .NET5 in this environment would have worked as well.
Would think the error message when I attempt to run the project would have been clearer. It was simple in the end.
I resolved the issue by turning OneDrive back on, seriously.
I must have free up some space on my PC and left OneDrive off. When VS ran it needed some files to be available to start up IIS.
I also cleaned .vs and bin/obj and we are back running 🤔

microsoft.service.hub error after installing Visual Studio Community edition

After re-installing Visual Studio Community edition I've been getting this error.
I get the error right after the splashscreen shows
Could not load file or assembly 'Microsoft.ServiceHub.Client'
Please open File Explorer and search this file name to verify this file is existing on your computer or not.
Meanwhile, you can have a try with the following to troubleshoot this issue:
Clear all folders and files under the folder: %LocalAppData%\Microsoft\VisualStudio\15.0_xxx\ and restart the VS 2017 to check it again.
Open cmd and navigate to the VS 2017 installation folder like C:\Program Files(x86)\Microsoft Visual Studio\2017\xxx\Common7\IDE and run the command: devenv /safemode to run it as safe mode, then check if the installed extensions caused this issue.
Re-run the VS 2017 installer as administrator and choose Repair to repair it

Opening visual studio solution from a linux drive

I just upgraded from Win7 to Win10 and I noticed the following change, that I don't explain for now.
I used to checkout my source code on in a mounted linux drive (\myremote\myaccount\ as X:)
before I was able to open visual studio 2008 solution (.sln file) and build but since the upgrade to Win10, devenv fails when I double click on a sln, saying that:
The following files were specified on the command line:
X:\blahblah\myproject\myproject.sln
These files could not be found and will not be loaded
but I can open and save that sln file using a text editor.
Note that my devenv run as Administrator.
Any idea ?

Visual studio does not install .vsix files

I've both VS 2012 and VS 2013 installed on my computer. The problem is that when I download an VSIX-File and open it with the Visual Studio version selector the file gets opened by VS but instead of installing it. VS opens the file as if it was an unknown binary format.
The attached image shows how VSIX-files are opened (happens with every file ... this is just an example):
I faced the same issue. Just use the VSIXInstaller to install the extension.
You can open "Developer Command Prompt for VS2012" tool in Start -> Microsoft Visual Studio 2012 -> Visual Studio Tools. On the console, run the below command:
VSIXInstaller <path to vsix file>
Open "Developer Command Prompt for VS2015" as administrator.
Type VSIXInstaller.exe vsixFilePath
Note that this way wouldn't work with me and gives me "Path to vsix file 'G:\Roslyn' is invaild or you don't have required access permissions". To solve this you need to put the path in a double quote like this:
VSIXInstaller.exe "G:\Roslyn SDK.vsix"
I got into a weird situation where in a fresh install of W10 and VS2015 Community, the Player Framework vsix installation won't start, either by dbl click or from command prompt using VSIxInstaller.exe, and would show no message at all. The solution was to open an elevated command prompt (run Developer Command Prompt for VS2015 as administrator) and then type VSIXInstaller.exe worked.
I am not clear whether you want to install or just view the contents of VSIX. If you want to install the extension, you just need to double click it and it will install (Do not try to open it with VS Version selector). If you want to see what is inside VSIX, it is basically an archive. So either try to use program like 7-zip to open it else, rename .vsix to .zip and then unzip it.
Further, there is also a chance that you have wrongly associated vsix files to be opened with Visual Studio. In such a case it will open in Visual Studio any case.
Finally, if you have wrongly associated the vsix to open with Visual Studio, try installing the extension using VSIXInstaller.exe found in C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\VSIXInstaller.exe
To add to the other answers, if the VSIX files either doesn't have an associated program to open with or opens with the wrong application, selecting the VSIXInstaller.exe as the associated commands re-enables the ability to double-click and directly install it (without the need to do it via commandline).
I faced a similar issue when I first installed VS 2017. This is what worked for me.
Resolution:
Restart VS 2017.(I hadn't restarted it before installation)
Install it from Tools->Extension & Updates.Search for "Perforce" and install.
I double clicked on this and it installed just fine.
Couldn't do it on VS2013 through the extensions dialog.
for me the problem was the extension InstallerProjects was on network server so I had to copy it to my machine (local) and it worked

Visual Studio Project Template causes Exception HRESULT: 0x80070002

I followed this link to the letter for creating a new project template in Visual Studio for MVC3. Unfortunately, while the template shows up in the Dialog, when I click on it to create a new project, I get the "Exception from HRESULT: 0x80070002". I have no idea how to fix this.
One person in the thread mentioned that the /installvstemplates command has to be run as an Administrator. I've done that. Still doesn't work. This exception is beyond useless.
From a user who contacted Microsoft Support for the same issue (file not found on template) If not on 64-bit machine remove (x86) from folder names. Backup the entire ProjectTemplates folder before you start.
Open C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\VWDExpress\ProjectTemplates\CSharp\Web\1033 and copy any of the folders that have 'MVC' in the name from the second folder to the first (move the 3.1's to where the 3.0's were).
Once you've done that go up a few levels to the ProjectTemplates folder and do the same for the other code bases.
Open Visual Studio Developer Command Prompt as an administrator and run: devenv /setup
This should set up your ProjectTemplatesCache folder correctly and fix the problem.

Resources