Visual Studio 2012 Web Publish on Windows 8 RTM Fails Browser Launch - asp.net

I'm developing an ASP.NET MVC 4 site using Visual Studio 2012 Premium on Windows 8 RTM x64. When I right click on the web application and choose Publish, Visual Studio 2012 returns the message:
"fail to open url of 'http://.../'.
Exception:Class not registered"
The publish process seems to work correctly but it fails to launch the browser. This happens every time I try to Publish the site and it happens with Chrome (21.0.1180.79 m) or Firefox (14.0.1).
Furthermore, since the site isn't launching post Publish, I do it manually using Ctrl-F5. I'm able to navigate around the site normally, but if I right click on the browser's icon on the task bar to launch another browser instance, nothing happens. Once I close all browser instances, the browser task bar icon reverts to its normal behavior.
I'm not sure if these two issues are related, but the common theme here is launching a browser from Visual Studio 2012 causes unexpected side effects. The browser either fails to launch on Publish or launches with Ctrl-F5 but renders launching another instance useless using the task bar icon.
Any help is appreciated.
EDIT: I've re-installed the entire software stack (Windows 8, Office 2010, Visual Studio 2012, Windows Update, Chrome, Firefox). The above issues continue, unless I make Internet Explorer the default browser.
Thanks.

I filed a Chrome bug, it was a browser registration thing. If you uninstall and reinstall from a Download and be SURE to say Yes to the UAC prompt, Chrome will register Machine Wide, rather than User. That is required to launch as Admin. (HKLM vs. HKCU)

It appears this problem is much more widespread than the Web Publish operation. Anytime you use the ShellExecute() API (or Process.Start) to access a URL it fails when running under elevated rights (ie. Run As Administrator).
I see this in any application that uses Process.Start() or ShellExecute(). When UAC is on and I run it normally under the UAC account everything works and the browser opens. Run with "Run As Administrator" it fails. It's easy to test.
Not sure if this is a bug in the OS, or whether Microsoft deems this as a security 'feature'.
FWIW, some people have mentioned the setting IE as the default browser works, but it doesn't work for me. Basically no links work if I've elevated rights. This has actually broken quite a few administrative applications we use in the back office for administration.

Related

Launching Google Chrome from within Visual Studio

