ThreadAbortException

February 2007 Entries

Windows Vista Specifying the Privelege Elevation for Legacy Applications

One of the interesting things about Windows Vista is the User Acccount Control (UAC) and the Elevation it requires when executing activities that require Administrative Priveleges.  Windows Vista, by default runs users as a Standard User and as such when an administrative task is attempted, it prompts you to verify the permission.  If you are running your applications on Windows Vista for the first time, you may be a little amused by this operation but it shows the security model that has been the core of Windows Vista.

We just did a Developer Tour on Windows Vista and Office 2007 and during my security session, an interesting question that was asked was how to make legacy applications request for the required privelege elevation.

One of the ways in which you can specify that admin priveleges are requied for the legacy application to run, is through the applications' manifest file.

To do that, all you need to do is to add a Text File to your project and rename it as ApplicationName.exe.manifest (Example UACDemo.exe.manifest).  Once that file is created, add the following XML Configuration setting into the UACDemo.exe.manifest file and save it.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"

   <assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="UacDemo" type="win32"
/>
      <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"
>
      <security
>
         <requestedPrivileges
>
            <requestedExecutionLevel level="requireAdministrator"
/> 
         </requestedPrivileges
>
      </security
>
   </trustInfo
>
</assembly>

Once we do the above, we need to attach the manifest to the EXE of the application.

If you are using Visual Studio 2005, Switch to the Project's Properties and switch to the "Build Events" Tab.  In the "Post-build event command line"  Textbox, paste the following:-

"$(DevEnvDir)..\..\VC\bin\mt.exe" -manifest "<Path to the Manifest file>"  –outputresource:"$(TargetDir)$(TargetFileName)";#1

In my case the path to the manifest file was <DriveName>:\Samples\UACDemo\UACDemo.exe.manifest.

Build the project and run the application.  You should now receive a "User Account Control" alert which warns you against the operation.  This can help you in making your legacy applications run on Windows Vista and still perform Administrative Tasks.

More references and a step by step instruction can be found at the following resources:-

http://msdn.microsoft.com/msdnmag/issues/07/01/UAC/default.aspx

http://www.frameworkx.com/frameworkx/contentblogdetail.aspx?blog=56&id=530

http://community.bartdesmet.net/blogs/bart/archive/2006/10/28/Windows-Vista-_2D00_-Demand-UAC-elevation-for-an-application-by-adding-a-manifest-using-mt.exe.aspx

Cheers !!!

P.S.

1. The application manifest marking is only relevant to EXEs, not DLLs. This is because UAC does not inspect DLLs during the creation of the process.

2. If you are running Visual Studio 2005 as an Administrator, the security popup wont come up when debugging / running from within Visual Studio 2005.  However, it pops up when you run the application from the EXE, by directly invoking the EXE.

3. If you have correctly associated the manifest to the EXE, you would find a security shield embedded to the EXE Icon.

4. If you disable the UAC via control panel for your login, the elevation request popup won't occur when you run the application (outside of VS also) or for any other application for that matter. This is also indicated by a regular icon for the application and the security shield is no longer visible. 

Microsoft .NET Framework 3.0, WCF, WPF, AJAX, Microsoft Expression - Download Links

My friend, Pandurang Nayak put up a good list of download links for Microsoft .NET Framework, WCF, WPF Extensions, AJAX 1.0 and a list of other latest Microsoft Technologies which can be downloaded for free.  So, herebelow is the list. 

 

Product

URL

Release Status

Notes

Microsoft .NET Framework 3.0

http://www.microsoft.com/downloads/details.aspx?FamilyId=10CC340B-F857-4A14-83F5-25634C3BF043&displaylang=en

RTM

Installs .NET Framework 3.0 and all libraries for WPF, WCF and WF

Windows SDK and .NET 3.0 Runtime Components

http://www.microsoft.com/downloads/details.aspx?familyid=C2B1E300-F358-4523-B479-F53D234CDCCF&displaylang=en

RTM

Installs important tools for Windows developers, Windows APIs and C++ header libraries

Visual Studio 2005 Extensions for Workflow Foundation

http://www.microsoft.com/downloads/details.aspx?FamilyId=5D61409E-1FA3-48CF-8023-E8F38E709BA6&displaylang=en

Nov 2006 CTP

