Wednesday, April 29, 2009

error ASPPARSE: Could not load type

Our Team Build server is falling over with the Web Deployment Project for a Web Application Project. It's producing messages along the lines of:

error ASPPARSE: Could not load type 'SomeControlInOurProject'

Aaron Hallberg has a good post that talks about this error. Team Build and Web Deployment Projects
I fixed the bug using the SourceWebPhysicalPath conditions.

Quick tip: Try searching for the first occurrence of "FAILED" in the BuildLog.txt to find where things are falling over.

Monday, April 27, 2009

Using the Nokia Map Loader on the 6121 Classic

I ran into a problem trying to use the Nokia Map Loader v2.0.2 with my new 6121 classic. I:

  • Installed the Nokia Mapping application on the phone.
  • Installed the Nokia Map loader on my PC
  • Connected the cellphone to the PC using the USB cable and set it to PC Suite mode

And then the Map Loader just sat there saying "Waiting for device".

It turns out the solution was the load some maps onto the cellphone through another source, such as the phones network connection. In my case I already had some map data on another cellphone, so I copied the entire contents of the cities folder over to the new cellphone.

Monday, April 20, 2009

Nelson .NET User Group Presentation - Introduction to SQL 2008 New Features - 20th of May

Upcoming presentation

Rob Hawthorne will be giving a presentation on Wednesday the 20th of May.

Title:
Introduction to SQL 2008 New Features

Abstract:
SQL Server 2008 delivers on Microsoft’s Data Platform vision by helping your organization manage any data, any place, any time. This new release builds on the great platform laid with SQL Server 2005, enhancing it with great new capabilities such as native support for spatial data, database encryption and compression and enhanced manageability through Policy Based Management, Powershell and the Resource Governor as well as many new great enhancements for Analysis Services and Reporting Services.
Come join us as we delve into the new features in SQL Server 2008 and the benefits they can bring to your organisation.

Useful links:

When:
Wednesday 20th May 2009
Gather at 11:50 am, starting at 12:00 pm.
Approximately 1 hour plus pizza afterward.

Where:
FuseIT Ltd,
Ground Floor,
7 Forests Rd,
Stoke,
Nelson
(Off Nayland Rd and behind Carters)

http://local.live.com/default.aspx?v=2&cp=-41.299774~173.236231&style=r&lvl=16&alt=-1000
or
http://maps.google.com/?ie=UTF8&om=1&z=17&ll=-41.299774,173.236231&spn=0.005239,0.010042&t=h

If you are parking on site, please use the parks marked FuseIT that are at the back of the site.

Giveaways:
A Windows Game

Catering: Pizza & Drinks
Door Charge: Free

RSVP to me if you are going to attend so I can guesstimate the food and drink requirements.

However, feel free to turn up on the day though if you can't commit at the moment.

Please feel free to invite anyone who may be interested in attending.

Tuesday, April 14, 2009

CLR Stored Procedure Static Exception

I was making a CLR stored procedure recently and had just added a Find Predicate to the code when the compiler gave me the message:

CREATE ASSEMBLY failed because method 'CreatProductTemplateSetTable' on type 'StoredProcedures' in safe assembly 'XyzAssembly.Database' is storing to a static field. Storing to a static field is not allowed in safe assemblies.

Turns out the find predicate isn't usable, but and Exists is. See Troubles with shared state and anonymous delegates in SQLCLR

Monday, April 6, 2009

Slingshot web hosting

Slingshot currently provide free web hosting with their internet services.

The section in their help page says:

If a domain name is required or for further support please email us at domains@slingshot.co.nz. Please allow for 2 working days for domain names to be setup.
There is no setup or connection fee for this service from Slingshot.

How do I setup and use my free Web hosting?

So I contacted them about how I could setup a CNAME entry to connect my domain to the hosting. Unfortunately they require full control of the domain to use it with their host. This is disappointing, but I guess it is "free" hosting.

Circumnavigating Pepin Island by kayak

Paddled out of Cable Bay and around Pepin Island with a friend last Sunday. The water was really clear in the bay. We timed the tides reasonably well and were able to paddle well into the inlet back to where we started from.

Wednesday, April 1, 2009

BadImageFormatException in IIS 7.0 on 64-bit Windows 2008

When hosting a WCF service in IIS 7 on my 64-bit Windows 2008 machine I got the following error:

System.BadImageFormatException: Could not load file or assembly 'APToolkitNET' or one of its dependencies. An attempt was made to load a program with an incorrect format.

To resolve this I had to set the "Enable 32-Bit Applications" ([enable32BitAppOnWin64]) to true on the applicable application pool.

See also:


I've also run into the same issue with the Application Pool for a Sitecore CMS 6 install.

Server Error in '/' Application.

Could not load file or assembly 'System.Data.SQLite, Version=1.0.48.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: Could not load file or assembly 'System.Data.SQLite, Version=1.0.48.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Prevent Skype using port 80 and causing IIS to throw a HRESULT: 0x80070020 Exception

The cmd NETSTAT -ano showed Skype (via the PID) was using port 80.

This was preventing IIS starting a local website with the message:

The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)

This was resolved in Skype by unchecking Tools > Options... > Advanced > Connection > "Use port 80 and 443 as alternatives for incoming connections"