DarenHan's Blog

I am a Dot net asp.net developer working with VS 2005 and SQL 2005 now.

November 2007 - Posts

http://msdn2.microsoft.com/en-us/vstudio/default.aspx
:(
VS 2008 is out in MSDN subscription..hmm how i wish i got a MSDN subscription account as xmas present..
Posted by darenhan | with no comments
Have you ever wanted to remove some Windows components like Media Player, Internet Explorer, Outlook Express, MSN Explorer, Messenger...

How about not even to install them with Windows?

nLite is a GUI for permanent Windows component removal by your choice. After removal there is an option to make bootable image ready for burning on CD or testing in virtual machines. With nLite you will be able to have Windows installation which on install doesn't include, or even contain on cd, unwanted components.

nLite Features:


Service Pack Integration
Component Removal
Unattended Setup
Driver Integration *
Hotfixes Integration **
Tweaks
Patches ***
Bootable ISO creation


* - Textmode and normal PnP
** - only new type 1 hotfixes (for example XP post SP2)
*** - supports generic SFC, Uxtheme, TcpIp and Usb Polling patching.

So far it supports Windows 2000, XP x86/x64 and 2003 x86/x64 all languages.

It needs .NET Framework 2.0 in order to run it... Check if you have it already, maybe on some of your CDs before downloading if your connection is slow.



http://www.nliteos.com/download.html
Posted by darenhan | with no comments

I got these two errors after i change the root directory for CE10 outputfileserver. Turns out there is no way to set it back.

Event Type: Error
Event Source: Crystal_outputfileserver
Event Category: Services
Event ID: 35101
Date:  11/20/2007
Time:  7:41:35 PM
User:  N/A
Computer: XXXXX
Description:
The root server reported an error Internal Error. (Reason: Fail to initialize file system.  Please see event log for details.).
 

Event Type: Error
Event Source: Crystal_outputfileserver
Event Category: Startup
Event ID: 35600
Date:  11/20/2007
Time:  7:41:35 PM
User:  N/A
Computer: XXXXXX
Description:
System problem encountered: Failed to setup the root directory \\localhost\Output\ for use. Please make sure permissions are correct and there is no sharing violation.

After some googling,  I finally found the answer is to change the registry where the CE10 report server is situated.

the registry key to change is  \Hkey_Local_Machine\Software\Crystal Decisions\10.0\File Server\Instances\Output_server

---->  Look for this key (RootDirectory) and change this back to the initial value and restart the outputfileserver service.

 

 

Posted by darenhan | with no comments
I got this error in my asp.net 1.1 app after the server is updated to win2k3 sp 2.

only patches available are:
http://support.microsoft.com/kb/893251/
and
http://support.microsoft.com/kb/927495

but these hotfix are not downloadable, need to request from microsoft. :(
http://support.microsoft.com/gp/CUHotFix_LandingPage_Request

Origins of the problem:
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=289996&wa=wsignin1.0
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=294729&wa=wsignin1.0


System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.Runtime.Serialization.SerializationException: Type missing for member of type Object '_ContextID'. Server stack trace: at System.Runtime.Serialization.Formatters.Soap.ObjectReader.ParseMember(ParseRecord pr) at System.Runtime.Serialization.Formatters.Soap.ObjectReader.Parse(ParseRecord pr) at System.Runtime.Serialization.Formatters.Soap.SoapHandler.EndElement(String prefix, String name, String urn) at System.Runtime.Serialization.Formatters.Soap.SoapParser.ParseXml() at System.Runtime.Serialization.Formatters.Soap.SoapParser.Run() at System.Runtime.Serialization.Formatters.Soap.ObjectReader.Deserialize(HeaderHandler handler, ISerParser serParser) at System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize(Stream serializationStream, HeaderHandler handler) at System.Runtime.Remoting.Channels.CoreChannel.DeserializeSoapResponseMessage(Stream inputStream, IMessage requestMsg, Header[] h, Boolean bStrictBinding) at System.Runtime.Remoting.Channels.SoapClientFormatterSink.DeserializeMessage(IMethodCallMessage mcm, ITransportHeaders headers, Stream stream) at System.Runtime.Remoting.Channels.SoapClientFormatterSink.SyncProcessMessage(IMessage msg) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at SecurityManagement.BusinessFacade.IHome.GetAppAccessControl() at SecurityManagement.BusinessFacade.ProxyAppAccessControl.AccessControl(String sUserADID, Int32 iRoleID, Int32 iCatalogID, Int32 iParentID, Boolean blnLogUserAccess) in
Posted by darenhan | 3 comment(s)

First command  - to find occurrences of \\B2 in text files.

 

findstr \\B2 *.txt

 

 Second command – this is to find which files has the XYZ filename.

 

 dir d: |findstr XYZ

 

 Third command – this is to copy files in current directory to d:\temp which has XYZ as filename.

 

for %c in (*XYZ*) do copy /y "%c" "d:\Temp"

 

All three commands can be executed in DOS mode.


 


 

Posted by darenhan | with no comments
Application compatibility remains one of the most annoying issues among some more conservative Windows Vista users.
The ability to upgrade the software to a new Windows Vista compatible version is not always an option. The company that developed the application may no longer be around or the cost to upgrade is too high.
In order to play old games or run legacy applications you need to install Windows XP, without blaming M!©®o$oƒt

If however, you don't want to give up all of the advances in Windows Vista just so that you can play old games or run ancient applications once in a while, then the answer is to dual boot Windows Vista and Windows XP.

Dual booting Windows XP and Windows Vista on the same computer will allow you to select from a boot menu what operating system you want to run. This menu is shown right after you power on your computer.
Setting up both Windows XP and Windows Vista on one computer can be a little tricky depending what operating system (OS) you have installed first.
The next two sections will help you configure both versions on your computer, depending on what OS you have installed first:

Windows XP is installed:

If you want to dual boot Windows XP and Windows Vista and Windows XP is already installed on your computer you will not have to do much work to dual boot Vista.
Just boot to your Windows Vista install DVD, select a custom install and install Windows Vista on a separate partition or physical drive than where XP is installed.
This will leave your Windows XP install intact and automatically install a boot menu with both XP and Vista listed.


Windows Vista is installed:

If you reformatted your hard drive and wiped out Windows XP when you installed Windows Vista, your setup is going to be a little more complicated.
Follow these steps:
Boot up your computer with a Windows XP install CD and install Windows XP to a different partition or physical drive than where Windows Vista is installed. When the setup is finished, your computer will automatically boot into Windows XP.
Don’t worry, Windows Vista is still on your computer if you correctly installed XP to a different partition or physical drive.
When you installed Windows XP, the Windows Vista Boot Manager was replaced by the Windows XP boot components.
The Windows Vista Boot Manager needs to be fixed by using the Windows Vista install DVD.
Boot your computer to the Windows Vista install DVD , click <Next> on the regional settings screen and then click on <Repair your computer> in the lower left of the window.
Select your Windows Vista install and then run the Start-up Repair. This will fix the Windows Boot Manager and Vista will once again start-up automatically.
Boost your PC! Clean and repair registry, improve performance.
Now we need to add an entry to the Windows Boot Manger for Windows XP.
This is done through Windows Vista. When you are back in Windows Vista, open an administrative level command prompt window and run these commands:
bcdedit /create {ntldr} /d “Windows XP”
bcdedit /set {ntldr} device boot
bcdedit /set {ntldr} path \ntldr
bcdedit /displayorder {ntldr} /addlast
Reboot your computer and test out the new boot menu.

Dual boot has now been configured on your computer.
You will be able to enjoy the enhancements of Windows Vista without giving up the ability to run older applications that require Windows XP.

Posted by darenhan | 1 comment(s)
http://www.iexbeta.com/wiki/index.php/Windows_Vista_RC_1_Hardware_Compatibility_List

maybe this will be useful for those upgrading to Vista in their desktop PC
Posted by darenhan | with no comments
for those who want to view .rpt files but don't want to purchase crystal reports,

http://www.businessobjects.com/products/reporting/crystalreports/viewer/en/download.asp

http://homepages.udayton.edu/~groffkep/CrystalCorralInstall.msi

you can also find the whole list of free viewers at
http://www.kenhamady.com/bookmarks.html
Posted by darenhan | with no comments