fsilva9

HELP!!!

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.


Re: Common Language Runtime System.Runtime.InteropServices.COMException (0x80010105)

nobugz

Looks like a deployment problem to me. I'm guessing your LicenseKeyGeneratorClass makes a remoting call to the actual license generator component. Make sure that component is properly installed and runs correctly on your server.





Re: Common Language Runtime System.Runtime.InteropServices.COMException (0x80010105)

fsilva9

Nobugz,

I definitely installed the .dll properly. I registered it using regsvr32.exe; added a reference to my VS2005 solution; built the site.

Is there more to it than this when you state "Make sure that component is properly installed and runs correctly on your server" If so, please let me know if there are any steps that I'm missing.

Thanks in advance.




Re: Common Language Runtime System.Runtime.InteropServices.COMException (0x80010105)

nobugz

Not the DLL, I meant whatever component actually implements the licensing stuff. Obviously, I know nothing about it. You might want to contact the vendor or the original programmer.





Re: Common Language Runtime System.Runtime.InteropServices.COMException (0x80010105)

fsilva9

Nobugz,

Believe it or not I'm still tackling this problem. Is there a Microsoft support line (which I'd pay for) where I could possibly get a solution to this problem. I am desperate!

Thanks in advance.





Re: Common Language Runtime System.Runtime.InteropServices.COMException (0x80010105)

nobugz

Yeah, you can call them. support.microsoft.com, click on Contact Microsoft. However, they'll only support their own software. This licensing component doesn't sound like theirs.