I have this weird issue on Visual Studio 2019 Community Edition. I am running an ASP.NET MVC 5 solution with only one project. The problem is every time I run it, sometimes one port is running fine, sometimes it is not.
Here is the screenshot of my IIS Express:
As you can see, it's only under one site and is showing multiple ports. I am not running any service, only website from ASP.NET MVC. It's erratic on my part since sometimes, one port is working, the other is not. So I need to relaunch multiple times my solution so that I can debug properly.
I already changed my port on my solution, but the first one is only reflecting on my edit, the other one, I cannot find a way how to edit the port or remove it totally.
I already figured it out. I just disabled the https port, and debugging my ASP.NET solution was smooth afterwards. To disable https, go to Solution explorer, select your project and press F4 on your keyboard, to see the settings:
If during debugging, you notice that your debugger shutsdown erratically make sure of the following as well:
Seperate your browser tab to your debugging browser tab
Since if you try to remove your debugging browser tab to other tabs, VS 2019 Community Edition debugging shutsdown unexpectedly. It happens on my Microsoft Edge browsers even on Chrome.
So seperate then and you are good to go
Related
I have an ASP.NET Application I want to debug on localhost. When I run it without debugging, it runs very fast and smoothly, with about 3 seconds per page load. However, when I try to debug the app with Visual Studio and Chrome or Firefox, every page load takes about 20-30 or even 40 seconds to load, which is extremely slow. I have tried everything I found on the internet about these issues, yet none seems to help me out:
"Load all Symbols" from Microsoft Symbol servers, then uncheck that location
Delete all breakpoints
Uncheck "Enable property evaluation"
Other options I can't recall
Which is a good debugging configuration for asp.net apps? Any extra suggestions that may help?
Thank you very much and kind regards,
David
It is possible that your visual studio is using a lot of memory. You should try to turn off the browserlink which will reduce the amount of memory being allocated. It is still fine to disable the browserling and the preview still works.
Here is a guide and explanation
http://blogs.msdn.com/b/webdev/archive/2013/06/28/browser-link-feature-in-visual-studio-preview-2013.aspx
It is also possible that you have a lot of data or calculation to be ran in your form load.
Another possibility is a slow internet connection, this only applies if you have items or scripts on your page the are from an external source like JavaScript, CSS etc.
Good day.
Background: ASP.NET MVC 3 / SignalR.
I'm developing typical chat component which will be used in a big portal. I wrote small emulator which opens new window with chat component and new SignalR connection in it.
The problem:
Everything works fine, but: Suddenly i noticed that if i open more than X windows/tabs with same component in one browser - server stops to receive any responses from any clients connected with it.
The X is:
5 for IE and Chrome
14 for FF.
I suppose it's a browser issue, because the value differs from one to another. Additionally i noticed that requests can stay pending for minutes! And there is no timeout..
Maybe someone faced with something like this, or know what can cause this strange behavior?
Thanx in advance, Jan.
I'm going to assume you're using IIS 7/7.5 on windows 7. If you are indeed using Windows7 then you need to use IIS Express since it only supports 10 concurrent connections (Client OS limit). Alternatively you can use Windows Server to get the full benefits of IIS.
This is the first post in three days of googling that came close to my experience. I am using the .NET client and have tried isolating the issue by creating an app with just the problem areas. The difference in our situation is this: I don't seem to have some connection limit on the client. In fact, I have no issues until I deploy my .Net hub to the windows server 2008 hyper vps. IIS express runs everything as smooth as butter. I've checked to make sure the asynchronous services and features are running and I've followed the performance tuning articles that david mentions in the documentation, adjusting the setting for thread queue maximums and the like. Note that the minute-two minute delays you describe are identical to mine. I updated to the latest version of SignalR (.4) from nuget and it broke my solution for some reason.
Can you tell me what version you're on? I suspect it could have something to do with security on the physical host where my vps is running. I am going to try it on a different virtualization platform to rule out hyper v issues.
Please, see my answer here: Is there a way to get number of connections in Signalr hub group?
The idea is to overwrite connectionid.
I'm developing an asp.net web site to work on mobile devices. Is going ok and works fine with android and iphone. I've no got around to testing it with blackberry in my balcberry curve. When i first tried everything looked good b ut then i noticed that some od the autopost back on dropdowns etc did not work. Some research time later i turn out out that by default that blackberries do not support this and that I need a Blackberr.browser file to allow that type of functionality to work. I following this link...
http://www.codeproject.com/KB/aspnet/BlackberryASPNET.aspx
After doing this my blakberry will not load the site at all, i just get connection timeouts. So i tried removing the blackberry.browser file, read loading the assembley in an attempt to get back to where is was, but still the site will not connect. I've refreshed iis, recycled app pools and even rebooted. I have a QA site on another box that the blackberry will connect to, but my development machine it does not like anymore:-(.
Any one got any ideas in what is going on?
Thanks for any help.
Richard
I have also suffered with the pain of developing (actually optimizing) websites for BlackBerry and Symbian, and I understand your suffering.
As you're using BlackBerry Curve, I suppose you're using a MDS server simulator on your development machine to let the BlackBerry Emulator connect to Internet.
Although I am not sure if you're even using a simulator.
I also have come across some simulators which just won't connect to the Internet no matter how hard you try with MDS server and all.
I hope you're not stuck with any issue related to the above said things mate.
Are you trying to connect your localhost with your BB?
I have a newly deployed mvc app on a win2008 server box.
I am trying to troubleshoot some very strange ie6 behaviour when over https. if a ie6 user connects to the webserver over https a simple post back or ajax call takes around 1 minute to complete, no errors are raised on the browser, it just sits there ticking away for about a minute, then completes as expected (both server and client as expected). the same post back or ajax call over http works in < 2 seconds.
There are no errors or events raised on the server, so i am flying blind here.
has anyone experienced this behaviour before, any ideas? with no errors or events to work with im not sure where to start. any other browser over https works fine, just ie6.
cheers
andrew
a quick follow up on this one. on further investigation the issue was only occurring on windows 2000 ie6 machines, xp and ie6 was ok. I guess from these results there must be something in the encryption/decryption framework on windows 2000 conflicting with the iis7 server.
I have managed to convince the windows 2000 ie6 users that its time to upgrade!
This brings up another question, when, if at all, do you think its acceptable to block certain versions of software from your web apps?
andrew
This problem is beginning to annoy.
After my machine (Vista Ultimate) has been up for a while, running my ASP.NET web site project for debugging in VS2008 results in Internet Explorer "hanging". It doesn't seem to get past the network access stage, you know when it says "Loading web site", or "Waiting for".
I've attached a screenshot of IE. Note the status bar. It stays like that forever. I have to restart it and cross my fingers for it to work the next time. Invariably, it doesn't.
This happened with IE7 and IE8.
I am using the ASP.NET Web Development Server/Cassini. I have tried restarting this each time which seemed ot have got it, but then not so any more.
I'm up to date on patches.
ie screenshot http://img40.imageshack.us/img40/5446/iehanging.png
So thankfully Microsoft have finally released Security Essentials.
This meant I could de-install AVG (Free and paid-for versions) from my machine.
Hey presto, it works!
I would check the following
1) that your not starting IE against the webserver againt the wrong port, if your using the development IIS then it changes ports at times. That combined with you setting up the browser to launch against a the old port could create this problem.
2) Stop the local IIS and restart it (Again make sure your pointing towards the correct port)
3) Make sure you dont have any hung IE in task manager ( this happens to me sometimes ). Basiclly you have a IE in task manager that uses less then 1mb of ram and does not show on the taskbar, if thats the case kill them.
This doesn't sound, strictly speaking, like a hang. Can that tab/other tabs be navigated to other sites? Is your machine configured to use a proxy?
Is the request actually sent? Using Fiddler2 from www.fiddler2.com with the URL http://ipv4.fiddler:56125/ will show you, and help determine where in IE the problem might be.
I just had a similar problem that took about a week to unravel. Using AVG 9 Business Edition.
I'm on a Windows 7 machine with Visual Studio 2010 SP1, debugging ASP.NET sites running in IIS, with the same "hang" behavior you're seeing. Disabling LinkScanner and Online Shield in AVG fixed the problem.