I have runned a web application
but it only show a directory
How to make a show a web page for debug in xp with visual studio 2008
first u open a new website.
then write codes on it and after that u just click the run button. then click the radio button - enable debugging. after that your website will be showed in browser.
When you start running a web app from Visual Studio, it will open the page you currently have open in Visual Studio. If you don't have a page open (eg. if you've got a class file open), it will just open the root directory.
You should be able to just type the page you want into the address bar and it will come up.
Failing that, in Visual Studio, right-click on the page you want to open and choose "View in Browser..."
Related
I created a new web application in visual studio 2010.
I tried to publish it to the same computer (localhost) Windows7 64 bit/IIS7
No luck
I read some remarks from others, I also tried to specify the machine name instead of localhost.
I also tried creating a web setup project...
When I "surf" to localhost , I get the IIS7 welcome screen.
you don't need to publish it, just point the virtual directory in iis to your source code.
To host your web application, firstly you need to publish the app to a desired location; after publishing, then open IIS Manager(type "inetmgr" in run and hit enter) and go through sites path from the left panel and then right click on the sites and select "Add website"; In the next step, Add Website form will be opened asking you to enter some details; Enter the sitename, link the physical path to where you previously published and lastly give the port num; If you want to open that website in the port 80 itself, leave it as 80 and then click OK.. You can now browser your published web application... :)
I created a blank Web App in ASP.NET on Visual Studio 2012.
When I click on Debugging using Google Chrome, Google chrome opens with text localhost on the navigation bar, but it does not open the website and keeps loading.
Go to project properties page and create a virtual directory. Make sure your starting page is pointing to this. Then navigate to http://localhost/myapp
One thing you can check is the following (running on a windows system):
Edit "C:\Windows\System32\drivers\etc\hosts", and ensure that you have this line: "127.0.0.1 localhost"
In my case, I had "0.0.0.0 localhost" in there.
I hope this can help.
In a solution with many projects and pages, if you are working on file different than default.aspx and start debugging, VS will try to start the execution from the file you are working on, in many cases you will get error messages.
is there any way to set a page like "default.aspx" as starting point without having to open it and switch to it?
Right click on the file in solution explorer & click on set as start page.
if you have multiple projects in your Visual Studio solution, right click on the web application project as select set as startup project, then on the default.aspx page you want to be used as entry page of your debugging right click and select set as start page in the context menu. All of this in Visual Studio solution explorer, works fine with me since the times of Visual Studio.NET 2003 :)
Bought a Win 7 64-bit machine and installed vs2010 and things are fine.
Now i want to create a site in IIS for one of my asp.net application, so that i can access and get the site served from IIS rather than from WebDev.Webserver.exe.
Googled a lot, but haven't find a solution. Can any one help me on this.
Not sure if you have IIS installed but here is how to do it. Provided you have the correct edition of Windows 7 (Professional or Ultimate).
Summary:
Start > Control Panel > Programs
click on Turn Windows features on or off.
Check the box for 'Internet Information Services (IIS)
Once installed you can follow the steps included on the microsoft website. This should get you up and running.
Summary:
Open IIS Manager.
In the Connections pane, right-click the Sites node in the tree, and then click Add Web Site.
In the Add Web Site dialog box, type a name for your Web site in the Web site name box.
Click Select if you want to select a different application pool than the one listed in the Application Pool box. In the Select
Application Pool dialog box, select an application pool from the
Application Pool list and then click OK.
In the Physical path box, type the physical path of the Web site's folder, or click the browse button (...) to navigate the file system
to find the folder.
If you do not have to make any changes to the site, and you want the Web site to be immediately available, select the Start Web site
immediately check box.
Click OK.
Something strange is going on for me.
I can open the web application on my desktop computer just fine, where it opens the asp.net MVC application with a URL like http://localhost:5118/ when I rigth click on the default.aspx file and choose 'open in browser'.
On my laptop, I don't have that option when I right click on default.aspx for some reason (it should give me the option to Open in Browser). I set the project as a web application, but it still doesn't work.
This is a vs.net MVC application.
I want to open the application without having to setup a IIS site for it.
You don't have what option on your laptop? Can you be a bit more clear?
Also, make sure your hosts file has:
127.0.0.1 localhost
-- this is advice from another site --
Can you see it under the File option while current page is aspx page? Shortcut key of "View in Browser" is Ctrl+Shift+W.
You can try to run "devenv /resetsettings" from Visual Studio command to reset settings.
You also can try to run "devenv /resetuserdata" to reset Visual Studio to its out-of-box state.