Jump to content
Software FX Community

issues when running IIS as 64 bit


Recommended Posts

 Hi

I had a .net 2.0 web app that was using an interop assembly (references chartfx) .  This assembly is used in some pages to generate chart images.  This was working well when IIS was running in 32 bitmode.  Now we are migrating to native 64 bit and are facing issues with these pages that use charting.  I get the following error:

 

System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)

at System.EnterpriseServices.Thunk.Proxy.CoCreateObject(Type serverType, Boolean bQuerySCInfo, Boolean& bIsAnotherProcess, String& uri)

at System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Type serverType)

at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type serverType, Object[] props, Boolean bNewObj)

Is there a way to get this to work for 64 bit ?

 

Link to post
Share on other sites

No. No unmanaged DLL works on both 32-Bit and 32-Bits. We have 32-Bit and 64-Bit versions of Chart FX 6.2 that share the same codebase. So you can use each one on each environment.

More information here:

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/13f991a5-45eb-496c-8618-2179c3753bb0.mspx?mfr=true 

"On 64-bit Windows, 32-bit processes cannot load 64-bit DLLs, and 64-bit processes cannot load 32-bit DLLs. If you plan to run 32-bit applications on 64-bit Windows, you must configure IIS to create 32-bit worker processes"

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...