lamp

March 2007 - Posts

FindControl Nested... or whatever you can call it
31 March 07 04:20 PM | Frederick.Chapleau | with no comments

I have search a little to find out a black box function that was doing a findcontrol recursively. I found a blog that had a working one, but I wanted a more generic one (yes, I'm gloden plating now.)

So I decided to code it, and share it.

public Control FindControlRecursive(string id)
{
return FindControlRecursive(this.Controls, id);
}

private Control FindControlRecursive(ControlCollection controls, string id)
{
foreach (Control c in controls)
{
if (c.ID == id) { return c; }
else
{
Control toReturn = FindControlRecursive(c.Controls, id);
if (toReturn != null)
return toReturn;
}
}
return null;
}

-f.

Filed under:
enterpriseserver or enterpriseservercore
30 March 07 02:38 PM | Frederick.Chapleau | with no comments

When I tried to install the LongHorn CTP, one of the first questions that the installer was asking was to choose between enterpriseserver or enterpriseservercore...

After calling the Google Toolbar and found nothing, I called my second brain extension, wikipedia and found an extensive "Summary" about Longhorn. The answer was there...

Perhaps the most notable new feature of Server "Longhorn" is a new variation of installation called Server Core. Server Core is a significantly scaled-back installation where no graphical shell (explorer.exe) is installed, and all configuration and maintenance is done entirely through the command-line windows, or by connecting to the machine remotely using Microsoft Management Console.

http://en.wikipedia.org/wiki/Windows_Server_%22Longhorn%22

Cool, now Windows Server 2008 will realy copy linux server installations.

-f.

Filed under: ,
Keyset does not exists
29 March 07 12:00 PM | Frederick.Chapleau | with no comments

When calling the CreateSignature Method on the SHA1 PKCS #1 Signature Formatter, I got the "Keyset does not exist."

This was caused after converting a 1.1 c# .NET web application to 2.0. The problem is that all the information that I could find were related to the Cerficate Store security and I was using a private SNK file that was just an embedded resource.

BUT the problem was not related! SN, that I was using to generate the Key Pair changes between both versions and the new format was not able to be read by the Framework. The solutions was simply to regenerate the certificate with the SN from .NET framework 1.1.

CORRECTION: The problem is still produced even if I thinked that it was the fault of Vista, .NET 2.0 etc. Maybe the new SNK generator, generates differents Keys when the 2.0 .NET framework is installed, I did not tried on a XP machine.

-f.

Filed under:
Search not working on Community Server
19 March 07 10:20 AM | Frederick.Chapleau | with no comments

A quick search on Google resulted in a post on another blog that was using ... community server and that was saying:

Migrated from 1.1 to 2.0?

yes, that was the solutions:


TRUNCATE TABLE cs_SearchBarrel
TRUNCATE TABLE cs_SearchIgnoreWords
UPDATE cs_Posts SET IsIndexed =0

-f.
Filed under:
Trying to install ATI drivers on Linux
09 March 07 06:25 PM | Frederick.Chapleau | with no comments

I was trying to install the ATI proprietary drivers on linux, and a missing dependency in FC6 was stopping me with the libexpat.0.1

 Google Helped a little, and linuxforum.org did the rest. The solutions: Install the lib!

Here is the location:

ftp://rpmfind.net/linux/trustix/releases/trustix-3.0.5/i586/trustix/rpms/expat-libs-1.95.8-6tr.i586.rpm

 

-f. 

Filed under:
NuPIC Platform released for the community
07 March 07 05:56 PM | Frederick.Chapleau | with no comments

For those who want to go with the next generation of AI, look a the new released SDK for HTM computing: Numenta Platform for Intelligent Computing (NuPIC).

http://www.numenta.com/for-developers/software.php

The platform, the tools and the complete algorythm. The software development kit from Numenta requires a Linux distribution that includes Python and the standard development plaform.

I think that my computer will now be alive ;) 

-f.

Compacting VHD, the best way
06 March 07 07:35 PM | Frederick.Chapleau | with no comments

Compacting rely on a couple of things, in virtual server.

Pablo, created a receipe on how to do it.

-f.

Filed under:
Virtualizer Convert from vmdk to vhd
06 March 07 05:24 PM | Frederick.Chapleau | with no comments

VM Toolkit is giving away a vmdk to vhd, VMWare Server to Microsoft Virtual Server converter.

To download it: http://vmtoolkit.com/files/default.aspx

-f.

Filed under:
.NET 3.0 and its foundations
04 March 07 02:15 PM | Frederick.Chapleau | 1 comment(s)

.Net  3.0 is released, since a while, introducing 3 new foundations, and the new CardSpace software.

.Net 3.0 is based on .Net 2.0 and it's just an extension to it... see more @

http://www.netfx3.com/blogs/news_and_announcements/archive/2006/11/06/.NET-Framework-3.0-has-been-released_2100_.aspx

-f.

error MSB6006: "sgen.exe" exited with code 1.
04 March 07 11:50 AM | Frederick.Chapleau | with no comments

A quick link: sgen need permission when outputing on a network share... but only in release configuration.

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=595134&SiteID=1

And a solution was found by Marco Mendonça

Just went to "WebSite Properties"->"Build" and selected "Off" in the "Generate serialization assembly" (in the "Output" section).

-f.

Filed under:
AJAX.Net, .Net 2.0 and a few changes from the Beta version
04 March 07 01:58 AM | Frederick.Chapleau | with no comments

The first problem that I had was that the TargetControlId was not in the properties list of the new AJAX Control Kit, when instanciated serverside. I found a few posts, but without success.

After diving a little, I looked at the MaskedEditExtender and saw that it was using the Base Extender introduced by AJAX.NET.

I then realised that the bug was caused by the Beta Version of AJAX.Net (code named Atlas) that was using the Microsoft.Web.UI namespace and is now replaced by System.Web.UI.

TargetControlID

System.Web.UI.ExtenderControl   System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

I added references to the System.Web.Extensions, and System.Web.Extensions.Design assemblies, and solved the problem

-f.

Filed under:
Password field cleared on PostBack
04 March 07 12:30 AM | Frederick.Chapleau | with no comments

Yes, the password field is automaticaly cleared on postback, even in .NET 2.0. The solutions in to bypass the framework, and add the attribute using the Attributes collection on the control.

txtPassword.Attributes.Add("value", txtPassword.Text);

-f.

Filed under:
SQL 2005 Database Diagram
03 March 07 09:33 AM | Frederick.Chapleau | with no comments

Database diagram support objects cannot be installed because this database does not have a valid owner. To continue, first use the Files page of the...

This is because of the compatibility level in SQL Server, after (I guest) upgrading from SQL 2000...

1. Right Click on your database, choose properties
2. Goto the Options Page
3. In the Dropdown at right labeled "Compatibility Level" choose "
SQL Server 2005(90)"
4. Goto the Files Page
5. Enter "sa" in the owner textbox.
6. Hit OK

-f.

Filed under: