- Follow MSDev.pro blog on WordPress.com
Follow us
-
Recent Posts
- Integrating and Testing a Secured SOAP Client with Dependency Injection
- Securing a SOAP Client with OAuth2 in ASP.NET Core (WCF Behaviors)
- Calling a Secured SOAP Service from ASP.NET Core WebAPI (WSDL+ WCF)
- Evolving ZipMatch — from a simple function to a LINQ-style implementation
- Using an F# DSL to generate C# code
Categories
Recent Comments
Archives
Category Archives: Development
How to describe object state
Let’s say that we’re developing an application to manage invoices. Invoices will be created, modified, sent, (hopefully) paid or rejected, … Depending on the stage that an invoice is in, we can perform different actions on it. For example: it … Continue reading
Posted in Analysis, Codeproject, Development, OOAD, UML
Tagged Activity Diagram, State diagram
1 Comment
How to obtain the value of the selected radio button
Here is a simple way to get the value for the selected button in an html form, using jquery: <form> <input type=”radio” name=”status” value=”1″ /> Free <br /> <input type=”radio” name=”status” value=”2″ selected /> Reserved <br /> <input type=”radio” name=”status” value=”3″ /> Not available <br /> … Continue reading
Could not load file or assembly ‘System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’
When creating a new MVC5 application using VS2013 I got the following error: Could not load file or assembly ‘System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception … Continue reading
Posted in .Net, Development, MVC, MVC5, Web API
2 Comments
“Object reference not set to an instance of an object” when building my cloud project
In my Azure project I have a worker role and a wcf role. When compiling it failed (with no obvious reason) with this message in the output window: Error: Object reference not set to an instance of an object There … Continue reading
Posted in .Net, Azure, Development
Leave a comment
XslLoadException: The type or namespace name ‘SecurityRulesAttribute’ does not exist in the namespace ‘System.Security’ (are you missing an assembly reference?)
While porting a project from .Net 3.5 to .Net 4 we got this weird error. The error occurs when loading an XSLT in memory. Here is the failing piece of code (simplified): private static XslCompiledTransform ReadXslt(string fname) { XslCompiledTransform xsl … Continue reading
Posted in .Net, Development
Tagged Extension object, SecurityRulesAttribute, XslLoadException
1 Comment
Advanced logging in IIS 7.5
In the standard installation of IIS 7.5 it is not possible to log the incoming requests, not the outgoing responses. The reason for this is probably that Microsoft wants to keep the attack surface as small as possible. But I … Continue reading
Posted in Computers and Internet, Development, IIS, Logging
Tagged 80070032, IIS 7.5, Logging
2 Comments
Rediscovered the Debug attributes
There are 2 attributes that can easily be applied to your classes / methods to modify the behavior at debugging time. The attributes don’t change the runtime behavior of your code. [DebuggerDisplay] This attribute defines how you’ll see a type … Continue reading
FuslogVw–debugging assembly loading
We’ve all had it before: referencing some libraries, recompiling the project and then the variation on the DLL hell: the assembly hell. Suddenly one of your assemblies (or on of its dependent assemblies) doesn’t load anymore. Debugging this can be … Continue reading
WCF – use a file in the App_Data folder
If your web service needs information from some external files, a logical place for these files is the App_Data folder. To get the fysical path of the file in a WCF service you can use this code: RolemappingPath = HostingEnvironment.MapPath(@”/App_Data/RoleMapping.xml”); … Continue reading
Posted in Development
Leave a comment