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 : http://itdevnewbie.blogspot.com/2007/12/easy-add-dll-to-gac.html

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: http://msdn.microsoft.com/en-us/library/aa292114(VS.71).aspx

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 : http://lirliron.blogspot.com/2009/03/webservice-service-unavailable-error.htm