I have been charged with creating a mini web portal where customers can register a product and in return, get a activation license. I've successfully developed the app on my WinXP SP2 laptop using: Visual Studio 2005, SQL 2005, C#. I am inheriting an assembly that was written in 2003 which is responsible for actually creating the license.
I call a function from this inherited .dll and receive the license without any error.
Once the site was near completion, I migrated it to my Win2003 Server (standard ed, SP2). I registered my .dlls and added them as references to my newly-created solution. I then compiled the site and got the following error:
Error:
System.Runtime.InteropServices.COMException (0x80010105): The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)) at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData) at
LicenseKeyGen.LicenseKeyGeneratorClass.createLicenseBitString(String a_sFeatures, String a_sProductId, Int16 a_bEvaluationLicense, Int16 a_iEvalPeriod) at
XDAL.LicenseDAL.GetFinalLicense(String ParamFeatures, String productID, Int16 ParamEvaluation, Int16 ParamEvalPeriod) in
X:\Inetpub\wwwroot\xxx\LicenseDAL.cs:line 394 at XDAL.LicenseDAL.GenerateLicenceKey(String productID) in
X:\Inetpub\wwwroot\xxx\LicenseDAL.cs:line 303 at XDAL.LicenseDAL.MatchAndUpdate_ProdID_IKey(String productID, String Ikey) in
X:\Inetpub\wwwroot\xxx\LicenseDAL.cs:line 628 at XDAL.LicenseDAL.GetLicense(String productid, String ikey, String email) in
X:\Inetpub\wwwroot\xxx\LicenseDAL.cs:line 526 at XBus.License.GetLicense(String productid, String ikey, String email) in
X:\Inetpub\wwwroot\xxx\License.cs:line 61 at _Products_Licensing_editProduct.btnSubmit_Click(Object sender, EventArgs e) in
X:\Inetpub\wwwroot\xxx\editProduct.aspx.cs:line 240
I then tried debugging to see if the correct parameters were being passed to the function. They are:
if you can't see the image: 208.252.199.41/images/error-01.gif
After reading some microsoft forum posts I came across:
"I managed to solve this on our Windows 2003 machine. It seems that when you regasm the assembly, it won't register the events interface unless you use the /tlb option. I don't really understand it that well but this fixed it for us"
I then did this too:
if you can't see the image: 208.252.199.41/images/error-02.gif
I am thoroughly baffled after 2 days of searching, Googling, calling colleagues, reading blogs, etc. There is so little documentation on System.Runtime.InteropServices.COMException (0x80010105). Has anyone come across this error when transferring a site to a Win 2003 server
Any advice/information would be GREATLY appreciated.