Problem with global.asax and sare object

G

Guest

Hi,

I developer an ASP.NET web application that use an COM object.

In global.asax put <object id="myCom" runat="server" classid="COMClass"
scope="session"/>
It's ok, no?? (little question, it's strange that in Visual Studio 2003 .Net
need open global.asax with notepad to write the tag "object")

Well, when i go to my asp page, myPage.aspx.VB and put "myCom.myMethod()"
and go to compiler, it's gime an error . (In asp with vb 6.0 this it's ok)

What's wrong??? anyone can I help me???

Thanks
 
K

Kevin Spencer

Sure. ASP.Net can't work with COM. You need to create a .Net Interop
assembly and use that.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top