- Follow MSDev.pro blog on WordPress.com
Follow us
-
Recent Posts
Categories
Recent Comments
Archives
Author Archives: Gaston
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
CLR trigger – External access
By default when you create a CLR trigger, VS 2008 will deploy it as a SAFE trigger: CREATE ASSEMBLY HelloWorld FROM @SamplesPath + ‘HelloWorld\CS\HelloWorld\bin\debug\HelloWorld.dll’ WITH PERMISSION_SET = SAFE; This is good, you always want to start with the minimal … Continue reading
Posted in Development
Leave a comment
CLR Trigger
Creating a CLR trigger couldn’t be easier: In VS 2008 Create a new SQL Server Project, then create a new trigger (right click project name, add, trigger. Fill in the attribute’s properties: [Microsoft.SqlServer.Server.SqlTrigger(Name = "PackageDeleteTrigger", Target = "Packages", Event = … Continue reading
Posted in Geen categorie
Leave a comment
Windows 7 SendTo
When you rightclick on the start button and then choose “Explorer”, in previous versions of Windows this would take you to your own user profile folder. This contains a folder called “SendTo”, where you can (for example) add a shortcut … Continue reading
Posted in Geen categorie
1 Comment