Visual Studio add-ons for Workflow Foundation projects

Visual Studio 2005 Extensions for WCF, WPF

http://www.microsoft.com/downloads/details.aspx?FamilyId=F54F5537-CC86-4BF5-AE44-F5A1E805680D&displaylang=en

Nov 2006 CTP

Visual Studio add-ons for WPF and WCF projects

Visual Studio 2005 SP1

http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4C96-B39D-37BAF6B5B1DC&displaylang=en

RTM

Several fixes for XP SP2 and Vista development

Visual Studio 2005 SP1 Update for Vista

http://www.microsoft.com/downloads/details.aspx?familyid=90e2942d-3ad1-4873-a2ee-4acc0aace5b6&displaylang=en

BETA

Several fixes for Vista development

SQL Server 2005 SP2 (starting page for all editions)

http://www.microsoft.com/downloads/details.aspx?FamilyID=EB05D099-8A66-45F6-84CE-4888760D2AF8&displaylang=en

RTM

Several fixes for XP SP2 and Vista development

ASP.NET AJAX 1.0

http://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&displaylang=en

1.0 RTM

AJAX extensions for ASP.NET

ASP.NET AJAX Control Toolkit

http://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=AtlasControlToolkit

Works with 1.0 RTM

Open source community effort for pre-built AJAX controls

ASP.NET AJAX Documentation

http://ajax.asp.net/documentation/AspNet_AJAX_Documentation.zip

1.0 RTM

Downloadable version that mirrors online documentation

Other ASP.NET AJAX downloads

http://ajax.asp.net/downloads/default.aspx?tabid=47

Refer download page

Download source code for AJAX 1.0, download futures CTP (for seeing what is in store in the future) and other utilities

“WPF/E” (codename) plug-ins

http://msdn.microsoft.com/wpfe

CTP Feb 2007

To run “WPF/E” (codename) applications in your browser – plug-ins available currently for IE, FireFox (on Windows) and Safari (on Mac)

“WPF/E” (codename) SDK

http://www.microsoft.com/downloads/details.aspx?FamilyID=c744cbb8-d4d9-4bf9-ad5c-eef36e064911&displaylang=en

CTP Feb 2007

To develop “WPF/E” (codename) applications

“WPF/E” (codename) Preview Sample Pack

http://www.microsoft.com/downloads/details.aspx?FamilyId=515684FD-C8A0-4588-88C5-54CE224925E7&displaylang=en

CTP Feb 2007

Install several “WPF/E” (codename) samples locally

Windows Internet Explorer 7 for XP SP2

http://www.microsoft.com/downloads/details.aspx?familyid=9AE91EBE-3385-447C-8A30-081805B2F90B&displaylang=en

RTM

Install IE7 for Windows XP SP2

IE Developer Toolbar BETA 3

http://www.microsoft.com/downloads/details.aspx?familyid=E59C3964-672D-4511-BB3E-2D5E1DB91038&displaylang=en

BETA 3

Provides tools for debugging client code and validate CSS/XHTML in IE 6, IE 7

Microsoft Expression Design

http://www.microsoft.com/downloads/details.aspx?FamilyId=4B7531DA-256E-4ED6-BF95-3A749B6523D7&displaylang=en

BETA 1

Vector design tool for creating XAML layouts

Microsoft Expression Blend

http://www.microsoft.com/downloads/details.aspx?FamilyId=31F7B20E-9A1D-4317-8146-FBB6A39B1A2C&displaylang=en

BETA 2

Powerful designer tool for creating interactive WPF applications

Microsoft Expression Web (Free Trial Version)

http://www.microsoft.com/downloads/details.aspx?FamilyId=44FA7F93-7D57-4523-B0C9-2CE54397B732&displaylang=en

RTM

Powerful designer tool for creating standards-based websites.  Available for purchase.

Microsoft Expression Web Quickstart Guide

http://www.microsoft.com/downloads/details.aspx?familyid=3119F516-A14A-4144-848F-0390DD13EB60&displaylang=en

RTM

Quickstart lessons and tips to master Expression Web

Microsoft Expression Media (Free Trial Version)

http://www.iview-multimedia.com/

RTM

Image/Digital Archive, Photo management, Professional Photo Publishing and Media encoding. Available for purchase.

