Windows Online Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Saturday, 30 May 2009

How to UnRegister .NET Windows Service ?

Posted on 01:10 by Unknown

Use the below script to unregister a windows Service.

Step 1: Create a batch file (eg., UnRegister.bat) and put it in the same foler where your windows service executable file resides).

Step 2: Copy the below script and paste it in above "UnRegister.bat" file.

@ECHO OFF

REM The following directory is for .NET 2.0
set DOTNETFX2=%SystemRoot%\Microsoft.NET\Framework\v2.0.50727
set PATH=%PATH%;%DOTNETFX2%

echo UnInstalling WindowsService...
echo ---------------------------------------------------
net stop WINDOWS_SERVICE_NAME
InstallUtil /u WINDOWS_SERVICE.EXE
echo ---------------------------------------------------
pause
echo Done.

Step 3: Replace your windows Service executable file with "WINDOWS_SERVICE_NAME" and "WINDOWS_SERVICE.EXE" string.

Step 4: Save -> Exit from the file. Now the batch file is reay to uninstall the windows service. Just double click the "UnRegister.bat" file.
Read More
Posted in Windows Service | No comments

How to Register .NET Windows Service ?

Posted on 00:57 by Unknown
Registering a Windows Service is always a challenge .

I personally prefer to write / use a script. Below is a script which will install a Windows Service and start it once its installed properly. By default it will set the Mode "Automatic When windows OS starts".


Step 1: Create a batch file (eg., Register.bat) and put it in the same foler where your windows service executable file resides).

Step 2: Copy the below script and paste it in above "Register.bat" file.

@ECHO OFF

REM The following directory is for .NET 2.0
set DOTNETFX2=%SystemRoot%\Microsoft.NET\Framework\v2.0.50727
set PATH=%PATH%;%DOTNETFX2%

echo Installing WindowsService...
echo ---------------------------------------------------
InstallUtil /i WINDOWS_SERVICE_NAME
net start WINDOWS_SERVICE.EXE
echo ---------------------------------------------------
pause
echo Done.


Step 3: Replace your windows Service executable file with "WINDOWS_SERVICE_NAME" and "WINDOWS_SERVICE.EXE" string.

Step 4: Save -> Exit from the file.

Now the batch file is reay to install the windows service. Just double click the "Register.bat" file.

Isn't it very easy !!!!

Read More
Posted in Windows Service | No comments

Monday, 18 May 2009

RollUp 4 release for MS CRM 4.0

Posted on 21:16 by Unknown

Microsoft has release rollup 4 for CRM 4. KB952858 can be downloaded here.

This is a tested, cumulative set of updates for Microsoft Dynamics CRM 4.0. It includes performance enhancements that are packaged together for easy deployment.

Please note that if you have customized Microsoft Dynamics CRM 4.0 Help files, back up your customized files before you install this update !!!

Read More
Posted in MS CRM 4 Roll Ups | No comments

Sunday, 17 May 2009

Invalid Action - The selected action was not valid.

Posted on 00:30 by Unknown

I download new MS CRM VPC (April 2009), When I browse the MS CRM Default organization (contoso)I discovered that we were receiving a very descriptive "Invalid Action: The selected action was not valid" error message.

