I was doing load testing using Visual Studio 2013 Ultimate for one of the applications I was working on and I noticed the following error when I try to run the recorded load test
Context parameter ‘$HIDDEN1.__RequestVerificationToken’ not found in test context
The test scenario was the following:
- Load home page
- Click a url on a page
- Dialog shows up (GET)
- Select a value from a dropdown on the dialog (POST)
The tool was trying to use $Hidden1.__RequestVerificationToken from the main page but that variable wasn’t available in the current context.
Add a new Extraction Rule, create new variable at the GET request step above the POST request
Assigned the __RequestVerificationToken value in the form to a Context Parameter
In the Post request, change the form post parameter to new token
That specific request was a POST request done using Ajax.
Finalize your app projects with peers and expert support.
Bring your Windows and Windows Phone apps to a //publish/ coding event and we’ll help you overcome the final blockers to optimizing, completing and publishing your app. https://publishwindows.com/publish
For a limited time, you can move your Visual Studio Online to on-premises TFS. This feature is turned OFF by default and you need to contact VSOExportSupport@Microsoft.com to turn it on. You also need to upgrade your on-premises TFS to Update 2.
Microsoft has published step by step article on how to prepare you on-premises environment, export your projects, and import them
How can I create a query and filter on more than one state? I had this question last week at a client location. If you are interested in a short answer then the answer is to comma separate the states and you use the In operator. For step by step instructions, read the rest of the article.
In Web Access,
Click on the Work tab
Click on Queries
Click on New
Click on New query
In this example, I want to select all bugs that are Approved and Committed
From the Work Item Type Value field, select Bug
Select In in the State’s Operator field and Approved,Committed in the Value field.
You can click the play button to test your query
Save your query
If you are looking for free training, make sure you visit the Microsoft Virtual Academy site at http://www.microsoftvirtualacademy.com/?prid=ca_mvpaa&mtag=MVP5000005 . The website contains many videos related to the Microsoft ecosystem and I am confident that you will enjoy it.
Today I got this error while publishing my web and wcf application in Visual Studio 2013 using PackageWeb Zip Nuget package.
Error “DestinationFiles” refers to 2 item(s), and “SourceFiles” refers to 1 item(s). They must have the same number of items.
This error was generated by the PackageWeb.ZipExtension.targets under the -Package folder specifically by the following statement
Condition=” ‘@(_PkgLoc)’ != ” “/>
I added the Message task before the copy task to view the value of _PkgLoc
<Message Text=”***_PkgLoc:@(_PkgLoc->’%(rootdir)%(directory)'” Importance=”high” />
For some weird reason, the _PkgLoc list had two identical items.
To fix this error I added the KeepDuplicates attribute to the _PkgLoc tasks as follows:
<_PkgLoc Include=”$(DesktopBuildPackageLocation)” Condition=” ‘$(DesktopBuildPackageLocation)’!=” ” KeepDuplicates=”false” />
<_PkgLoc Include=”$(PackageDestinationRoot)” Condition=” ‘@(_PkgLoc)’==” ” KeepDuplicates=”false”/>
I am not the expert when it comes to MSBuild. If you have a better way to handle this, you can add a comment below
As you may already know, some MSDN Subscriptions come with Windows Azure Credit that can be used for Dev and Test usage. As of October 24, 2013, you can get upto $150 to spend on your Windows Azure account. For more detail visit
In this post we will provision a new VM on Windows Azure with Visual Studio 2013 Ultimate. All steps and screen shots were done and taken on October 24, 2013.
Activate Your MSDN Windows Azure
Login to MSDN
Click on MSDN Subscriptions
Click on the Access benefits button
Click the Activate Windows Azure link
Windows Azure Portal
The previous steps should activate your Windows Azure account and take you the Windows Azure Portal. If you have already activated it before, you can go directly to www.WindowsAzure.com and sign in with your account
Select your subscription
Click on the Portal button
Click Virtual Machines link on the left and then click new on the bottom
From the Menu, click on the From Gallery menu item
I am selecting Visual Studio 2013 Ultimate on WS 2012 but feel free to select another VM image and click on the arrow at bottom right corner
Give the VM a name
Select the VM Size
Create a username and password (we will use that username to login using remote desktop)
Select a Cloud Service if you have one or choose Create a new cloud service
Give it a name
Select a location
I am leaving all fields as default value
Click the check mark at the bottom right
The VM now is being created, it took around 5 minutes to complete the provisioning of the VM
When provisioning is completed, you will get notified at the bottom of the screen
Click on the connect button
Double click the downloaded rdp file or open it from your browser
Enter your username and password and you