The creators of Rational Dev write software programs every day and decided that writing down ideas as we came across them might save us some pain and time in the future. This is a collection of ideas from reading internet articles, books, commerical experience and attempted rational thinking. Hopefully you will join us and provide your own feedback on the ideas presented here.
I was getting Unauthorized Access and Access is denied in IIS Express or Development Web Server all of a sudden. Turns out it was because my source control made the directory read only and this seemed to be causing the problem. I also seemed to have to restart IIS for it to start working again.
I put a jqGrid on a page and the whole page was disabled. It turns out this was caused by missing the jquery.jqGrid/ui.jqgrid.css link.
If you get the error Could not load type from assembly 'System.Web profile when doing something like a unit test and trying to make a profile, you probably need to add the assembly name to your class declaration.
eg, using System.Web.Providers and the new inherits feature to specify your Profile:
<profile defaultProvider="DefaultProfileProvider" inherits="RationaldDev.Models.Account.MyCustomProfile, RationaldDev.Models">
If you get the error, "The installed version of 'NuGet Package Manager' is signed, but the update version has an invalid signature" after downloading a new version of NuGet, apparently the solution is to do the install inside Visual Studio via the, "Extension Manager" on the "Tools" menu.
I got “Bad Request (Invalid Hostname)” when trying to access a WebMatrix site from another machine on the network. One way around this was the change the URL in WebMatrix to the host machine name rather than localhost... but you have to run WebMatrix as administrator to have binding permission.
Also make sure your firewall port is open... but if you got “Bad Request (Invalid Hostname)” I imagine it already is.
A little rant due to frustration that I may add to if I remember:
If you are using Sharepoint or something where you need to have DLLs in the GAC for development you can put the following in the "Post-build event command line:" section of Build Events in the project settings:
if NOT $(ConfigurationName) == Release "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\gacutil.exe" /u "$(TargetName)"
if NOT $(ConfigurationName) == Release "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\gacutil.exe" /i "$(TargetPath)"
If you are changing your code and it is not updating, the reason could be that your development runtime is looking at the GAC version. This will keep them in sync.
Breakpoints will also stop working and step in debugging will stop working if the GAC and your development version are not in sync.
To make Visual Studio showing the event lightning bolt icon in properties window you need to switch to design view and back for the page. This happens even in Visual Studio 2010!
I did something silly without realising it for a while.
If you create a "click" or "command" event on something like a linkbutton and it is not firing, perhaps check that you are not getting any validation errors. A validation error will return to the page before your click or command event is fired.