asp.net - Custom .net assembly in classic ASP- error 0177 : 80004003 -


i have been working on days , made progress still not working way need to.

first off project taking existing huge site (100,000+ lines of code spread out on @ least 200+ files) written in classic asp (vbscript) , converting .net framework.

the existing code uses vbscript classes, part, , plan make mimic of dozen or classes defined .net assembly both new .net version , existing classic asp pages can use - through com+.

i have made first class definition, replicated in .net , works in test.ashx page on development server (when go page in browser, expected output). receive error calling test.asp page server object error 'asp 0177 : 80004003' on line calls set obj = server.createobject("mylibrary.myclass").

i have registered custom dll via regasm regasm "c:\inetpub\siteroot\bin\mylibrary.dll" /tlb /codebase , seemed work fine (the library appears in server's component services expected methods defined , seems fine.

my gut telling me either 32-bit/64-bit problem or permissions problem. have tried number of different things on days numerous recount, suggestions appreciated.

notes:

  • the server running windows server 2012 r2
  • i used powershell add custom dll gac.
  • i using 32-bit version of regasm. tried 64-bit version, when doing that, both sides (.net , classic) error out.
  • the iis application pool site uses has 32-bit enabled , apparently has stay way because of other 3rd-party com object site uses.
  • the properties on comclass project
    • compile: register com interop checked. target cpu "any cpu"
    • application: target framework set .net framework 4.5
    • application: application type set class library
    • application, assembly information: make assembly com-visible checked
  • i added reference in main site project mylibrary.dll compiled comclass project

the top portion of .vb file first class follows

imports system imports system.web imports system.web.httpcontext imports system.string imports system.data imports system.data.sqlclient imports system.configuration imports system.runtime.interopservices imports system.enterpriseservices  <assembly: applicationname("mylibrary")> <assembly: applicationactivation(activationoption.server)> <assembly: applicationaccesscontrol(false, accesscheckslevel:=accesschecksleveloption.applicationcomponent)>  <comclass(myclass.classid, myclass.interfaceid, myclass.eventsid), progid("mylibrary.myclass")> public class myclass     inherits servicedcomponent     [guids]     [subs , functions ... ] 

i got working... different things tried apparently preventing me seeing of changes making in further attempts. because today tried starting on - went onto server , cleaned registry of occurrences of assembly's name , removed gac, everywhere think of.

then on local computer used visual studio "publish" website references custom dll. instantly worked on test.ashx page. registered dll using regasm (64-bit) before , boom worked on asp side too!

i did not receive suggestions thank gave thought.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -