Monday, 22 June 2009

WSE 2 configuration error

If you have received an error similar to the one below, just make sure you have installed WSE 2 on the target server!!!

Download WSE 2 from here: http://www.microsoft.com/Downloads/details.aspx?familyid=1BA1F631-C3E7-420A-BC1E-EF18BAB66122&displaylang=en

Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

Parser Error Message: The 'type' attribute must be set to a valid type name.

Source Error:

Line 79:
Line 80:
Line 81:
Line 82:

Line 83:

VS 2005 CS0030: Cannot convert type Login

If you are getting an error like the one below then ASP.NET then checkout http://www.groupsrv.com/dotnet/about147910.html

If the site has been published and has been marked as updateable and you have a class in the application named login then it can result in the error below, the simplest resolution is to rename your class.

Cannot convert type 'ASP.login_aspx' to 'System.Web.UI.WebControls.Login'

Event Type: Warning Event Source: ASP.NET 2.0.50727.0 Event Category: Web Event Event ID: 1310 Date: 11/7/2005 Time: 10:43:16 AM User: N/A Computer: DEVPC01 Description: Event code: 3007 Event message: A compilation error has occurred. Event time: 11/7/2005 10:43:16 AM Event time (UTC): 11/7/2005 4:43:16 PM Event ID: 6c82372492fa42dbbbd4a0f5b794ed8d Event sequence: 40 Event occurrence: 7 Event detail code: 0

Exception information: Exception type: HttpCompileException Exception message: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\deleted\3ee2c232\4383868\App_Web_login.aspx.cdcab7d2.pfd6ysg8.0.cs(118): error CS0030: Cannot convert type 'ASP.login_aspx' to 'System.Web.UI.WebControls.Login'

Tuesday, 9 June 2009

Google Maps - IE 8 - Click Position


The position (point) returned by the click event on Google Maps in Internet Explorer 8 is incorrect - at least in some configurations.

The recommendations I have found so far are to remove the DOCTYPE tag or to add in the compatibility meta tag for IE, to be honest I'm not sure which is worse!!

Discussed here:
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/9946215e23a3bdf2

Microsoft explanation of the new compatibility meta tag:
http://msdn.microsoft.com/en-gb/library/cc817574.aspx

Monday, 8 June 2009

Open a form in C# without focus

From .NET 2.0 onwards, to show a new form without the form taking focus:


protected override bool ShowWithoutActivation
{
get
{
return true;
}
}

Override this property in your form code and it should do the trick for you.