I'm doing some web development and when I push the debug button it starts off with the selected tab and it is really annoying because it will throw errors because those pages are not meant to be ran at first. Is there a way to have visual studio always run a default page first?
Right click the page you want to be the start page and select "Set As Start Page:"
Check out the Web Application's Properties Window, Web Tab. It has a box where you can enter the URL to load upon starting debugging.
That is; Right-click on the project item in the Solution Explorer, choose 'Properties', then click the Web tab, and select the proper option for your needs.
You can also right-click on your desired start page and select Set as Start Page.
Related
I recently published an office solution as a click once application on my one drive. My client downloaded it from there and when he tried to install, it gave him this error.
I want to republish it by making it a full trust application but i cannot find the security tab in project properties.
Thanks in advance.
I had the same issue and the solution was super annoying to figure out. Someone on another website mentioned that the Security tab is only relevant for certain types of ClickOnce applications so I started playing around with various options and figured it out.
In the Application tab, for Application Type, select Windows Forms Application from the drop-down menu (other drop-down options might also work but haven't tried them)
Save everything: In the main menu bar of Visual Studio, click File > Save All.
Close your project Properties window (i.e. the one with the Application tab that we were just modifying)
Open your project Properties window again: in your Solution Explorer, select your project, go to the main menu bar, click Project, click Properties.
Voila! It should be there. :)
Is there any extension or feature in VS2010 for previewing in multiple browsers (at the same time) the same as there is in Microsoft Expression Web 4? I know there is the "Default Browser Switcher" extension but this only lets you view one browser at a time.
Cheers
Will
When you right click on the page to do the "Browse With...", you can set multiple defaults. Once you have added in multiple browsers to the list, you can CTRL Click each one you want (to highlight multiples). Once the desired ones are highlighted, click "Set as Default". From then on, whenever you hit "Browse" it should open in all your "Default" browsers you highlighted.
I have found a solution on how to preview a MVC application in multiple browsers by adding a few answers together.
What you do is add an .aspx page into your project and set this as the startup page when you run the project.
Then with your project set it so that you are automatically redirected to another page, be it "Login" or a "Home" page.
The last step is to use #Walls answer
When you right click on the page to do the "Browse With...", you can set multiple defaults. Once you have added in multiple browsers to the list, you can CTRL Click each one you want (to highlight multiples). Once the desired ones are highlighted, click "Set as Default". From then on, whenever you hit "Browse" it should open in all your "Default" browsers you highlighted.
Now when you run the project it will start up all of your default browsers for testing.
I have installed Visual Studio Ultimate 2012 RC Version 11.0.50522.1 RCREL onto Windows 8 RP on a Virtual Machine running Hyper-V on Server 2012 RC DataCenter.
All the documentation states that if you want to administer the Test Controllers in a Load test rig, you have to click on "Administer Test Controllers" in the "Test" menu. However, I don't have that option in the Test menu. I've tried adding it manually, but then it simply remains unavailable.
What am I doing wrong? This is really holding me back.
I am able to administer test controllers by creating a dummy load test and then right-Clicking on the "Controller Machine" Note and selecting "Manage Test Controllers" from there. The issue I have is that I think there might be some other menu items missing: How do you set the active Controller (I have 4 set-up). It seems to try to run the tests locally, but then the TestResults databases I have created for each of the 4 controllers aren't used, and it can't find it.
Edit:
I've submitted a bug with Microsoft at: https://connect.microsoft.com/VisualStudio/feedback/details/758768/can-not-administer-or-manage-test-controllers-from-the-test-menu
As Cybermaxs said, you can find the "Manage Test Controllers" command in the Load Test menu. However, this menu is only visible if you have a C# Web Performance and Load Test project in your solution. It doesn't help you if you only have standard C# MS Test projects.
The good new is, you can manually add the "Manage Test Controllers" option to your Test menu, which is always visible.
Workaround:
Notice that I have a Unit Test project in my solution, but no Web Performance and Load Test projects.
I have a Test menu, but no Load Test menu.
My Test Menu does not contain the Manage Test Controllers option
To manually add the command:
Right-click anywhere in that menu bar area and select "Customize".
In the Commands tab, select the Test menu bar from the drop down.
Click the Add Command button, scroll down and select the Load Test category, and what do you know... there it is. The "Manager Test Controllers" command.
Select it and click "OK" to add it to the menu. Use "Move Up" and "Move Down" to position it to you liking (personally, I prefer it just above the first break).
Click "Close" to save, and with a feeling of success, see that the prodigal command has returned :)
You can right click on a load test.
It is also available in the menu item "LOAD TEST".
I have a build process in TFS and I'm using Visual Studio 2010. I can view the build process in the default xml editor, but I want to open it in the Workflow Designer.
Mostly there will be an option to open the build process in the Workflow Designer or you can press Shift-F7 and it'll open it when viewing the xaml.
For some reason that has disappeared, any ideas why?
Is there any way to force VS2010 to open a xaml (or xoml) file in the Workflow Designer and / or are there any good Windows Workflow editors out there like Kaxaml for WPF / Silverlight?
I have the same condition.
I have set my default editor for .xaml to the XML editor. This speeds up the load time of the file because it does not have to load the designer, but prevents me from seeing the workflow view of a build process. There is no option in TFS to allow you to view the build in a different editor, there is only a 'View' option.
So here is my workaround:
Find a .xaml form in your solution (not a build process .xaml)
Right click the file and choose 'Open with...'
Choose 'Workflow Designer' and click 'Set as Default'
Click 'Cancel' because clicking OK will try and open the file, fail, and set the setting back.
Now go open your build process .xaml. If it was already opened, nothing will change, so close the tab and try again.
Don't forget to default your setting back.
It's not a great solution, but it works for what I'm doing.
Did you try right clicking the template file and using "Open With" and selecting Workflow Designer?
I just starting working with Visual Studio and I find that debugging web apps is rather annoying. After making a change and clicking f5 it sends you to localhost:port/ however many times you are not editing localhost:port/ but you are editing localhost:port/someOtherFile, so you can see how this can be pretty annoying.
I am hoping that there is a way to optimize this. Ideally I would want to be able to hit f5 and have it just refresh whatever tab in my browser has localhost:port/whatever/youGetThePoint If this is possible it would make for some really nice debugging because many times you would never even have to click the browser.
Also, why do we have to hit shift+f5 to stop debugging. Why not just f5...
EDIT: I am using MVC2
In Visual Studio, right click on the file (Mypage.aspx -?) you want to start debugging with and select "Set As Start Page."
This will automatically open that page instead of root.
Click on your application in the solution manager
View -> Property Pages
Select the 'Web' tab on the left
Set 'Start Action' to a specific page.
You can select any page in the web project to be the startup page - once you click F5, the browser will start at that page.
Two things you can do:
You can set your web application to use your local IIS for debugging. I'm assuming you're using the standard settings that get setup whenever you create a new web app project.
To set your project to use IIS first make sure you have IIS installed on your dev machine. Select the web application project from the Solution Explorer and then right click. Hit the properties selection. The first tab on the right (build), should allow you to configure IIS to have an application for your project. It will eliminate the port number part and should be a bit easier to navigate around in.
Second thing you can do is find the page you want to go directly to and right click on it and set it as the start page ("Set As Start Page").
Also, you can Google for a Visual Studio macro that will attach to the IIS worker proc so you don't have to refresh what the browser is currently doing. You can also go to the debug menu item and select "Attach to Process..." and then find the worker proc and attach to it.
I believe Start Options might do the trick for you.
Right-click on the project, and select "Start Options..."
On the Start Options dialog under "Start action" heading, you may specify a page or start URL.