Some problems are really well hidden!

error ASPPARSE: Could not load type… when building a Web Deployment Project
 
Whilst trying to build a Web Deployment project for my ASP.NET 2.0 Web Application I kept getting this strage compiler error that referenced a page that did not exist in my project. After looking at numerous sites where a similar issue occurred I finally came across this one that solved my problem – http://mis.cellaneo.us/PermaLink,guid,33daa7bb-101b-45ce-a520-a60a1bfa062e.aspx
 
Basically, an old page that did exist in my web project but had not been completely deleted was still hanging around and needed permanently removing – it had been excluded from the project but not removed. Once I had deleted the ‘hidden’ file I was able to successfully compile my web deployment project.

Visual Studio Run Time Error and

Could not load file or assembly ‘AjaxControlToolkit’ or one of its dependencies. Access is denied
 
This one was a bit of an odd one! Whilst trying to debug an ASP.NET 2.0 Web Application from within VS 2005 I started to get these errors, but I couldn’t figure out what I had changed that caused my homepage to stop loading when it had been working fine 5 minutes before. I tried recycling the application pool, restarting Visual Studio and banging my head against the wall.
 
So I retraced my steps and realised that I had been amending the <identity> element in my web.config file. I had set the impersonation attribute to True and set the username and password elements accordingly. The issue was that the domain user I had specified was not being recognised on the development server, for some reason that I am still trying to phathom. To solve my problem I had a couple options;
  • Change the domain user so that they have more permissons.
  • Add the domain user to the local administrators group on the development server.

Having made the change and recycled the application pool for good measure, I was able to access my webpage once again.

Time to RTFM!

Displaying the list of recently used programs within Vista
 
Having rebuilt my desktop using Windows Vista SP1 (32-bit) I was getting a bit confused as to why my list of recently used programs where showing up empty?  I had made sure that the relevant option had been selected within the Start menu properties…
 
 
 Start Menu
 
But still nothing was appearing on my Start Menu and I wondered if I had found a bug in my SP1? It turns out that I should read the next page of the Vista manual. Click the Customize… button and Hey Presto!
 
 Start Menu - Customize
 
Under the Start menu size option my Number of recent programs to display was set to zero. No idea why it was set to that value and I dont remember setting it to zero, but once I had increased the value my recently used list of programs started showing up.

Using Integrated & Host Header values within IIS

Integrated Security & Host Headers within IIS
 
I recently had to create a new website on an intranet for one of our clients. I have done this task numerous times before and was not expecting too many problems. I had already configured the CNAME entry on the DNS server, created my virtual directories and updated the security settings for the site to use Integrated Security.
 
When I browsed to the home page for my site I was a little surprised to see a login dialog box asking for my username and password and then even more surprised when it would not recognise my details. I was presented with an IIS error page. I checked my settings for the security zone that the site was running under, in this case a Trusted Site. I made sure that the ‘Automatic login with current username and password’ option was set, double checked my website settings and also checked my web.config file.
 
Having exhausted all the obvious issues I decided it was time to surf the net for a suitable solution. Sure enough Microsoft came up trumps with a useful article Authentication may fail with "401.3" Error if Web site’s "Host Header" differs from server’s NetBIOS name http://support.microsoft.com/kb/294382 . After updating the server using the SetSPN tool I was able to surf to my new website without being promted for my credentials or getting IIS authorization errors.
 
 

Unknown Device in Device Manager

‘Unknown Device’ listed in the Device Manager
 
If you are having trouble getting Windows to recognise a piece of your hardware in the Device Manager and scanning for updates did not solve the problem then have a go at this solution;
 
  1. Open the Windows Device Manager
  2. Open the properties for the device in question.  Click the Details tab. Make sure that "Device Instance Id" is selected in the drop-down menu on this tab.
  3. You will then see a string like  this : PCIVEN_8086&DEV_2658&SUBSYS….
  4. In the example  above 8086 (after VEN_) is the Vendor ID and 2568 (after &DEV_) is the Device ID.
  5. Go to http://pcidatabase.com and type the appropriate values into the Vendor Search and/or Device Search using the Vendor ID and Device ID you have just found.
  6. Refer to the Vendors web site for the appropriate drivers for the device.