Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Problem with global.asax and sare object

 
Thread Tools Search this Thread
Old 01-04-2005, 06:53 PM   #1
Default Problem with global.asax and sare object


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=?=
  Reply With Quote
Old 01-04-2005, 07:42 PM   #2
Kevin Spencer
 
Posts: n/a
Default Re: Problem with global.asax and sare object
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
  Reply With Quote
Old 01-04-2005, 08:19 PM   #3
=?Utf-8?B?SnVhbiBDYXJsb3M=?=
 
Posts: n/a
Default Re: Problem with global.asax and sare object
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=?=
  Reply With Quote
Old 01-04-2005, 08:35 PM   #4
Kevin Spencer
 
Posts: n/a
Default Re: Problem with global.asax and sare object
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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46