mvc debugging with internet explorer - c#

I had to reload my computer and I was able to choose what browser I was able to test my MVC application in Visual Studio 2013 but it seems that I am missing something.
This is the option I had before:
And now I do not have that option:
I have to change my default browser back and forth for this to work and that is a pain.
Anyone know what I am missing?
IN RESPONSE TO bto.rdz
I'm not given any browser options when I click the arrow:

I went and checked my Visual Studio 2013 and was surprised that mine was doing the same thing. I only had the start option. I investigated the standard menu and after a little guess work I figured out what happened. Right click your web project in your solution. then select it as the start up application. As soon as I did that I got my browser choices back.

Related

Visual Studio 2017 leaves browser open

In VS2015 and earlier, when you started debugging a web application or site, it opened IE (or edge) or even chrome to view and test your project. When you closed the browser, the debugger would stop and when you stopped debugging the browser would close. In VS2017, this behavior does not happen. I find myself leaving tons of browser windows open all over the place. I would much prefer if it would simply behave as it did in VS2015 and clean up after itself.
I am sure there is a reason for this but I cannot fathom it. Is there a way to get this behavior in VS2017?
It is not a bug/issue this is a feature you can disable by inside Debug -> Options you can disable it now.

How to start ASP.NET applications in firefox with multiple startup projects

I am using visual studio. I can debug one startup project using any browser I choose, because the start button at the top of VS is a dropdown that lets me choose a browser to debug with.
However, when I set multiple startup projects (in this case my client and my API), the dropdown changes, and I no longer have the option to choose a browser. My only option is "Start". Despite the fact that firefox is my default browser, this options starts all the projects in IE.
I need to debug these projects in firefox, and I need them all running at the same time or they won't work. How can I run multiple startup projects in VS and have them all start in firefox?
A quick google and SO search yielded no relevant results. Any help is appreciated.
Next to the start button there should be a drop down with a "Browse With" option.
From there you can select a default browser. If Firefox (for some reason) does not show in the list, you will have to add it.
This is using VS 2015 Community.

How do I modify what the green start button in visual studio does?

I have a C# project which I am editing in visual studio. When I click the green start button, it builds the project, starts IIS and then opens a browser window.
If I wanted to customise this behaviour, for example to also launch an nginx reverse proxy which sits infront of IIS, how would I do this?
I would also be interested in which pieces of technology are involved in the process between clicking the start button and my browser window opening.
A lot of things happen when you click the "green button". The main are:
If not running - Visual Studio (by default) starts IIS Express - a lite version of the IIS web server
Publishes your project to it
Attaches a debugger
Opens a browser with your project URL
I assume you're only interested in customizing the 4th step. Click on the little downwards arrow next to your "green button" to open the context menu, click Browse With....
.
You can there select from a list of web clients which Visual Studio detected. Click Add..., you'll be presented with a window to add your own client. There you can point Visual Studio to aything - nginx, a custom launcher that you can easily make with C# (Which could, as in your example, start nginx, or perform any kind of action), a PowerShell script, etc.
Note: The last argument passed to the application will be your project URL, any other arguments you add will be prepended before it. If you leave your arguments empty, it will still pass your project URL as the only argument.
A cleaner solution would be to write a Visual Studio plugin, although I don't know much about it - if you decide to go down this route you can begin your research here.
Not sure if this is relevant to you, but you can also select which IIS server Visual Studio should publish your project to. Go to your project Properties > Web, under Servers you can select your target IIS server and project URL.

Visual studio crashes when opening a Xaml page in admin but not normally

Not sure about this one.
I have a project that opens fine in visual studio.
Because the solution hosts a WCF service it must berun as administrator.
If I run visual studio as an administrator and a particular xaml window is open as a tab, visual studio crashes a few seconds after opening and restarts.
Has anyone ever experienced anything like this or know why its happening?
Im getting round the problem by having an admin version with the screen closed and editing the screen in a non admin version.
Please let me know if I can provide anymore information.
Kind Regards
Ash
I havent faced this issue before. But I would suggest filing a bug in http://connect.microsoft.com if you encounter this consistently. While filing the bug please include an example xaml file or solution, if the issue happens only with that particular file or solution.

How to disable script debugging in Visual Studio 2010 when running Asp.Net website project?

I'm creating a website in Visual Studio 2010. I would like to use Visual Studio for C# debugging, without using it as JavaScript debugger. Is there a way to disable script debugging for Asp.Net website projects? I run my projects by hitting F5 in my Visual Studio.
(I've noticed that when I attach the debugger manually, I can specify the type of stuff I would like to debug.)
Note: I would like to debug JavaScript, but not with Visual Studio 2010. The Developer Toolbar will suffice.
See this article on Connect, and the other article it links to.
To summarise, it's a workaround. Apparently VS can't attach the debugger to both Silverlight and script so if you turn on Silverlight debugging, it has to disable script debugging! To access these settings, go to Start Options which is within the web site Property Pages.
Just go to Debug->Options & Settings and select Just-In-Time and Uncheck Script from Types of Code to enable debugging.
This will disable script debugging.
I had same problem on VS2015. There you can choose on which browser you run/debug project. I think older VS opens default browser, so you should change that.
Anyway, I set project to open in chrome and then I manually opened IE and copy-paste the URL from chrome. VS doesn't debug javascript in that case.
On website project left click on project in solution explorer and go to the project properties->go to the Web tab->scroll to the bottom of this tab and on Debuggers area select ASP.NET and Silverlight checkbox. It will disable script debugging.
If u r using IE 8.0 then go to tools-Internet options-advance tab- and uncheck Disable script debugging. Its works fine here.

Categories