Around and About .NET World

Il blog di Marco Minerva
posts - 1671, comments - 2232, trackbacks - 2135

My Links

News

Contattami su Live Messenger:


MCTS: Windows, Web, Distributed Applications & SQL Server

MCPD: Enterprise Applications

Tag Cloud

Archives

Post Categories

Links

mercoledì 2 maggio 2007

Un po' di chiarezza sulla licenza LGPL

Ammetto di non essere molto esperto in materia di licenze software... In particolare non avevo molto chiara la politica di distrubuzione del codice sorgente di librerie che sono rilasciate in LGPL e che io utilizzo nei progetti .NET. Oggi ho trovato questo post che finalmente mi ha chiarito le idee smile_wink.

posted @ lunedì 1 gennaio 0001 00:00 | Feedback (0) | Filed Under [ Tutto & Oltre :-) ]

Accedere ad un database MySQL da Compact Framework

L'ultima versione del Connector/NET di MySQL, la 5.1, supporta anche il .NET Compact Framework 2.0. Oggi ho provato ad utilizzarla, quindi ho aggiunto al mio progetto il riferimento alla libreria MySQL.Data.CF.dll e ho tentato di aprire una connessione verso un database remoto... Purtroppo nel momento di eseguire il metodo Open dell'oggetto MySqlConnection viene restituita la seguente eccezione:

System.MissingMethodException: Can't find PInvoke DLL 'kernel32.dll'

Un'occhiata allo Stack trace mostra che il problema risiede nel costruttore della classe MySql.Data.Common.Semaphore. A questo punto ho disassemblato la classe incriminata con Reflector e, così, ho scoperto la causa del problema, ovvero le seguenti dichiarazioni:

[DllImport("kernel32.dll", SetLastError=true)] private static extern IntPtr CreateSemaphore(ref SECURITY_ATTRIBUTES securityAttributes, int initialCount, int maximumCount, string name); [DllImport("kernel32.dll")] private static extern bool ReleaseSemaphore(IntPtr hSemaphore, int lReleaseCount, IntPtr lpPreviousCount);

Che non sono corrette perché la libreria kernel32.dll non fa parte della piattaforma Windows Mobile.

Per farla breve, queste funzioni vengono richiamate quando si utilizza il Connection pooling (che è l'impostazione predefinita). Di consenguenza, in attesa che il codice venga corretto, per utilizzare MySQL da .NET Compact Framework è necessario disabilitare il pooling, specificando il parametro

pooling=false

Nella stringa di connessione che viene passata all'oggetto MySqlConnection.

posted @ lunedì 1 gennaio 0001 00:00 | Feedback (3) | Filed Under [ .NET Compact Framework ]

Windows Vista Media Center SDK refresh

Come si legge qui, è stato recentemente rilasciato un aggiornamento per il Windows Vista Media Center SDK:

    • Added several previously standalone MSDN technical articles and blog posts to the help documentation CHM file
    • The MCML Preview Tool Launcher power toy is now included as part of the SDK installation process.  If you previously had the standalone MCML Preview Tool Launcher power toy installed on your system, the new version of the SDK will automatically upgrade it
    • Modified the Q and Z setup projects to use WiX v3.0 instead of WiX v2.0
    • Added an additional shortcut for the MCML Preview Tool (McmlPad) to the Windows Vista Start Menu.  The new shortcut launches McmlPad inside of Windows Media Center by using the ehshell.exe /entrypoint command line switch.  The other shortcut launches McmlPad as a standalone application like it did before
    • Added registry files (*.reg) to the \Tools folder to make it easier to enable and disable application debugging and the application error details button.  The registry value to enable the error details button is set by SDK setup, but the registry file can be useful when attempting to debug application failures on systems that do not have the SDK installed
    • Added C# source code (.cs) files for the samples in McmlSampler that use code-behind
    • Made a few minor fixes and tweaks to the Z sample application

Per il download, clic qui (richiede la verifica del sistema operativo).

posted @ lunedì 1 gennaio 0001 00:00 | Feedback (0) | Filed Under [ Windows Related Updates & Service Pack ]

ASP .NET Futures

Giornata ricca di annunci... Ora è la volta di ASP.NET Futures:

The Microsoft ASP.NET Futures May 2007 (“Futures”) release contains an early developer preview of features providing a wide range of new functionality for both ASP.NET and Silverlight™. The functionality in the Futures release includes early experimental versions of features currently being considered for future versions of ASP.NET and the .NET Framework. The Futures releases assume prior knowledge of the core features of ASP.NET including the previous ASP.NET AJAX Futures January CTP. Features in this release include ASP.NET Silverlight server controls, new functionality for ASP.NET AJAX Extensions, dynamic data controls, enhancements to dynamic languages, and more.

Clic qui per il download.

posted @ lunedì 1 gennaio 0001 00:00 | Feedback (0) | Filed Under [ ASP .NET Updates & Service Pack ]

Microsoft Codename "Astoria"

The Microsoft Codename "Astoria" CTP toolkit enables developers to create and consume Data Services for the Web. These services expose application data over a simple HTTP interface that can be consumed by AJAX-based web sites and Rich Interactive Applications.
[...] The goal of Microsoft Codename Astoria is to enable applications to expose data as a data service that can be consumed by web clients within corporate networks and across the internet. The data service is reachable over regular HTTP requests, and standard HTTP verbs such as GET, POST, PUT and DELETE are used to perform operations against the service. The payload format for the data exchanged with the service can be controlled by the client and all options are simple, open formats such as plan XML and JSON. The use of web-friendly technologies make it ideal as a data back-end for AJAX-style applications, Rich Interactive Applications and other applications that need to operate against data that is across the web.
La CTP di Maggio 2007 richiede Orcas Beta 1 e può essere scaricata da questa pagina.

posted @ lunedì 1 gennaio 0001 00:00 | Feedback (1) | Filed Under [ ASP .NET ]

Microsoft Robotics Studio 1.5 CTP May 2007

E' stata rilasciata la CTP di Maggio 2007 di Robotics Studio 1.5. Il download è disponibile qui.

posted @ lunedì 1 gennaio 0001 00:00 | Feedback (21) | Filed Under [ Tutto & Oltre :-) ]

Expression Blend... Mi sono perso qualcosa?

Un paio di giorni fa sono andato sul sito http://www.microsoft.com/Expression per scaricare la RC di Expression Blend, che volevo provare in accoppiata ad Orcas. Questa sera, invece, ho prelevato la beta di Silverlight 1.0. Leggendo il file Welcome.htm incluso nell'SDK, ho trovato il link per Microsoft Expression Blend 2 May Preview, di cui finora non avevo sentito parlare. A questo punto mi è venuto un dubbio e sono tornato sul web per verificare una cosa... E avevo ragione: la pagina di download di Expression Blend offre la possibilità di scaricare una versione di prova, valida per 60 giorni, ma non viene più fatto cenno alla RC. Un'occhiata alla pagina delle FAQ lo conferma: Expression Blend è stato rilasciato in RTM. Forse mi sono perso qualcosa, ma mi sembra che questo rilascio sia passato inosservato...smile_sarcastic

posted @ lunedì 1 gennaio 0001 00:00 | Feedback (2) | Filed Under [ Tutto & Oltre :-) ]

Powered by:
Powered By Subtext Powered By ASP.NET