Asp.net Web Site Administration tool icon is not showing - asp.net-mvc-3

I created an asp.net project in MVC3 on VS2012. It has AccountController and all other View folders. But i dont see Administrative tool icon on Solution explorer to create an admin. How can i get to this or enable the icon?

If anyone has same problem and they dont see the icon for ASP.NET configuration. You can click on Projects -> ASP.NET configuration. It will open up same site where you can setup admin users.

Related

How do I set something in Visual Studio 2013 Express for Web so that running it in debug mode opens home page?

Running Razor, MVC5, .Net 4.5.1. I have no idea what constitutes a "start page" in MVC within the visual studio development environment. How do I set it so that every time I run F5 my home page opens?
Setting a startup page for MVC5 when debugging
This can be done in the Project Properties.
Open Solution Explorer and find the relevant project.
Right-click on the project and choose Properties (or press Alt+Enter).
Navigate to Web -> Start Action.
Explanation
By default an MVC application has the Specific Page radio button selected and the input box is blank. This means that the application will open a browser to the server with no page specified and MVC will use the default route of /Home/Index.
http://localhost:12345/
You can specifiy a different route. For example you could use Home/About (see image).
This would open
http://localhost:123456/Home/About

MS VS 2010 - Web one click publish toolbar is disabled when code file is viewed

I use VS 2010 and the deploy function and to get quick access to the functionality I showed Web One Click Publish toolbar. But the toolbar is only activated when I open Web.config files or when I open Properties of a web project. When I open C# code file that toolbar is disabled. I think the functionality should be enabled independently like for example functionality Build project.
Is it something wrong in my VS installation or configuration?
I've just found that it is disabled when code file being viewed (active) does not belong to Web project (but to other one instead that cannot be published).

Default Browser- Visual Web Developer Express 2010

I am trying to debug a Windows Azure WebRole which is an MVC3 project, but I want it to launch in any browser of my choice.
The Windows Azure is set as the Startup Project and launches the MVC3 project WebRole.
I am using Visual Studio Web Developer Express 2010.
I have previously stabbed in the dark by setting the following properties as in the image below but to no avail:
I then decided to set the project to not independently launch a page as above.
Is there a way to setup a default browser with the above scenario AND without changing my Windows default browser?
I've gotten around this in the past by adding in an ASPX or HTML page to the project and then right clicking it and selecting Browse With. You can then change the default browser in there without having to change your default browser within windows.
I haven't tried this with the Express edition however, but I don't see why they wouldn't include it in there.
You can delete the file afterwards and it will still retain the setting.
How about this:
WoVS Default Browser Switcher
http://visualstudiogallery.msdn.microsoft.com/bb424812-f742-41ef-974a-cdac607df921
You right on the page shown in solution explorer and then browse with whatever browser you want to set and add it as default browser.

Design View on SharePoint Project Visual Studio 2010

Hi I am creating an application page for SharePoint 2010
But i ran into a little issue.
First I create a Empty SharePoint Project then I added an Application Page item to the project
When i tried to add controls i am only capable of doing so in the Source View
Some one knows how to enable the design view for this type of project?
Thanks in advance.
Design view may not available for SharePoint Developers in VS.NET because NOT all dependencies (and most importantly master page and other scripts, styles used by master page) are not available to VS.NET's project environment. So VS.NET may not be able to render the page correctly.
The Design view of the designer is disabled for application pages.
You can only design the page in the Source view of the designer.
See
http://msdn.microsoft.com/en-us/library/ee231581.aspx
here is a trick for this little problem:
add a user control to your project. copy all the markup code over to this user control. design away, then copy the markup back into your application page to start refining your code to work as a sharepoint item.

"View in Browser" and "Browse with..." context menu entry on classic .asp files in VS?

some bad legancy web application projects still have classic asp files. these project consist of 95% of classic .asp files and the rest only of asp.net (.aspx).
if you right click on an .aspx file in the solution explorer of VS you can choose "view in browser" and "browse with...".
however if i right click on an classic .asp file there, there is no such option!
do you have any tip/hint/addin for me so that it will show these two context menu entries also for .asp files?
i run all my projects in IIS not the build in casini web development server VS comes with!
thanks, toebens
The problem is that VS includes the Cassini web server out which it can deliver execution of ASPX files. However it does not include a processor for ASP pages, for that you need to run the ASP pages in IIS, hence there is no simple "Display in browser" since VS has no idea what URL to ask the browser to display.

Resources