Sunday, May 22, 2005

The Code Room Episode 2 "Building Mobile Apps and Bluetooth Enabled Kiosks"

I am sure you have already seen the The Code Room Episode 1. Now is the time to watch episode 2.






Follow this link and view/download it:-

MSDN TV: The Code Room: Building Mobile Apps and Bluetooth Enabled Kiosks: "The Code Room: Building Mobile Apps and Bluetooth Enabled Kiosks
In this second episode of The Code Room, watch the sparks fly, the egos flair, and the light bulbs go off as a solution is produced under pressure using the latest mobile bits from Microsoft including Bluetooth, Visual Studio 2005, the .NET Compact Framework 2.0, and SQL Server CE on the Smartphone. "

Wednesday, May 18, 2005

Oracle with .NET : A Killer Combo

: "Bring the Power of Oracle Database to .NET Applications
Oracle Developer Tools for Visual Studio .NET make it easier to build Oracle Database applications on Windows. With a tightly integrated set of tools for Visual Studio .NET, developers can make use of versatile new features, such as:
Automatic code generation
Powerful designers and wizards
Context-sensitive online help
Easy-to-use stored procedures editor

Developing Oracle Database applications on Windows has never been easier. Click here to learn more about Oracle�s integration with Visual Studio .NET and to download your FREE copy of Oracle Developer Tools for Visual Studio .NET.
Click on the button on the right for your FREE Oracle Developer Tools for Visual "

Monday, May 16, 2005

Saturday, May 14, 2005

Thursday, May 12, 2005

Why Context.User.Identity.Name returns blank ?

One of my friends mailed on our INETA User Group mailing list asking that he is unable to recieve the name associated with Windows Identity object in his asp.net web application. He further claimed that he had set "authentication mode" to "windows authentication".

Following was my response to that:

check that if the current user is authenticated or not. u may try this if block:

if(this.Context.User.Identity.IsAuthenticated)


and if u come to know that the user is not authenticated (which i am sure u will find) then this means that like most of us u have enabled anonymous access. try disabling it and then run ur code by selecting windows authentication mode in your directory security settings in IIS.

Wednesday, May 11, 2005

The Architect at TheServerSide.Net

Read this funny piece at TheServerSide.NET. In this peice Micheal Kaplan mimics the conversation between Keanu Reeves and The Architect in Matrix Reloaded. Good read for sure :)

Saturday, May 07, 2005

SQL Server 2000 Service Pack 4 Released !

SQL Server 2000 Service Pack 4 Released:

Microsoft has release Service Pack 4 for SQL Server 2000 which includes fixes from all prior service packs as well as enhancements to security, performance and serviceability. This service pack also includes support for 32-bit SQL Server to run on 64-bit Windows 2003 Server and MSXML version 3 SP6 and MDAC 2.8 SP1. "

Monday, May 02, 2005

SharePoint Configuration Analyzer

SharePoint Configuration Analyzer is a diagnostic tool that verifies settings
on your server that are critical to running Microsoft Windows SharePoint Services or Microsoft Office SharePoint Portal Server 2003 and to hosting Web Parts on your
server. SharePoint Configuration Analyzer also reports on Web Part usage on your
server and retrieves a set of log files, configuration files, and Web Part packages used by Windows SharePoint Services, SharePoint Portal Server, and Internet
Information Services (IIS). In a server farm configuration, running SharePoint
Configuration Analyzer on each front-end server is a useful way to find and repair inconsistencies in server configurations and to ensure that all Web Part assemblies
are deployed on all front-end servers.


Download details: SharePoint Configuration Analyzer: "SharePoint Configuration Analyzer v1.0 for Windows SharePoint Services
SharePoint Configuration Analyzer is a diagnostic tool that verifies settings on
your server that are critical to running Microsoft Windows SharePoint Services or
Microsoft Office SharePoint Portal Server 2003 and to hosting Web Parts on your
server."

How to enable an ASP.Net application to run on a SharePoint virtual server

A good read at Microsoft Support Site.
How to enable an ASP.Net application to run on a SharePoint virtual server: "How to enable an ASP.Net application to run on a SharePoint virtual server"

Enabling Sessions for ASP.NET Web Parts in Sharepoint Portal 2003

Enabling Sessions for ASP.NET Web Parts in Sharepoint Portal 2003

To Enable Session State in Sharepoint Portal 2003 you will need to do couple of amendments in the “Web.Config“ placed at the root of your virtual server. (usually available at C:\Inetpub\wwwroot ).

Edit your web config file using any editor. (I use Ultra Edit).

1) Enabling SessionStateModule:
Find this tage and enable it: (It is disabled/commented by default)


2) Enable SessionState:
Enable session state (Set to true):



Programmatically check if the session has been enabled on Sharepoint Server or not:
Develop a Web Part and place the following code to test if the session has been enabled or not. Place the following code in your protected override void RenderWebPart(HtmlTextWriter output) method:

output.Write("");
output.Write("");

output.Write(" ");

output.Write("
");

output.Write("
");


try

{

if( this.Page.Session != null && this.Page.Session.Count > 0)

{

if( this.Page.Session["UserPass"] == null)

{

output.Write(SPEncode.HtmlEncode("I dont have the passport for you ... "));

this._linkButton.RenderControl(output);

}

else

{

output.Write(SPEncode.HtmlEncode("Thanks GOD "+this.Page.Session["UserPass"].ToString()+"! you are logged in .."));

}

}

else

{

output.Write(SPEncode.HtmlEncode("I dont have the passport for you ... "));

this._linkButton.RenderControl(output);

}

}

catch(System.Exception exp)

{

output.Write(SPEncode.HtmlEncode("ERROR OCCURED "+exp.Message) );

this._linkButton.RenderControl(output);

}

finally

{

output.Write("
");

output.Write("

");


output.Write("
");

output.Write("");

output.Write("");

}


thats it for now.
stay tuned for more!

--------------------------------------------------------------------------------

Hammad Rajjoub,
MVP (Windows Server System - XML Web Services),
User Group Leader - Dot Net Wizards (http://dotnetwizards.blogspot.com),
Chariman UG Relations Committee (http://inetapakistan.org),
Member Speakers Bureau (http://mea.ineta.org)