Visual Studio 2010 Disable Debugging of External Websites - asp.net

I am improving an ASP.Net website using VS2010. As part of the payment flow I need to redirect to an external website (like Paypal) to process the payment before returning to my website, however this site has an error in their JavaScript that Visual Studio is trying to debug. I have no intention of debugging this third party's website. Is there a way to tell Visual Studio to only debug websites that are part of the project I am working on or just for localhost?

To answer my own question. I ended up using Chrome/Firefox to debug with instead. Visual studio doesn't try debug javascript unless you are using IE.
I could then use the javascript debugger built into Chrome to debug any javascript problems I was having on the site I was actually trying to fix.

Related

Why does Visual studio slow Targo bank website?

Using Visual Studio and Chrome I have recently started debugging a website at http://localhost:50481 in a project created with the ASP.NET empty website project template. About the same time I noticed that my desktop banking website was running very slowly. In fact the whole https://www.targobank.de/de/index.html web site runs very slowly using Chrome. All other websites are fine. In MS-Edge the targobank site runs fine (sometimes). I believe that the Visual Studio setup is somehow slowing Chrome at my German bank!
Does anybody know why this might be happening? Perhaps other users with similar VS configurations could try the website.
Here is some more detail on my VS setup. In order to use the ASP.NET empty website project template I had to install "Additional project templates (previous ver..)" as shown below and as recommended on the excellent stackoverflow.
Use the ASP.NET empty website project template thus
and then debug my Javascript in Chrome using a website at http://localhost:50481.

Which version of Visual studio supports old classic ASP Project

Which version of Visual Studio can be used to open a project which is built as ASP Web project
I have Community edition 2019 Does this support ASP projects?
I know these days no one is using ASP for building web apps The purpose is to maintain an existing ASP solution for a couple of more months 9If any bug fix requests from the client comes ) and start to build a new project using the latest version of Microsoft technologies
Visual Studio
Most versions of Visual Studio support editing Classic ASP code, couple of things to keep in mind though.
Frontpage Server Extensions is no longer supported, the best approach is to use a mapped drive or better yet store the code in source control (Git, SVN etc.) and work with the code locally (can bind to a local instance of IIS).
The IDE can be quite cumbersome for working with Classic ASP as it's designed for more modern technologies.
It also has sophisticated debugging through the IDE via the "Attach to process" which will work with Classic ASP running in IIS as long as the web application has been configured correctly for debugging. See How do you debug classic ASP?.
Visual Studio Code
Another option is Visual Studio Code which is a free IDE built on the principle of open source projects for cross-platform. It's becoming a popular free IDE for many developers rivalling the likes of Atom, Sublime etc.
It's lightweight and extensible through extensions, there are already some useful extensions for Classic ASP including this one;
Name: Classic ASP Syntaxes and Snippets
Description: Classic ASP Language Support and Snippets from tmBundle
Publisher: Jintae Joo
It also has built-in support for popular source control solutions like Git and more powerful available through the extension marketplace that is built into the IDE. If you do use Git would recommend installing the GitLens extension.
Every version of visual studio since I started with 2010 (was there something before it?) handles Classic ASP just fine. I'm on VS2019 right now.
I even have a project which is a combo Classic ASP, Webform, and MVC all in one project, with some session sharing, and I routinely code and debug in all. The only limitation is that when you debug, you have to choose whether you're debugging Managed code or "script".
With each I "attach to process" and choose which code I want to debug. Classic ASP debugging is fantastic, and I can't believe more people don't do it. I see basic questions on here which would easily be fixed with standard debugging techniques (settings breakpoints, evaluating variables).
The ONLY thing which isn't supported is code formatting inside <% %> blocks. If I ever get some time maybe I'll make an addon for it.

Debugging vscode front-end and back-end in studio

Is it possible to have the same application and debug client-side parts in the visual studio code and server-side parts in the visual studio? ASP.NET Core in particular
I actually figured it out by myself, so if anyone's wondering this is what you have to do:
VScode launch url should be the same as is on the visual studio, you should open client side project or wherever your files are. Vs should run on IIS server, that way you wont need to debug in visual studio in case you don't like debugging in chrome.

F12 Go To Definition not working for CSS in CSHTML files - VS2017

I am working on my first Asp.net Core 2.0 Mvc web site.
Normally I use web forms, but I'm trying something new.
In my .cshtml files I cannot F12 or right click and "go to definition" on CSS classes. I thought something may be wrong with my install but I was able to open up a web forms application and it works just fine from an ASPX page.
I have seen topics from 2013 about this issue, but no solutions.
I have installed web essentials, but that didn't work either.
This is something I use regularly and it is hard to do it manually especially when you are looking at a minified CSS file.
I'm using Visual Studio 2017 Pro.
The ReSharper extension for Visual Studio adds this feature.
https://www.jetbrains.com/help/resharper/ReSharper_by_Language__CSS__Navigation.html#navigation-within-css-file

Cannot load ClassDiagram.cd on Visual Studio. "URI formats are not supported"

When I try to open a class diagram for my asp.net webforms project I get the following error. The Class Diagram (.cd) files get generated but I can't open them.
I do have some classes that use the URI class but i don't really think that could be the issue. Right? Why would a class diagram care about one of my classes using a URI datatype?
I'm using vb.net Visual Studio 2012 and the project is targeting .net 4.0. I'm aware there is another question in stack overflow asked about the same issue, however there were no answers posted to it and it's close to a year old.
Help will be greatly appreciated, thank you.
I had the same problem and was able to fix it in Visual Studio 2012 Professional just now for a website I am working on with my team.
This is not about one of your classes using the URI data type.
My setting under "WEBSITE" in Visual Studio was previously set to "Use IIS Express". When it is set this way, you can select the alternative option, again under "WEBSITE" which is "Use Visual Studio Development Server". I'm not certain, but I think this is what the other posters describe above when they say "open web site in file system mode". When I am not using IIS Express, the class diagram generates, is not blank, and opens fine for viewing in the IDE.
Please open web site in file system mode (and not in IIS express ) and it will work.
when you load the website, visual studio will tell you that it is already using IIS Express to serve websites do you want to continue using it or not, select no so that you can use visual studio and bot the IIS. my things worked after that

Resources