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 :) 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 :)
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 :)
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 :) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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.
<%@...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|
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...
|
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,...
|
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...
|
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,...
|
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...
| |