The Problem: I recently built a small web app that tracked downloads. Part of that was using the referring page. Somehow, for some reason, the url was not being sent along with the request.
Read more on How to fix problems with asp.net, C# and Request.ServerVariables["HTTP_REFERER"]…
Popularity: 1% [?]
The Problem: You attempt to create a new Coded User Interface Test in Visual Studio 2010, and you get the following error:
The following package failed to load: C:Users[File Path Goes Here]Microsoft.VisualStudio.TestTools.UITest.Extension.IE.dll. Coded UI Test is now in an inconsistent state. Remove this package and restart Visual Studio to work with Coded UI Test.
The Cause: For whatever reason, Visual Studio does not copy Microsoft.VisualStudio.TestTools.UITest.Extension.IE.dll into the solution, and but it thinks it did.
Read more on How to fix problems with Coded User Interface Tests…
Popularity: 1% [?]
I pieced all of this together from various sources online, so the code is a bit rough, but here it is:
1. Create a partial razor view, call it _NotifyBar.cshtml, it contains this:
Read more on How to do a cool flash notification message in asp.net mvc 3 in 6 easy steps…
Popularity: 2% [?]
The Problem: For whatever reason, your website is displaying a white screen with “Service Unavailable” and nothing else.
The Cause: There could be many causes, but the one I just discovered was that the application pool had shut down for no good reason.
Read more on How to Fix the “Service Unavailable” problem in IIS…
Popularity: 1% [?]
The Problem: You need to put a relatively complicated link (i.e. the link has more than one parameter) into an asp.net gridview column.
The Cause: No cause really, you just need to know the exact syntax
The Solution:
Read more on How to create a asp.net gridview hyperlink field with multiple querystring parameters…
Popularity: 2% [?]
The Problem: You attempt to use the super-cool new charting features in asp.net mvc 3, and all you get is compilation errors
The Cause: You are using the old school System.Web.UI.DataVisualization.Charting.Chart namespace
Read more on How to fix problems with asp.net mvc 3 charts and razor pages…
Popularity: 2% [?]
photo © 2010 Zyllan | more info ia: Wylio) The Problem: You have the standard asp.net DetailsView control (one of many on that page) and your custom validator refuses to work. So do all of your standard validators now that you think about it. Your command button looks like this:
Read more on How to fix the asp.net DetailsView data validation problem…
Popularity: 1% [?]
photo © 1918 National Library of Scotland | more info (via: Wylio)The Problem: You need to copy a file from one location on the server to another and cannot remember how.
The Cause: It is too short and simple, and easily forgotten
Read more on How to fix the copy file problem in C#…
Popularity: 1% [?]
photo © 2008 Justin Gurbisz | more info (via: Wylio) The Problem – you have several asp.net web controls (.ascx files) in your website project and for no obvious reason you suddenly get the error “Unable to cast object of type ‘YourWebControlName_ascx’ to type ‘YourWebControlName_ascx’.” You recompile and the program works, then stops working. You recompile and it works again, then it stops working, ad infinitum, but the working times become less frequent, and eventually the site stops working at all.
Read more on How to fix the “Unable to cast object of type” problem…
Popularity: 1% [?]
The Problem: You are trying to access a sql server database from your new ASP.net 4.0 site and get the error Login failed for user ‘IIS APPPOOL\ASP.NET v4.0′ error in IIS7 and Sql Server 2008 when logging in with the integrated security.
Popularity: 4% [?]