Microsoft Visual Studio and SQL Express Editions

http://msdn.microsoft.com/express

RTM

Free versions of Visual Studio and SQL Express for hobbyist developers and enthusiasts

Windows Live SDKs

http://dev.live.com

Please visit page to see status for each SDK

Multiple SDKs to leverage, consume and extend various Windows Live Services

 

·         Please note that this information is current as of 23rd February 2007.   The CTPs and BETAs might have newer versions and it is advised to check on the status of the same before downloading the components.

 

 

Cheers !!!

Windows Vista Upgrade Advisor 1.0

If you are running a Windows XP machine and itching your hands to upgrade to Windows Vista, Windows Vista Upgrade Advisor is something which you would love to check out.

Windows Vista Upgrade Advisor is designed to help Windows XP users identify whether their PCs are ready for an upgrade to Windows Vista, which edition of Windows Vista meets their needs, and which features of Windows Vista will be able to run on their PCs.

Windows Vista Upgrade Advisor will help you determine if your current PC is ready for an upgrade to Windows Vista. It will also help you to choose the edition of Windows Vista that's right for you. Download the Upgrade Advisor to run an analysis of your current PC and use the detailed feedback to ensure that your PC is ready for the edition of Windows Vista that you want.
 
A cool little utility that can help you determine the things you need to know.
 
 
Cheers !!!

MIX '07 - A 72 Hour Conversation

MIX is Microsoft's Conference for Web Designers.  It is an annual Conference that happens in U.S. and is subsequently held in other subsidaries.  Check my earlier post on IndiMix, last year.

MIX 07 is going to be an exciting event for Web Developers, Designers and Web Business Persons.  It is a fun filled event and guess what, it is happening in the fun filled place, Las Vegas.  The event or rather the 72 Hour conference is from April 30 - May 2nd.

So, whats lined up there for you?                  

If you are a Web Designer, join us and see what are the new capabilities that can be delivered on the web with richness which would have never been imagined of. Explore the possibilites in Design using our new suite of Expression Products and see how Developer - Designers can talk the same language now.

If you are a Web Developers, join us and see the capabilities of AJAX and ASP.NET and how it makes web development life easy and at the same time providing a rich user experience.

If you are a Web Businessman, come and explore the new possibilities of generating revenue and hear to the new business models that have evolved and generating revenue using our latest technologies.

So, MIX 07 is for sure, a worth investment of your time and money and what you get back in turn, is loads of new ideas, business models, revenue generating innovations and thats not all, every attendee gets a Windows Vista Ultimate Edition for FREE !!!

There are also fun filled parties, contests and what not?

Check Visit MIX07 for more information and registration.

Happy MIXing !!!

Launch of Windows Vista and Office 2007 for Developers

 

 

We are kicking off a 5-city road-show for developers, focused on application development on Vista & Office 2007.  This event is behing held in Delhi, Hyderabad, Chennai, Bangalore and Mumbai.

 

Using the Windows Vista™ platform in tandem with the Microsoft® Office 2007 system, you can build future-ready applications that are visually stunning, collaborative and secure like never before. Start scripting the future today!

 

Clear
Create visually stunning and highly differentiated user interfaces that makes applications more usable and productive.

Connected
Build applications that connect users to each other and their data.

Confident
Build secure
applications, which
ensure unprecedented
protection
.

Attend the event in your city and get:

  • 30% off on Developer Certifications from Microsoft
  • 25% off on Microsoft Press books

Date

Time

RSVP Phone

RSVP
Fax

City /
Venue

RSVP

27-02-2007
Tuesday

9.00 am - 6.00 pm

011- 26223484

011- 26223485

Delhi
Intercontinental Eros

Register

28-02-2007
Wednesday

9.00 am - 6.00 pm

040- 27660669

040- 66136734

Hyderabad
Marriot

Register

06-03-2007
Tuesday

9.00 am - 6.00 pm

044 – 24728113

044 - 24734247

Chennai
Taj Coramandal

Register

08-03-2007
Thursday

9.00 am - 6.00 pm

080 - 25219657

080 - 25213656

Bangalore
Taj Residency

Register

14-03-2007
Wednesday

9.00 am - 6.00 pm

022– 65021700

022- 40059933

Mumbai
Hyatt Regency

Register

 