I'm pulling my hair out over this since I'm already searching for a solution on it for a few days.
The problem is that when no instance of Chrome is currently opened and I press the Google Chrome Button to launch my web application, Chrome opens a new window on a gray screen. I can't load any pages, not even the settings page. It only occures when I do it from Visual Studio in Administrator mode. When an active instance of chrome is already opened, it will successfully open on that instance in a new tab. When I open the Chrome exe in the program files or via my desktop shortcut, it also works fine. It seems to only occur when launched from within VS administrator modus.
Steps to reproduce in my case:
Open VS in Administrator
Close all instances of Chrome
Launch web application in Chrome
New Chrome window opens with unresponsive gray screen:
Screenshot of the result
I've already tried:
Repairing VS
Reinstalling Chrome
Anyone already encountered this problem and has a solution?
Cheers
I had the same issue for a day or so and was really getting on my nerves!
I tried a few things:
Loading Chrome in Administrator mode (didn't work)
Loading Chrome independently, i.e. not getting Visual Studio to debug directly in Chrome, then pointing it to my app (didn't work)
Setting Chrome to always run in Admin mode (didn't work)
Finally I set Chrome's Compatibility settings to run Windows 8 and it seems to work now! Even from VS firing it directly into Debug mode.
I'm running
Windows Server 2012 R2
Visual Studio 2015 Pro
It's worth noting this issue NEVER happened in Visual Studio 2013 Community.
Hope that helps
Chrome compatibility settings

Visual Studio 2012 Error

I use Visual Studio 2012 on a Windows 8 PC. I had no problems when installing VS2012.
When I'm working on a ASP.NET c# project I usually use the option "See in the explorer" instead debug the project. This gives me the ability to change code behind.
Sometimes after build and press F5 to reload the page I get some errors. This doesn't happend always, but very often.
The errors are: CS2021, CVT1100, CS1566...
"Can't find file 'C:\Users\UserName\AppData\Local\Temp\Temporary ASP.NET Files\root\617be439\61539075\App_GlobalResources.iuxkzxdi.0.cs'"
Always the "C:\Users\UserName\AppData\Local\Temp\Temporary ASP.NET Files\root" is the problem. Sometimes it says can't find file others it says access denied.
Visual Studio works but is horrible to keep pressing F5 until the error goes away.
Can anyone help me?
Run VS2012 as Administrator. Local account by default have restriction accessing the build/temporary locations and will throw such errors. You'll have similar problems when trying to publish websites.
Therefore, It is easier to set VS 2012 once, and check the box in properties to "Run program as administrator" to allow it run always as "Administrator".

Limited browser functionality when developing in Windows 8

Has anyone else run into this problem and resolved it?
I am developing with Visual Studio 2010 in a clean install of RTM of Windows 8. While developing an ASP.NET application and RUNNING it with the Debugger Attached, I can not click on HTML links in ANY application and have it open up a browser window.
I will be running(debugging through VS) my application in Firefox, and I can't click on links sent in Google Talk or Outlook.
If I stop the application from running, I can then click on those links.
I have also seen that while debugging, I am using jQuery Drag-N-Drop HTML 5 functionality in my application. I can't use that functionality while it is running under the debugger, it just doesn't work. This happens with all browsers (Chrome, Firefox and IE). But if I stop debugging, and run it without the debugger on, it then works.
Any ideas?
Try to disable the debuging for "Javascript" in Visual Studio 2012.

Use IIS Express in visual studio 2010 without sp1 and command window

I want to use iis express with vs 2010 but i can't install sp1 for now, i have figured out how to do this, it is close to this guide How to configure Visual Studio 2008 to use IIS Express? and it works.
My problem is that when vs runs iisexpress it has also an annoying command window (besides the tray icon) which i would like to get rid off.
I can't install sp1 for vs 2010 but i have installed vs 2010 express with sp1 and double checked that when the integrated iis express option is used it runs without command window
First thing i've done was to check if iis express has some command line options to hide the window, but no luck, on the other site option integrated in sp1 can run without this windows, so...
how to do this the same way / or how the sp1 option is doing this ?
p.s. There is however one catch, if vs runs iis express and you wait couple of seconds and then go to tray-> choose website and click Stop Site the command window disappears but iis still runs and the site also, i don't know if this is a bug or something, but then it is like in sp1 no window, only tray icon.
There is no command line option to disable command window, but you can use /systray command line option to disable tray icon.
Visual Studio uses CreateProcess API (or similar API) with creation flag set to CREATE_NO_WINDOW (0x08000000). Following links may help you!
http://msdn.microsoft.com/en-us/library/ms682425(VS.85).aspx
http://msdn.microsoft.com/en-us/library/ms684863(VS.85).aspx
Your observation is due to the fact that VS has attached to iisexpress.exe (when you stopped site from tray icon, iisexpress is in the process of shutdown by closing it's console window etc..., but since VS is attached to it, iisexpress is not able to exit and running in the background and waiting for VS to release)

VS 2008 IDE keeps stopping on jQuery errors

I just installed VS2008 on a brand new Win7 machine and have started at a new company. I am now running the company's main project and all is well...except that, for some reason, .Net keeps breaking on some javascript errors. This isn't in the browser (although it only happens when running IE, in this case version 8).
I'm at a loss as to where to find the option to turn off the javascript debugging in VS 2008.
Can anyone point me in the right direction?
The setting is actually in IE.
Tool -> Internet Options -> Advanced
Under browsing
Check Disable Script Debugging.

Resources