InMyTightBlackTee
New Member
I created a COM+ Component using C# and then used the regsvcs tool to create the COM+ Application.<BR><BR>When I try to use the COM+ component in ASP.net (an aspx page) it says System.Web.HttpException Could not create the object<BR><BR>Any help would be greatly appreciated.<BR><BR>Thanks in advanceI figured a way to get this done. <BR><BR>First of all use the gacutil tool to put your dll in the Global Assembly Cache.. <BR>syntax : gacutil /i whatever.dll<BR><BR>Once you have done that.. from the command window.. (Make sure you are in the components directory i.e where your COM+ server looks for your dll's and tlb's ) and then run the regsvcs tool<BR><BR>syntax regsvcs /fc c:componentswhatever.dll<BR><BR>Assuming your components dir is in c:components and also make sure that the regsvcs.exe file is in that drive else it will display an error message saying there is no regsvcs utility.<BR><BR>If all this goes well.. Your Server.CreateObject .. works just fine..<BR><BR>I hope I have done the right thing. if Anyone can suggest me a better way.. it would be great<BR><BR>thanks<BR>