Then, I checked the system's Application Event Log. LOL, I found the following error message:
Source: Current active key (KeyType : CrmWRPCTokenKey) is expired. This can indicate that a key is not being regenerated properly. Current Active Key : CrmKey(Id:e1a5b215-d01e-de11-9d16-0003ffd0167c, ScaleGroupId:00000000-0000-0000-0000-000000000000, KeyType:CrmWRPCTokenKey, Expired:True, ValidOn:04/01/2009 15:16:36, ExpiresOn:05/04/2009 15:16:36, CreatedOn:04/01/2009 15:16:36, CreatedBy:NT AUTHORITY\NETWORK SERVICE. Key Setting :


Fortunately, this problem was easily solved by running services.msc and starting the Microsoft CRM Asynchronous Processing Service.

Always look into Event Log messages for quick error resolutions (MS, Pls give more info, dont just put the kb link :( )
Read More
Posted in VPC | No comments

Saturday, 16 May 2009

Read a Text File Line by Line using C#

Posted on 14:08 by Unknown

Here is the sample code:

string file_name = @"c:\list.txt";
System.IO.StreamReader ObjReader = new System.IO.StreamReader(file_name);
do
{
MessageBox.Show(ObjReader.ReadLine());
} while (ObjReader.Peek() != -1);


Happy Programming !!!!
Read More
Posted in .NET | No comments

Recover Corrupt SQL Server Database

Posted on 10:37 by Unknown

This is quiet common while working on VPC (MS CRM VPC) that when the VPC gets close abnormally.

When you restart the VPC and try to open MS CRM Web you will see some SQL SERVER (Database Corrupt) related error. When you open SQL Server Enterprises studio and we will observe that the database is in SUSPEND mode. And this is due to the VPC gets close abnormally.

But still you can recover the DATABASE. Use the below set of SQL Statement .

EXEC sp_resetstatus 'MicrosoftCRM_MSCRM';
ALTER DATABASE MicrosoftCRM_MSCRM SET EMERGENCY

DBCC checkdb('MicrosoftCRM_MSCRM')
ALTER DATABASE MicrosoftCRM_MSCRM SET SINGLE_USER WITH ROLLBACK IMMEDIATE

DBCC CheckDB ('MicrosoftCRM_MSCRM', REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE MicrosoftCRM_MSCRM SET MULTI_USER

MicrosoftCRM_MSCRM is database name (for example purpose). When you use this script to recover the database replace MicrosoftCRM_MSCRM with your database name.

Enjoy. Happy recovering corrupt SQL Server Database.
Read More
Posted in Database | No comments

IsNullOrEmptyOrNoValue() - Extension of IsNullOrEmpty()

Posted on 00:24 by Unknown
public static bool IsNullOrEmptyOrNoValue(string strValue)
{

return (string.IsNullOrEmpty(strValue) ? true : (string.IsNullOrEmpty(strValue.Trim()) ? true : false));

}

Parameters
value
Type: System.String
A String reference.

Return Value
Type: SystemBoolean

true if the value parameter is a null reference (Nothing in Visual Basic) or an empty string (""); or the trim value is empty otherwise, false.

Remarks
IsNullOrEmpty is a convenience method that enables you to simultaneously test whether a String is a null reference (Nothing in Visual Basic) or its value is Empty or the trim value is empty.


Read More
Posted in .NET String Methods | No comments

IIS Log File Location

Posted on 00:15 by Unknown

Here is the solution.

Location of IIS log files:

Windows Xp:
C:\WINDOWS\system32\Logfiles\W3SVC1

Windows NT/2000:
C:\WINNT\system32\Logfiles\W3SVC1


Read More
Posted in IIS | No comments

Visual Studio 6 Error - Cannot find file ACMBOOT.EXE (or one of its components).

Posted on 00:10 by Unknown

I was happen to install Visual Studio 6.0 for one of my project. As soon as Run the Professional Edition i got the below error -

Cannot find file ACMBOOT.EXE (or one of its components). Check to ensure the path and filename are correct and that all required libraries are available.

If you are getting the same error as above please follow the below steps to resolve the issue:

1. make a copy of your installation cd in your hard drive
2. make a copy of the setup/VS98ENT.STF and name it acmsetup.STF
3. copy entire content of setup/ to previous folder (the one that has acmboot.exe file)
4. run acmsetup.exe instead of setup (the one that's on the same path as acmboot.exe)
5. voala, that's it, your visual studio 6.0 will be installed.

Isn't it easy !!! Happy Development.
Read More
Posted in Visual Studio 6 | No comments
Newer Posts Older Posts Home
Subscribe to: Comments (Atom)

Popular Posts

  • MS CRM 2011 Beta - Product Keys
    Here are the Product Keys for MS CRM 2011 Beta. The following product keys are available for this release: •Microsoft Dynamics CRM Workgroup...
  • Callout vs. Workflow
    You might find yourself wondering when you should use a pre- or post-callout versus when you should use a workflow rule. As you would expect...
  • Microsoft Dynamics CRM 2011 Release Candidate (RC) Announcement
    The Microsoft Dynamics CRM 2011 Release Candidate (RC) is now available for download from the Microsoft Download Center.  As with the Micros...
  • Declare Global Access Level functions in MS CRM Form.
    Global functions in MS CRM Form. The way CRM adds the javascript to the page, any function defined in the onload event will only have a loca...
  • How to remove the background color of XP Desktop Icon (in Wodows XP)
    In case you are wondering why your Windows XP Desktop Icons have a background, here is a quick guide to restore your transparent background ...
  • Say Hello to the World of Dynamics CRM 2011 Beta version
    Today, the Microsoft Dynamics CRM team has reached a key milestone as it releases the beta of Microsoft Dynamics CRM 2011, for both cloud-ba...
  • Install MS CRM 2011 Beta on Windows 2008 SP2 or Windows 2008 R2?
    I think everybody is consfuse when choosing the Operating System. So here are the facts: 1. You can choose either Windows 2008 SP2 or Window...
  • "Virtual Memory Low"
    “Your system is low on virtual memory” error message when you try to start an application.... Solution : Windows XP 1. Click Start , right-c...
  • Remove / Detach Email from Queue
    DetachFromQueueEmail Message Detaches the e-mail from the specified queue. // Use below code. // Rreplace the WebService URL service.Url = s...
  • Windows Washer v4.5 (Full) (for Windows XP only)
    Download

Categories

  • .NET
  • .NET String Methods
  • Adapters
  • Aggregate Functions
  • All Elements
  • Associated Records
  • Azure
  • BizTalk Adapter
  • Callouts
  • Child Pipeline
  • Crm 2011
  • Crm 2011 Beta
  • Crm 2011 Beta - Ribbons
  • Crm 2011 Beta Installation
  • CRM Online 2011
  • Customizations
  • Database
  • Debug
  • Deployment Service
  • Dynamic Entity
  • Email
  • FetchXml
  • FileSync
  • Form Assistant
  • Hide Button
  • IIS
  • Integration
  • Internet Connectivity
  • ISV
  • Java Script
  • Lead Capture
  • MS CRM
  • MS CRM 2011 RC
  • MS CRM 4 Roll Ups
  • MS CRM 5 Features
  • MS CRM Accelerators
  • MS CRM Entity Schema
  • MS CRM Global Variable and Functions
  • MS CRM Templates
  • Pivot Tables
  • Plugin Constructor
  • Plugins
  • Reports
  • s
  • Save Record
  • SDK
  • Sharepoint
  • Sharepoint 2010
  • Sharing Data Between Plug-ins
  • Social Networking
  • SSRS
  • Tabs
  • Tracing
  • Videos
  • Visual Studio 6
  • VPC
  • WampServer
  • Windows Service
  • Windows XP
  • Workflows
  • xRM

Blog Archive

  • ►  2013 (4)
    • ►  September (4)
  • ►  2012 (8)
    • ►  September (1)
    • ►  July (7)
  • ►  2011 (12)
    • ►  July (1)
    • ►  March (1)
    • ►  February (2)
    • ►  January (8)
  • ►  2010 (27)
    • ►  December (1)
    • ►  October (3)
    • ►  September (10)
    • ►  August (2)
    • ►  July (5)
    • ►  June (5)
    • ►  February (1)
  • ▼  2009 (41)
    • ►  December (1)
    • ►  November (5)
    • ►  August (3)
    • ►  July (2)
    • ►  June (3)
    • ▼  May (9)
      • How to UnRegister .NET Windows Service ?
      • How to Register .NET Windows Service ?
      • RollUp 4 release for MS CRM 4.0
      • Invalid Action - The selected action was not valid.
      • Read a Text File Line by Line using C#
      • Recover Corrupt SQL Server Database
      • IsNullOrEmptyOrNoValue() - Extension of IsNullOrEm...
      • IIS Log File Location
      • Visual Studio 6 Error - Cannot find file ACMBOOT.E...
    • ►  April (2)
    • ►  March (5)
    • ►  February (7)
    • ►  January (4)
  • ►  2008 (33)
    • ►  December (7)
    • ►  November (3)
    • ►  October (1)
    • ►  September (7)
    • ►  August (4)
    • ►  July (1)
    • ►  February (4)
    • ►  January (6)
  • ►  2007 (11)
    • ►  October (3)
    • ►  September (1)
    • ►  August (3)
    • ►  July (4)
Powered by Blogger.

About Me

Unknown
View my complete profile