c# - Consuming a .net assembly using asp classic -
c# - Consuming a .net assembly using asp classic -
possible duplicate: accessing .net assembly classic asp
we have website written in asp classic. in order gradually migrate site asp.net we've decided build class library contains functions wish rewrite in c#. problem having difficulty getting work on asp classic.
following tutorials we've:
wrote sample class listed below. strongly named our assembly using 'sn -k ourkeyname.key' registered our assembly in gac using 'gacutil /i ourassembly.dll' registered our assembly com using 'regasm /tlb wirecare.dll'upon performing above steps receive next error:
server object error 'asp 0177 : 800401f3' server.createobject failed /page.asp, line 2 800401f3
below code .net class:
namespace companyname { public class test { public string dotest() { homecoming "test"; } } }
and asp page:
<% dim cart : set cart = server.createobject("companyname.test") %>
the development machines running:
windows 7 professional 64 bit visual studio 2010any ideas? thanks!
it permissions related. business relationship asp running under have adequate permissions on .net assembly?
a quick (and temporary) test add together business relationship asp running under (e.g. iusr_server-name or nt authority\network service) administrator's grouping on machine , see if things start working. if need track downwards specific file has inadequate permissions.
c# asp.net com
Comments
Post a Comment