![]() |
|
|
|||||||
![]() |
ASP Net - Problem with global.asax and sare object |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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 -- Sorry for my English =?Utf-8?B?SnVhbiBDYXJsb3M=?= |
|
|
|
|
#2 |
|
Posts: n/a
|
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. "Juan Carlos" <> wrote in message news:EF4B8D1D-DF93-4CCE-9FBC-... > 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 > > -- > Sorry for my English Kevin Spencer |
|
|
|
#3 |
|
Posts: n/a
|
Thanks Kevin, but how can I make a .Net Interop and how deploy and use after??
"Kevin Spencer" wrote: > 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. > > "Juan Carlos" <> wrote in message > news:EF4B8D1D-DF93-4CCE-9FBC-... > > 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 > > > > -- > > Sorry for my English > > > =?Utf-8?B?SnVhbiBDYXJsb3M=?= |
|
|
|
#4 |
|
Posts: n/a
|
Hola, Juan,
The following (and related) page should be helpful: http://msdn.microsoft.com/library/de...assemblies.asp -- HTH, Kevin Spencer Microsoft MVP ..Net Developer Neither a follower nor a lender be. "Juan Carlos" <> wrote in message news:FB0B1B50-E2BA-4D06-AB33-... > Thanks Kevin, but how can I make a .Net Interop and how deploy and use > after?? > > "Kevin Spencer" wrote: > >> 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. >> >> "Juan Carlos" <> wrote in message >> news:EF4B8D1D-DF93-4CCE-9FBC-... >> > 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 >> > >> > -- >> > Sorry for my English >> >> >> Kevin Spencer |
|