Some notes on software development... RSS 2.0
# Sunday, 22 May 2011

To stop HTTP parsing exceptions being thrown you can set useUnsafeHeaderParsing=true

image

From MSDN:
image

Links:
HttpWebRequestElement.UseUnsafeHeaderParsing Property

Sunday, 22 May 2011 16:01:05 (GMT Standard Time, UTC+00:00)  #    -
C#
# Tuesday, 17 May 2011

This annoying error gets raised when you are using Visual Studio T4 templates and the template file has a space after the final #> line:

image

All you need to do is remove the line.

Tuesday, 17 May 2011 21:56:00 (GMT Standard Time, UTC+00:00)  #    -
Visual Studio
# Thursday, 10 February 2011

GoSquared have an amazing set (2400 flags) of top quality flags of all shape and size icon sets:

240+ Flags in any size you need for your next project

If you use them for commercial apps they ask for $40 (at least) donation.

Thursday, 10 February 2011 23:44:32 (GMT Standard Time, UTC+00:00)  #    -
Web Dev
# Wednesday, 19 January 2011

When you install the microsoft-web-helpers package to a standard ASP.NET MVC 3 application it does not run first time due to some missing DLLs.

The install package:
image

The error:
image

To fix this error the project needs to reference the WebMatrix.Data.dll and WebMatrix.WebData.dll from the C:\Program Files\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\Assemblies folder.

image

In Web.config add the following lines to the System.Web\Compilation\assemblies location:

<add assembly="WebMatrix.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="WebMatrix.WebData, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

Like so:
image

Running (F5) the basic MVC application with the microsoft-mvc-helpers package now works:

image

You can now use the Facebook, Twitter, Gravatar, Bing, Video, LinkShare etc helpers Smile

Wednesday, 19 January 2011 20:30:23 (GMT Standard Time, UTC+00:00)  #    -
ASP.NET MVC
Navigation

Sign In
Extras
Statistics
Total Posts: 116
This Year: 0
This Month: 0
This Week: 0
Comments: 36
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2018
Hadrian Phillips

All Content © 2018, Hadrian Phillips
DasBlog theme 'Business' created by Christoph De Baene (delarou)