VS 2012 Asp.net MVC changes not coming up when running website - asp.net-mvc

After upgrading to VS 2012 any changes I make in my javascript classes do not seem to take effect until after I flush the browsers cache and rerun. i.e. Make change to line of javascript, run the website by click f5, changes are not there.
This wasnt occurring previously in VS 2010, or even the VS 2012 RC. Would there be a setting that is caching this?
Thanks

Related

IIS Express w/ VS 2022 crashes when debugging web app and selecting file via file html input on page w/ ExtJs

Here are the details:
OS: Windows 2016 server accessed over RD
Dev tools: VS 2022 17.1.6 & VS 2019 16.11.11. I run VS in Admin mode (both)
IIS Express version: 10.0.22489.1000, 64 bit
Browser Chrome: 100.0.4896.127 (Official Build) (64-bit)
App:.net 4 webforms application that uses ExtJs 6.6.0 classic as front end
Antivirus: CrowdStrike, version 6.36.15005.0.
I have a form with a file field. This link has more information on how the upload works, it basically uses an iframe under the hood.
Now, in VS 2019 the upload works. In VS 2022 the upload doesn't work anymore and it returns the error: "Blocked a frame with origin "http://localhost:38991" from accessing a cross-origin frame." (the error is returned in the client JavaScript code). Just to be clear, I open exactly the same project in VS 2019 and it works, then I open the project in VS 2022 and the uploads don't work anymore.
Both use the same IIS Express process (64 bit). And one minor detail, the upload operation when run from VS 2022 kills IIS Express, it basically evaporates.
Any idea on how to fix this in VS 2022? For now, I have to use VS 2019 in order to be able to test uploads.
Thanks in advance.
Update:
I installed VS 2022 version 17.1.6.
Initially I thought IIS express evaporates upon uploading the file. It actually exits when I select the file in the Open dialog.
The program '[19000] iisexpress.exe' has exited with code 4294967295 (0xffffffff).
When I run the project without debugging, it works fine!
I changed the title of the post from:
ExtJs file upload getting: "Blocked a frame with origin "http://localhost:38991" from accessing a cross-origin frame." when run w/ VS 2022 IIS Express
to
IIS Express w/ VS 2022 crashes when debugging web app and selecting file via file html input on page w/ ExtJs
ok, found the answer here: IIS Express stops suddenly when I click on a text box in my web app.
This did the trick:
The checkbox was clear in VS 2019, a colleague confirmed the uploads work in VS 2019 even with the checkbox selected.

IIS Express gets stuck and css styles sometimes not being applied when debugging an ASP.NET MVC application from Visual Studio 2013

I am debugging an ASP.NET MVC app from Visual Studio 2013. When I start the debug process from Visual Studio, IIS Express where app is hosted gets stuck (my app is not started). It often happens to me. In this situation, I manually stop IIS Express from the tray icon. Even stopping IIS Express from the tray icon I often need to stop manually the debugging from Visual Studio through the stop button. Once debugging is stopped, If I try to debug again it does not work, well, sometimes works and sometimes not, it is random. I have verified that if I clear all browser history and cookies, it works in most cases except for some time. Also I have observed that Visual Studio 2013 takes a long time to boot IIS Express where my ASP.NET MVC app is hosted. Finally, I have observed that my ASP.NET MVC app hosted in IIS Express sometimes is not being displayed correctly when debugging from Visual Studio, I mean, it is displayed without css styles being applied, it seems like css styles are missed. In this case, if I stop debugging and start it again it works.
So How can I improve or solve these kind of weird issues?
IIS Express gets stuck and css styles sometimes not being applied when
debugging an ASP.NET MVC application from Visual Studio 2013
This is a quite strange issue and l suggest you could try these suggestions
Suggestion
1) delete all caches under C:\Users\Administrator\AppData\Local\Microsoft\VisualStudio\12.0\ComponentModelCache, C:\Users\Administrator\AppData\Local\Temp and C:\Users\Administrator\AppData\Local\Microsoft\WebsiteCache.
2) close VS Instance, delete .vs hidden folder,bin,obj folder under the physcial path of the solution and then reopen your project
3) If you have IntelliTrace, please disable Enable IntelliTrace under Tools-->Options-->IntelliTrace-->General.
4) try another port like 56000 by right-clicking on the project-->Properties-->Web--> project url.
5) disable any third party extensions by Tools-->Extensions and Updates or just use devenv /safemode in developer command prompt for vs2013.
6) try to reinstall IIS on the control panel and if your IIS is not 10.0, I suggest you could download and use it.
In addition, VS2013 is too old and Microsoft does not continue to maintain it. So l suggest you could download and use the latest VS2019. It has more optimization and stronger performance than the previous VS and fixes some remaining issues from previous releases.

Reduced VS 2017 IDE interactivity in MVC 5 Razor views in 2015 project

I just installed VS 2017 and am opening an MVC 5 project created in VS 2015. The application runs fine, but I am experiencing reduced interactivity between my MVC Razor view code and the 2017 IDE.
Here's is the context menu when I right-click on an HTML helper method in VS 2015:
However, I only see this in 2017:
Also notice the lack of syntax color-coding in the 2017 verison. It's like it's not recognizing Razor syntax at all.
I did not do any special solution/project upgrades. I just opened the solution in 2017 and expected it to prompt me to upgrade any files that needed upgrading.
So it turns out that the component installation for VS 2017 is modular in that you have to install exactly what you need. This is different from 2015 (at least as far as I recall) where all components are included with the installation.
I have a tendency not to read entire pages and just focus on what seems like the "most comprehensive" option. In my case, I selected only Universal Windows Platform development (doesn't that just sound like everything you'd need?). If I bothered to look at all the components, I would have seen ASP.NET and web development.
So, after modifying my installation, I am now seeing all the Razor syntax in my views.
Repair your Visual Studio installation. This happened to me as well.
Go to Tools Options and customize menus and ribbons
also have a look: https://msdn.microsoft.com/en-us/library/wdee4yb6.aspx
and or: https://msdn.microsoft.com/en-us/library/wdee4yb6(v=vs.110).aspx
try reset the existing window layout or menus and options.
or repair your VS

Visual Studio 2015 does not refresh changes

Currently I'm playing a little bit with MVC application. But there is one thing that is very annoying. When I change something in my code (controller, view or whatever) the changes sometimes does not refresh. I see the old content. And there is more. Sometimes browser says "Waiting for localhost..." and it's waiting forever. When this happens the only thing that helps is to stop IIS and restart Visual Studio. What seems to be the problem? How can I make this work and see my changes every time I build and refresh the page? (Ctrl+F5 does not work)
I'm using Visual Studio 2015, IIS Express and Firefox (but this also happens on IE).
Updating visual studio 2015 helped.

Visual Studio 2012 IIS 7 - JavaScript File Lock

I am using Visual Studio 2012 to develop an MVC 4 web application. I have also created a virtual directory on my local IIS 7 server which points to my MVC application. Both IIS and Visual Studio 2012 point to the same source code.
I usually edit JavaScript files and hit refresh on my browser to reload the JavaScript file.
For some reason whenever I edit the JavaScript via Visual Studio 2012 it is write protected (by IIS) so I have to touch the web.config file in order for IIS to release the file in order to overwrite the file. This is really annoying when debugging because I have to reload the application every time I make a minor change to a JavaScript file.
Has anyone had this issue and how did you resolve it.
Any help would be greatly appreciated. Thank You

Resources