473,402 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

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 :)
Nov 19 '05 #1
3 1102
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" <jc**@discussions.microsoft.com> wrote in message
news:EF**********************************@microsof t.com...
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 :)

Nov 19 '05 #2
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" <jc**@discussions.microsoft.com> wrote in message
news:EF**********************************@microsof t.com...
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 :)


Nov 19 '05 #3
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" <jc**@discussions.microsoft.com> wrote in message
news:FB**********************************@microsof t.com...
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" <jc**@discussions.microsoft.com> wrote in message
news:EF**********************************@microsof t.com...
> 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 :)


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: WJ | last post by:
I am attempting to use the Global.Asax to store my user's configuration. Here is the concept: 1. User logs on into the site using Form Authentication. 2. I capture the user Credential, verify it...
9
by: tshad | last post by:
I have an example I copied from "programming asp.net" (o'reilly) and can't seem to get the Sub (writefile) to execute. It displays all the response.write lines that are called directly, but not...
15
by: randyr | last post by:
I am developing an asp.net app based on a previous asp application. in the asp applications global.asa file I had several <object id="id" runat="server" scope="scope" class="comclass"> tags for...
7
by: Ankit Aneja | last post by:
I put the code for url rewrite in my Application_BeginRequest on global.ascx some .aspx pages are in root ,some in folder named admin and some in folder named user aspx pages which are in user...
4
by: NoNickname | last post by:
Hi, I need to get a string from a COM component at application start. (It's a Long Story and I cannot change this fact.) In ASP.NET 1.1, I simply called this COM component in Global.asax.cs...
6
by: Mark Rae | last post by:
Hi, When you create a new web site in VS.NET 2005, it doesn't contain a Global.asax file by default and, when you add one manually, it creates a Global.asax file with in-line code e.g. <%@...
11
by: Ron | last post by:
I have a web project compiled with the new "Web Deployment Projects" plugin for VS2005. I'm deploying the web project to one assembly and with updateable option set to ON. When I'm running the...
4
by: Hardy Wang | last post by:
Hi all, In order to solve code-behind of global.asax problem, I removed the code from global.asax, and just leave one line "<%@ Application Language="C#" Inherits="Global"%>" in this file. Then I...
3
by: Jack | last post by:
Hello, I am trying to add how many users online to my website. I have setup a Global.asax and need some morehelp. I have the following Global.asax Public Class Global Inherits...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.