Give another user permission to remote debugging - visual-studio-2012

Hi I have a IIS server (running on Windows Server 2012 R2), I installed VS2012 remote debugger on it and configure the VS remote debugger run as a service. By default I have debug permission to this IIS server.
Now I want to give another colleague remote debugging permission to my server, but after I spent few hours, I still don't know how to do.
Because msvsmon.exe is run as service, it doesn't have UI, how to add another domain joined user?
I tried to configure msvsmon.exe run as application, and I added my colleague through its UI, however, after I close msvsmon and restart it, new added user is gone from permission list.
Can someone help me on this?

Run cmd (Command line) and add the user to the remote desktop users
net localgroup "Remote Desktop Users" domainname\username /add
If that fails, run command line as administrator and run the command again

Related

Visual Studio 20149 Remote debugger windows does not show Application pool and user names

I had a Windows 2008 Server which was being used as Application server that has recently been upgraded to Windows 2012 -> Windows Server 2016 -> Windows Server 2019.
All of the applications under IIS work, but one. I am trying to figure out what is wrong. I have installed Visual Studio 2019 Remote Debugging tool on the server and trying to attach to the erroneous project under IIS.
I have the Remote Debugger running
but when I try to attach to remote process the Application pool and user names do not show up in the "Attach to process" window.
Since I can not see the details I can not connect to my application and debug. I am sure that "Show processes from all users" is checked.
I know that if the application does not run on the server it does not show up in this list, but I have called other applications under the site which are running but they don't appear either.
Try run the remote debugger under the different user account:
You can stop the remote debugger and restart it with the account you are using on the local computer.
You can start the remote debugger from the command line with the /allow parameter: msvsmon /allow username#computer
You can add the user to the remote debugger's permissions (in the
remote debugger window, Tools > Permissions).
If you can't use the methods in the preceding steps, you can allow
any user to do remote debugging. In the remote debugger window, go to
the Tools > Options dialog. When you select No Authentication, you
can then check Allow any user to debug. However, you should use this
option only if you have no choice, or if you are on a private
network.

Visual Studio 2017 Remote Debugging is not working

I want to use the remote debugger for VS2017.
But every time I started it on my VS machine I got the following error message:
"Could not launch debugger. Check the Debug settings.."
Do you have any hint, where can I get more information about the problem, like remote debgger not started, Proxy problem, settings... ?
Or how I can fix it ?
I setup the remote debugging connection for VS2017 on two Windows 10 machines.
On the remote debugging machine I started the tool by execution of msvmon.exe (by sharing the folder location on the machine, on which VS2017 is running).
It seems to run without any error, since a window was open with displays the machine name and the Port.
I copied then this information in the Remote Server Name field for the Visual studio debugger. I tried it with and without port number).
I also copied the debugger application to the same folder of the remote debugging machine, as it is on the VS machine.
After that I started the Remote Debugging session and the error message is shown.
Thank you very much!!
I could solve the issue. The problem was that the remote command parameter was not set. :-(

LocalDB does not starts correctly for IIS worker process

When I deployed MVC application on IIS then localDB databse is not starting correctly. Error message is as follows:
Windows API call WaitForMultipleObjects returned error code: 575. Windows system error message is: {Application Error}
The application was unable to start correctly (0x%lx). Click OK to close the application.
Reported at line: 3621.
But the localDB is working fine with visual studio application and with sqlserver management studio. I already have restarted it and recreated it by command prompt to make it work. But nothing is working. The problem came when i re installed IIS in my machine.
How can i fix this. Any help will be appreciated.
Simply delete all files in "C:\Users\MYUSERNAME\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\v11.0" folder. Give write permissions to v11.0 folder. If you can't create another instance give write permission to Instances folder.

Windows Server 2012 More Than 2 RDS not allowed w/ 5 user CAL applied

I installed Windows Server 2012 and was able to connect 2 remote desktop users as expected. When the 3rd tried to connect it said you had to kick off one of the two simultaneous users currently on.
So I purchased a Per-User 5 license Open CAL and applied it. It is listed correctly as installed in the Remote Desktop Licensing Manager. Total licenses 5, available 5, everything looks great.
However, trying to connect a 3rd user via Remote Desktop to this server still gives the same error. I have done this before in Windows Server 2008 without a problem. Any ideas? I have the Remote Desktop Service role installed.
Not sure why the downvote for the question, but here's what worked for me:
Add the Remote Desktop Session Host role.
Apparently that has to be there for it to work properly.

Getting remote debugging to work

I am trying to setup remote debugging to one of my webservers. I have installed Remote Debugger and configured it to my user name on the web server. When I attempt to attach to process in VS 2012, I am able to connect (Remote Debugger on the server shows the log), but when I go to the web site url, my breakpoints are not being hit. Has anyone else had this issue?

Resources