Rick van den Bosch - Blog

... on software development, architecture and more

Browse by Tags

All Tags » .Net (RSS)
“The project location is not trusted”
After installing Windows 7 and Visual Studio 2010 on my laptop, I ran into the well-known message “The project location is not trusted”. I thought all I had to do was follow the instructions in this MSDN article to get my development share to be trusted...
Fix available for IE8 asp:menu problem
I just read an interesting article on Bertrand Le Roy's blog. The most important information: It so happens that the menu control is making a bad assumption on what the default value for z-index should be. We debated this at length with the IE team...
In this mode, command line arguments will not be passed to the executable
When trying to pass some command line arguments to a Console Application, I got the following message: "The current project settings specify that the project will be debugged with specific security permissions. In this mode, command line arguments...
HowTo: Add a body onload script to a page that uses a MasterPage
When you use a MasterPage to define the design of your website, you might come across the problem that there is no body element in a web content form. This can be a problem when you want to add an onload script to a specific page. You could of course...
Nice new addition to ASP.NET
Scott Guthrie posted about a cool new ASP.NET server control: Chart. It can be used for free with ASP.NET 3.5 to enable rich browser-based charting scenarios. Read more over here: http://weblogs.asp.net/scottgu/archive/2008/11/24/new-asp-net-charting...
Inline wrappers & Response.Redirect() == Error
While developing a page that was to be used through an inline wrapper, I got an error: "Validation of viewstate MAC failed". This error can usually be resolved by disabling event validation , viewstate encryption or viewstate for the MAC . In...
An inline wrapper and having too much on your head
We developed an ASP.NET page (A) to be wrapped in an existing PHP page (B) using an inline wrapper. After a few days in which both pages displayed nicely, our page (A) suddenly got displayed twice inside the existing page (B).  And even weirder was...
StyleCop v4.3 now available
StyleCop version 4.3 was released last tuesday. A short summary of what version 4.3 brings us: Various bugfixes, including fixes for VS integration issues Rules documentation is included and integrated into VS "Show Error Help" New rules, see...
Running code analysis on a custom stsadm command gives errors CA0052 and CA0055
When you want to implement a custom stsadm for SharePoint, all you realy have to do is implement the Microsoft.SharePoint.StsAdmin.ISPStsadmCommand interface. Because I develop on a machine with no SharePoint installed, I (only) copy the assemblies I...
A not so clear Visual Studio code analysis message (CA1308)
While writing a custom stsadm command for SharePoint (more on that in a future post) and having to do something based on the command the user typed in, I used ToLower( CultureInfo.InvariantCulture ) on the command string to be able to check without the...
The absolute minimum every software developer ...
One of the posts that is being read quite frequently over here is HOWTO: Encode a password using MD5 in C# (or: howto calculate the MD5 hash for a string) . One of the (many) reactions to that post was from one Simucal, stating: Also, to the original...
A scenario where LINQ is too dynamic (answered)
The situation I talked about in my previous post had one very big issue: LINQ sometimes just is too dynamic... ;) The fact that I changed the value for the Ranking property for each SpecificObject that got matched, made the primary LINQ query have a different...
A scenario where LINQ is too dynamic
While developing an algorithm to match preferences to possibilities, I had to sort a generic list of a specific object type (SpecificObject). The first x objects would be matched, the rest would be excluded because of the number of available places. To...
Unable to connect publishing custom string handler ...
After developing a custom Web Service to be hosted in SharePoint (based on this HowTo article on MSDN ) and deploying it on a testing environment, I got some entries in the EventLog over there, stating: " Unable to connect publishing custom string...
The number of fractional digits is out of range?
After extending a textbox with a NumberUpDownExtender, which comes with the AJAX Control Toolkit, I recieved the error "the number of fractional digits is out of range". This happened when debugging my web application and using the extender...
More Posts Next page »