Hi,
I'm developing a Web application in ASP.net 2.0, and when I click the green play button to compile and debug, it opens in FireFox and not Internet explorer. I set IE as the default browser, but that didn't work. I suspect this is a VS setting. Let me know if you know anything.
-Dan |
| imdandman Wednesday, February 27, 2008 8:54 PM |
This file:
C:\Documents and Settings\<user>\Local Settings\Application Data\Microsoft\VisualStudio\9.0\browsers.xml
should control the setting in XP. |
| waldenk - MSFT Friday, February 29, 2008 1:55 AM |
1) Right click on a .aspx page in your solution explorer
2) Select the "browse with" context menu option
3) In the dialog you can select or add a browser. If you want Firefox in the list, click "add" and point to the firefox.exe filename
4) Click the "Set as Default" button to make this the default browser when you run any page on the site.
Check the original blog here... http://weblogs.asp.net/scottgu/archive/2005/11/18/430943.aspx
Hope this helps... |
| Harshey Thursday, March 06, 2008 7:25 PM |
Dan,
On Vista, these registry keys should control those settings:
HKCU\Software\Classes\htmlfile\shell\open\command.SetValue(null, fullpath);
HKCU\Software\Classes\http\shell\open\command.SetValue(null, fullpath);
HKCU\Software\Classes\https\shell\open\command.SetValue(null, fullpath);
|
| waldenk - MSFT Wednesday, February 27, 2008 9:52 PM |
Unfortunately this is happening on an XP machine, not a vista machine.
|
| imdandman Thursday, February 28, 2008 8:05 AM |
This file:
C:\Documents and Settings\<user>\Local Settings\Application Data\Microsoft\VisualStudio\9.0\browsers.xml
should control the setting in XP. |
| waldenk - MSFT Friday, February 29, 2008 1:55 AM |
I opened up that file and set IE as the default, and that didn't work. Then I moved IE to be before Firefox in the list of browsers in the file, and that didn't work, then I removed Firefox from the entry list all together, and THAT didn't work.
Not really sure what to do now.
-Dan
|
| imdandman Monday, March 03, 2008 8:01 PM |
There are a couple fields tagged <IsDefault>. Try changing the False between the tags to True. I was able to toggle the browser after doing that. |
| waldenk - MSFT Monday, March 03, 2008 8:15 PM |
I apologize if I wasn't clear. I did change the tags between the <IsDefault> tags. It didn't work.
-- EDIT --
This is the contents of my browsers.xml file right now.
<?xml version="1.0"?> <BrowserInfo> <Browser> <Name> Microsoft Internet Explorer </Name> <Path> "C:\Program Files\Internet Explorer\IEXPLORE.EXE" </Path> <Resolution> 0 </Resolution> <IsDefault> True </IsDefault> <DDE> <Service> IExplore </Service> <TopicOpenURL> WWW_OpenURL </TopicOpenURL> <ItemOpenURL> "%s",,0xffffffff,3,,,, </ItemOpenURL> <TopicActivate> WWW_Activate </TopicActivate> <ItemActivate> 0xffffffff,0 </ItemActivate> </DDE> </Browser> <InternalBrowser> <Resolution> 0 </Resolution> <IsDefault> False </IsDefault> </InternalBrowser> </BrowserInfo>
|
| imdandman Monday, March 03, 2008 8:22 PM |
1) Right click on a .aspx page in your solution explorer
2) Select the "browse with" context menu option
3) In the dialog you can select or add a browser. If you want Firefox in the list, click "add" and point to the firefox.exe filename
4) Click the "Set as Default" button to make this the default browser when you run any page on the site.
Check the original blog here... http://weblogs.asp.net/scottgu/archive/2005/11/18/430943.aspx
Hope this helps... |
| Harshey Thursday, March 06, 2008 7:25 PM |