Wednesday, March 11, 2009

How to easy add Dll to the gac

I you want to add dll to the gac with a simple right click, follow theses steps:

1. Foreach .NET version paste the apropriate script in a new file
2. Save it with ".reg" extension
3. Double click on each file to add the entry in the registery.

.Net 1.1

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\dllfile\shell\gacutil\command]@="c:\\windows\\Microsoft.NET\\Framework\\v1.1.4322\\gacutil.exe /i \"%1\""

.Net 2.0

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\dllfile\shell\gacutil\command]@="C:\\Program Files\\Microsoft Visual Studio 8\\SDK\\V2.0\\Bin\\gacutil.exe /i \"%1\""

Thanks to Elad R...

Reference :

Thursday, March 5, 2009

Soap Exception Error when calling ASP.NET Web Service from SAP

In one of my recents projects i had to call an ASP.NET Web Service from SAP.

Although i called the web service passing the corrects credentials i got SOAPEXCEPTION(Soap Fault Code 1) error

After searching several hours i found that when i configure the authentication mode of my application using Basic Authentication it work fine...

For more details about IIS authentication mode:

WebService "Service Unavailable" Error

If you get "Service Unavailable" error message when you trying to run webapplication, check the follows issues:
  • The application pool is not running.
  • The application pool account uses an incorrect password.
  • The application pool account is not a member of both the IIS_WPG group and the STS_WPG group on the server.

Thanks to liron for it post :

Sunday, February 15, 2009

SharePoint Dispose Checker Tool (SPDisposeCheck)

SharePoint Dispose Checker Tool (SPDisposeCheck) is finally available!

You can download it from

"SPDisposeCheck is a tool to help you to check your assemblies that use the SharePoint API so that you can build better code. It provides assistance in correctly disposing of certain SharePoint objects to help you follow published best practice. This tool may not show all memory leaks in your code. Further investigation is advised if you continue to experience issues." (Paul Andrew)

For resuming, this tool allows moss developpers to check that they correctly use the recommended best practices, in particular:
Best Practices: Using Disposable Windows SharePoint Services Objects Best Practices: Common Coding Issues When Using the SharePoint Object Model