Visual Studio can not preview project in browser - asp.net

For some reason I have one project I can not preview in a browser. It seems it can open the others fine. In Google Chrome it says "Server error" and IE reports Page can not be displayed. Nothing changed. Any ideas?

This turned out to be a result of no start up project being selected. Simply going to Solution > Properties > then selecting a start up project fixed the issue.
Or going to Solution > Properties > RightClick file> Select Brows with > choose your default browser .

Related

Add external browser to Apanta Studio 3

I am trying to add an external browser to Aptana Studio 3 from preferences/Web Browsers and then NEW, which gives me the "Add External Browser" dialog.
When using the "browse" option to point Aptana to Safari in the Applications folder, it gives me a "The location value is not a valid path name" error.
location shows as: /Applications/Safari.app
If I change that to: /Applications/Safari/Contents/MacOs/Safari.app
its still gives me the error.
What should the correct pathname be?
Thanks
OK found it:
/Applications/Safari.app/Contents/MacOS/Safari
/Applications/Google Chrome.app/Contents/MacOS/Google Chrome
/Applications/Firefox.app/Contents/MacOS/firefox-bin
Somehow OP's solution didn't work out for me. However, if you edit the launch configuration using Run > Run configurations... and select your launch config, in the Main tab, where it says "Browser executable" it will actually accept something like /Applications/Google Chrome.app (just use the browse button)

How can I default to IE for testing my ASP.NET application?

Three fine browsers I have installed: the inimitable Mozilla, the traditional Internet Explorer, and the hot new Chrome. I love them all dearly, but when testing my ASP.NET application, I would prefer to do so using IE.
Please note, I've not deployed this application. I'm merely launching it from the Visual Studio project in which it was conceived. Would someone here be so good as to suggest a way in which I might specify the browser it launches in? Thank you.
Right-click on any .aspx page in Solution Explorer and choose Browse With...
You can then select Internet Explorer from the list and choose 'Set as Default' to make pages open with IE when you press F5.
Click and ASPX file in your solution explorer
Go > File > Browse with.. > Select IE then set it as your defautl browser.
Run your project.

how i can change default browser when running .net projects

net project then it runs in mozilla. I want to change that setting & i want in internet explorer, how i can do this?
Thank you.
From File menu, select Browse with..., and choose your default browser.
Be sure to have a web site project loaded and selected otherwise the option won't show up.
Just Right-Click on a folder or a .aspx file in your project and Choose "Browse with..." from there. Then set your desired browser as default via the "Set as Default" button and click browse. That's it.
Next time you start debugging the site will open in your default browser.

Visual Studio | ASP.NET Configuration error

I have a problem as I have struggled with for a week.
Now I give up! I really can not figure out how to solve it. Every time I open the ASP.NET Configuration in VS10, then comes the first with this error:
**An error was encountered. Please return to the previous page and try again. **
If I then press:
How do I Use this Tool
so this comes up:
**Tool Has Timed Out
As a security measure, the Web Site Administration Tool times out after a period of inactivity. Changes to machine.config or web.config may also result in the tool needing to be restarted. To continue configuring your web site, restart the tool. **
Some who can answer me on what's happening here?
"Special characters in the path may be the problem, according to the posts." as Posted above by Dave Swersky
THIS worked perfectly for me! I had a special character ("#") in my folder path I removed this and removed spaces for good measure!
I was getting the error "Tool has timed out" among other errors when accessing the WSAT(Web site administration tool) from the ASP.NET configuration menu item.
I saw a post somewhere else that said the problems was solved when the default browser was changed to Internet Explorer. I have been using Firefox and have the exact same problem. When I changed the default browser to IE, the configuration page came up with no problem. But it won't work twice in a row without going in and setting the default browser back to IE each time. When I go back in to Program Access and Defaults, "Use by current browser" is selected. I have to reselect IE, and then it will work one time.
Judging by the Connect site, this error has been reported and is not well understood:
http://connect.microsoft.com/VisualStudio/feedback/details/118567/an-error-was-encountered-please-return-to-the-previous-page-and-try-again
Special characters in the path may be the problem, according to the posts.
This is what worked for me.
I'm using Visual Studio 2010 trying to create the membership role. I was trying to use the ASP.NET Configuration in Visual Studio.
Set the 'Default Browser' to Internet Explore.
To do this:
Right click on one of the .aspx pages you have under "Solution Explorer".
Select "Browse With..."
Select Internet Explore and Click on Set as Default.
Close the box.
Go back and click on "ASP.NET Configuration"
This will automatically open Internet Explorer.
Problem Solved :D
I guess what I was doing wrong was using Firefox as the default browser with Visual Studio. I'm guessing Visual Studio works good together with Internet Explorer since Momma and Daddy made them together (awww how cute)
The issue might be related to an application path that has spaces. After googling I managed to bypass the issue by appending the application path to the url manually ie.
http://localhost:{your_port_here}/asp.netwebadminfiles/default.aspx?**applicationPhysicalPath={path_to_your_application}&applicationUrl=/**
As a firefox user, I closed firefox then executed the "ASP.NET Configuration" option in VS2010. It automatically opens firefox (default browser) and now I am seeing WAT page contents.

Change default browser by project or solution in Visual Studio 2008?

i have to work on various web projects for different customers. some use IE only, some Firefox and other browsers in their companys.
i would like to debug project/solution A with IE and project/solution B with firefox (and so on) by just hitting F5 or "view in browser".
I do NOT want to switch the default browser in visual studio via:
right click on an .aspx file in the solution explorer
browse with...
selecting the browser i want to use
pressing "set as default" to make it remember my choise (optional)
everytime i have to work on another project/solution.
Can i save the default browser by solution or project and NOT via VS global settings somehow?
do you have any hint for me how to archive this? is there maybe even an addin for this?
thanks, toebens
In the project properties, in the Web section you can have it start an external application with parameters at the start of debug (F5) so you could specify the path of the browser as the Start External program path and the http://servername:port/virtualdirectory as the command line argument
alt text http://img142.imageshack.us/img142/3708/projectprops.gif

Resources