Hi,
I have created a C# ActiveX server which is started from Javascript running on a web page. The C# library displays a form and when the user clicks a button on the form, the C# library calls a DLL. When the DLL is called, the following exception occurs:
************** Exception Text **************
System.DllNotFoundException: Unable to load DLL 'RivetzDemoWsyLibrary': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Notes:
* The resulting .DLL was registered for COM using regasm.exe DLL_PATH_AND_NAME /codebase /tlb and seems to be called without any issues from the Javascript running in Internet Exploroer.
* Using Visual Studio 2012 Professional.
* Running local server IIS Express.
* Running under my user account which has admin privileges.
* Error occurs regardless of running from Visual Studio debug web server hosting or if IIS Express is started and Internet Explorer is used to navigate to the http:\\localhost URL.
* The DLLs can be accessed without issue if I change the C# control library to an application (exe) and run it as a standalone application.
Can anyone please provide any background on the issue and what to look for to solve this problem?
Thank you very much.
AJV