The Problem: You want to use the standard European Date Format, DD/MM/YYYY instead of the American Date Format MM/DD/YYYY. You change the “Format” feature of the CalendarExtender to “DD/MM/YYYY”, but then the CompareValidator (which you’re using to ensure valid dates) calls out that you have entered an invalid date.
Popularity: 1% [?]
The Problem: You are using an asp.net PlaceHolder control and populating it with a collection of custom web controls. You then get “Null Reference Exception” and “Are you missing an assembly?” errors. Your code looks much like this
Read more on How to fix problems with the placeholder control and custom web user controls…
Popularity: 1% [?]

The Problem: You are trying to create an ASP.net GridView that automatically populates on any dataset, as well as automatically sorts, but for some reason whenever you click the headers to sort the GridView, the data doubles.
Read more on How To Fix Column Doubling in an ASP.net GridView – with Code Sample…
Popularity: 1% [?]
I have no idea how this trick has eluded me for so long, but it is possible to use two classes on the same DOM object. For example to combine a class called “TopNav” and a class called “SelectedNav” all you have to do is call them both with code like this
Read more on CSS trick – how to use two classes on a single DOM object…
Popularity: 1% [?]
I recently had the need to create a Microsoft Word document from a template. I initially tried using Office Web Components and Interop but all that really wasn’t worth the trouble. I wound up doing global replacements in the html of html Here is how I did it:
Read more on A simple way to create a Microsoft Word document from a template in Asp.net/C#…
Popularity: 2% [?]
The Problem: You try to access your web service on IIS 7 and you get the following error
The service cannot be activated because it requires ASP.NET compatibility. ASP.NET compatibility is not enabled for this application. Either enable ASP.NET compatibility in web.config or set the AspNetCompatibilityRequirementsAttribute.AspNetCompatibilityRequirementsMode property to a value other than Required.
at System.ServiceModel.Activation.HostedAspNetEnvironment.ValidateCompatibilityRequirements(AspNetCompatibilityRequirementsMode compatibilityMode) at System.ServiceModel.Activation.AspNetCompatibilityRequirementsAttribute.System.ServiceModel.Description.IServiceBehavior.Validate(ServiceDescription description, ServiceHostBase serviceHostBase) at System.ServiceModel.Description.DispatcherBuilder.ValidateDescription(ServiceDescription description, ServiceHostBase serviceHost) at System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost) at System.ServiceModel.ServiceHostBase.InitializeRuntime() at System.ServiceModel.ServiceHostBase.OnBeginOpen() at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open() at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
Popularity: 3% [?]
The Problem: You want to make your website all SEO friendly by creating a single, canonical url. For example, if someone types in http://www.stronico.com, you want them to be redirected to http://stronico.com (Google likes it this way). You do some research and discover that all of the default code and documentation for handling canonical Urls in IIS 7 uses web.config files and the URL Rewrite application program. All is well and good so far, but what if you use SSL? The stock code will always redirect you to http://stronico.com/Signup/ even if the original url was https://stronico.com/Signup/ (note the https). Continue reading “How to Fix: Canonical Urls with IIS 7′s Url Rewrite feature for https” »
Read more on How to Fix: Canonical Urls with IIS 7′s Url Rewrite feature for https…
Popularity: 2% [?]
The Problem: You make changes to your Silverlight Application, but you do not see it reflected when you debug or run the solution.
The Cause: While the web project portion of the solution is being compiled and run, the Silverlight project is not being built. This just happened to me recently. Visual Studio crashed and somehow the Silverlight project portion of the solution decided to remove itself from the build list.
Read more on How to fix updating problems in your Silverlight application…
Popularity: 1% [?]
The Problem: You upload your wonderful Silverlight application to a new server and begin to get all sorts of strange errors, most notably something like this
Message: Unhandled Error in Silverlight 2 Application An exception occurred during the operation, making the result invalid. Check InnerException for exception details. at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
at StronicoMain.ServerUtil.AddressTypeListCompletedEventArgs.get_Result()
at StronicoMain.Page.proxy_AddressTypeListCompleted(Object sender, AddressTypeListCompletedEventArgs e)
at StronicoMain.ServerUtil.ServerUtilClient.OnAddressTypeListCompleted(Object state)
Line: 1
Char: 1
Code: 0
URI: http://www.servername.com/Silverlight.js
Continue reading “How to fix strange errors in silverlight web services” »
Read more on How to fix strange errors in silverlight web services…
Popularity: 4% [?]
The Problem: You have a brand new Windows 2008 server and you are testing your web application and trying to send an email. Every time you try to send an email via the web application you get the following error
Popularity: 9% [?]