RSVP Email: microsoftevents@endtoend.in

Cheers and Looking forward to see you all there !!!

Why Windows Vista? - Reason 3 on why you should move on to Windows Vista

 

Why Windows Vista costs less than you think?

Windows Vista delivers great value to businesses by addressing critical business scenarios.  Firstly, it empowers your people by making it easy for them to find, share and use information.  Secondly, it enables mobile and remote workers to stay connected and productive wherever they are.  Windows Vista also addresses growing security threats and helps protect your people's data in and out of office, secure your environment, and makes it easier to achieve compliance with government regulations and internal policies.  Last but not the least, Windows Vista makes it easier to deploy, manage, and support your corporate PCs by helping you in optimizing your desktop infrastructure.

Give your business a headstart with Windows Vista - Pay Less

Windows Vista comes loaded with security and back-up features that reduce the need to purchase expensive 3rd party products.

Backup & Restore   

Windows Backup & Restore included with Windows Vista.  Save upto $100 per PC.

Spyware Protection

Windows Defender included with Windows Vista.  Save $5 - $25 per PC.

Personal Firewall

Windows Firewall included with Windows Vista.  Save $50 per pc.

Full disk encryption

Windows BitLocker Drive Encryption included with Vista Enterprise.  Save $100 - $200 per pc.

Network access protection (NAP)

Vista supports Network Access Protection (requires Windows Server Longhorn to implement).  Save the cost of expensive hardware

Host-based Intrusion Prevention Systems (HIPS)

Internet Explorer 7 Protected mode and User Account Control.  Save $50 per PC.

More Security

 

» Disable USB storage
   
» User Account Control
   
» IE7 Protected mode & Phishing filter for robust security
   
» Windows BitLocker Drive Encryption to protect data on laptops that are lost or stolen

Higher Productivity

 

» New productivity features like Integrated Search make it faster and easier to find information on PCs, the corporate network or the internet
   
» New Aero User Interface - Live Previews and Flip 3D give the ability to easily organize, access and search files

Easier Management & Support

» Deployment: Reduces the time and complexity of desktop deployment
   
» Management: Lowers image count and image management costs
   
» Support: Reduces help-desk cost; Significant group policy enhancements to enhance the productivity of IT-pros

Check http://www.microsoft.com/windowsvista for more information.

Cheers !!!

Best Resources for Learning ASP.NET

 

I keep getting emails frequently from many people asking me for a good place to start learning ASP.NET.   I am really surprised to see the number of people writing to me regarding this and the interest ASP.NET has brought into the development community.

By any standards, the most popular web development model over the last 10 years has been ASP.NET.  It overtakes other competing technologies far ahead in terms of reach, simplicity and capabilities it can deliver on the Web.

Well, coming back to learning resources, I would say http://www.asp.net is your one stop portal for all your ASP.NET needs.  Breaking it down,

To learn ASP.NET as a beginner, check http://www.asp.net/getstarted/default.aspx?tabid=61 and http://www.asp.net/learn/default.aspx?tabid=63 where you find a wealth of information in different forms such as Videos, Podcasts, Articles etc.,

To get the necessary downloads (for free, including development tools) and getting started, visit http://www.asp.net/downloads/default.aspx?tabid=62

To obtain various resources provided by Microsoft as well as ASP.NET Developer Community, check http://www.asp.net/resources/default.aspx?tabid=41

Check http://www.asp.net/blogs/default.aspx?tabid=53 for blogs on ASP.NET and you can subscribe to the same to get latest updates.

If you want to work with AJAX, http://ajax.asp.net is your place to start

Whether you have a burning issue, a doubt, a technical implementation hard to do, a show stopper issue or a suggestion, http://forums.asp.net is the best place to get answer or express your opinion.  It contains wealth of information and millions of users who contribute and benefit every day.  ASP.NET Forums has also produced a lot of Microsoft MVPs (http://www.microsoft.com/mvp) who shared as well as gained knowledge from here.

Finally, if you want to read latest articles on ASP.NET posted by various experts, visit http://www.asp.net "Article of the Day" section and subscribe for the same to get the latest articles.

Last and definitely the least when comparing the above resources, keep checking my this blog where I try to provide as much relevant information, technical articles and updates as possible.

Happy Web Development with ASP.NET !!!