- 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
Author Archives: Gaston
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
Could not load file or assembly ‘System.EnterpriseServices.Wrapper.dll’
I had this error when running a .Net 3.5 app that is using a DB2 connector on a Win XP SP3 machine. The application has always worked until today and is in no way using the referenced assembly (just executing … Continue reading
Posted in .Net, Assembly
Tagged EnterpriseServices, FileNotFoundException, solved, Wrapper
2 Comments
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
WCF – Issue a request over https with custom header
In my current project I need to call a web service over https. Security is implemented by using a custom header (old school). To support this in WCF follow the following simple steps: In the configuration file (app.config) make the … Continue reading
Posted in Development
Leave a comment
LINQPad tool
Perfect tool to try out all your LINQ queries! Needn’t say more! http://www.linqpad.net/ Technorati Tags: LINQ,LINQPAD,SQL
Posted in Geen categorie
Leave a comment
CalendarExtender and Globalisation
By default the CalendarExtender isn’t aware of the Globalisation settings. Example: <asp:TextBox ID="txtFrom" runat="server" Width="80px"></asp:TextBox><cc1:CalendarExtender ID="txtFrom_CalendarExtender" runat="server" TargetControlID="txtFrom" ClearTime="True"></cc1:CalendarExtender> Web.config: <system.web> [ … ] <globalization uiCulture="nl-BE" culture="nl-BE" /> </system.web> This will still not use the nl-BE culture. To get it … Continue reading
Posted in Geen categorie
Leave a comment