netsh interface tcp set global autotuninglevel=highlyrestricted
http://blog.tmcnet.com/blog/tom-keating/microsoft/remote-desktop-slow-problem-solved.asp
netsh diag gui
http://www.cezeo.com/tips-and-tricks/netsh-network-administration/
Tuesday, February 1, 2011
Tuesday, January 25, 2011
Finding and Installing a NuGet Package Using the Package Manager Console
- get-package –remote -filter xxx
- install-package xxx
http://nuget.codeplex.com/wikipage?title=Finding%20and%20Installing%20a%20Package%20Using%20the%20Package%20Manager%20Console
Friday, January 7, 2011
Simulating POST with Fiddler
- From the drop down on "Request Builder" select POST
- add to "Request Headers" “Content-type: application/x-www-form-urlencoded”
- Add to "Request Body" the parameter to pass to POST (ex username=jason123&email=123231&fname=jason)
Tuesday, December 28, 2010
W
WebUtility Class
.NET Framework 4
Provides methods for encoding and decoding URLs when processing Web requests.
| Name | Description | |
|---|---|---|
| HtmlDecode(String) | Converts a string that has been HTML-encoded for HTTP transmission into a decoded string. | |
| HtmlDecode(String, TextWriter) | Converts a string that has been HTML-encoded into a decoded string, and sends the decoded string to aTextWriter output stream. | |
| HtmlEncode(String) | Converts a string to an HTML-encoded string. | |
| HtmlEncode(String, TextWriter) | Conver |
Monday, December 13, 2010
ASP.NET MVC + Entity Framework: The type or namespace name 'Entity' does not exist in the namespace 'System.Data'
add
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
to Web.Config
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
to Web.Config
Using the Entity Model in a Console Application
Using the Entity Model in a Console Application
We will now use the model we created above, in a Console Application.
Step 1: Open Visual Studio 2010 > File > New Project > In the templates, select Windows > Console Application. Make sure the target framework is ‘.NET Framework 4.0’. I have called the application ‘ConsoleAppUsingMyModel’. Click Ok.
Step 2: Let us now add a reference to the model we created earlier, in this console application. Right click the project > Add Reference > Browse Projects Tab and browse to the MyEntityModel project. Go to the 'bin' folder > Release and select the MyEntityModel.dll as shown below. Click OK.
Also make sure you add a reference to the System.Data.Entity, this time using the .NET tab
Step 3: In this final step, our console application needs to have the information about the connection string which contains the metadata and details of the database connection.
Note: If you skip this step and directly query the model, you will get an error The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.
Now you can either create your own .config file in this project and add the connectionstring entry of your model or simply copy the App.config file that you created in the MyEntityModel project, in your Console App project. We will adopt the simpler way. Right click the project > Add Existing Item > Go to the MyEntityModel project and add the App.config file.
Step 4: Once the steps shown above are completed, you now need to query against the model
Friday, December 10, 2010
Sqlite & Entity Framework 4
To get it working, you need to include the following code in your web.config file:
1.<startup useLegacyV2RuntimeActivationPolicy="true">2.<supportedRuntime version="v4.0" />3.</startup>And then everything magically works.
Subscribe to:
Posts (Atom)