473,804 Members | 3,700 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

error BC30002: Type Excel.Applicati on is not Defined

Mel
Can anyone tell me why I am getting this error? It bombs on this line
of my VB code:
Public appExcel As New Excel.Applicati on

It works when I test it on my machine but once I release the page to
the web server I get the error when I click on a hyperlink that loads
the page. I have the Interop.Excel and Interop.Microso ft.Office.Core
references added to my project but I still get this error. What am I
missing?

Aug 10 '07 #1
8 9723
You need to install Excel on the server as well. Remember the interop
libraries are just wrappers around the actual Excel COM library.

BTW, automating Microsoft Office applications on server-side is not
recommended and nor supported. For more info, read
http://support.microsoft.com/kb/257757/

"Mel" wrote:
Can anyone tell me why I am getting this error? It bombs on this line
of my VB code:
Public appExcel As New Excel.Applicati on

It works when I test it on my machine but once I release the page to
the web server I get the error when I click on a hyperlink that loads
the page. I have the Interop.Excel and Interop.Microso ft.Office.Core
references added to my project but I still get this error. What am I
missing?

Aug 10 '07 #2
"Mel" <ML********@gma il.comwrote in message
news:11******** *************@d 30g2000prg.goog legroups.com...
Can anyone tell me why I am getting this error? It bombs on this line
of my VB code:
Public appExcel As New Excel.Applicati on
Because server-side Office automation doesn't work:
http://support.microsoft.com/default...US;q257757#kb2

You'll need to find a different method of integrating Excel into your
ASP.NET app - what are you trying to do exactly...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 10 '07 #3
Mel
On Aug 10, 11:45 am, "Mark Rae [MVP]" <m...@markNOSPA Mrae.netwrote:
"Mel" <MLights...@gma il.comwrote in message

news:11******** *************@d 30g2000prg.goog legroups.com...
Can anyone tell me why I am getting this error? It bombs on this line
of my VB code:
Public appExcel As New Excel.Applicati on

Because server-side Office automation doesn't work:http://support.microsoft.com/default...US;q257757#kb2

You'll need to find a different method of integrating Excel into your
ASP.NET app - what are you trying to do exactly...?

--
Mark Rae
ASP.NET MVPhttp://www.markrae.net
The Excel spreadsheet is a calculator. It has a ton of formulas which
were written by a 3rd party vendor of ours. Instead of reinventing
the wheel and creating a new web page which incorporates all of those
same formulas I figured it was easier to just have Excel run in the
background with that spreadsheet open (for read only access). The
idea is, when the user changes an input field on the web page the
visual basic code changes the corresponding field in the spreadsheet
which is running in the background and just retrieves the results from
the spreadsheet and places them on the web page "outputs" section.

Then, as far as maintenance is concerned, if in the future any of the
calculations change we can just update the spreadsheet and no code
would need to be changed on the web site.
Aug 10 '07 #4
"Mel" <ML********@gma il.comwrote in message
news:11******** **************@ z24g2000prh.goo glegroups.com.. .
I figured it was easier to just have Excel run in the background
Won't work, I'm afraid - Excel (like the rest of Office) just isn't designed
to be run like this...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 10 '07 #5
Mel
On Aug 10, 12:16 pm, "Mark Rae [MVP]" <m...@markNOSPA Mrae.netwrote:
"Mel" <MLights...@gma il.comwrote in message

news:11******** **************@ z24g2000prh.goo glegroups.com.. .
I figured it was easier to just have Excel run in the background

Won't work, I'm afraid - Excel (like the rest of Office) just isn't designed
to be run like this...

--
Mark Rae
ASP.NET MVPhttp://www.markrae.net
Seriously. That stinks. So what are my alternatives?

Aug 10 '07 #6
Mel
On Aug 10, 11:16 am, Siva M <shiva...@onlin e.excite.comwro te:
You need to install Excel on the server as well. Remember the interop
libraries are just wrappers around the actual Excel COM library.

BTW, automating Microsoft Office applications on server-side is not
recommended and nor supported. For more info, readhttp://support.microso ft.com/kb/257757/

"Mel" wrote:
Can anyone tell me why I am getting this error? It bombs on this line
of my VB code:
Public appExcel As New Excel.Applicati on
It works when I test it on my machine but once I release the page to
the web server I get the error when I click on a hyperlink that loads
the page. I have the Interop.Excel and Interop.Microso ft.Office.Core
references added to my project but I still get this error. What am I
missing?
Yep, we did install Excel on the web server. If it's not supported
does that mean it absolutely can't be done? Is that the reason why I
am getting the error message, because it's not supported?

Aug 10 '07 #7
"Mel" <ML********@gma il.comwrote in message
news:11******** **************@ d30g2000prg.goo glegroups.com.. .
If it's not supported does that mean it absolutely can't be done?
Yes.
Is that the reason why I am getting the error message, because it's not
supported?
The reason you're getting the error message is because it doesn't work,
which is also the reason why it's not supported...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 10 '07 #8
"Mel" <ML********@gma il.comwrote in message
news:11******** **************@ e9g2000prf.goog legroups.com...
Seriously. That stinks. So what are my alternatives?
http://www.aspose.com/Products/Aspos...s/Default.aspx

Says it supports VBA, though I've never used it in this way...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 10 '07 #9

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

Similar topics

4
8468
by: IMS.Rushikesh | last post by:
Hi All, I am trying to execute below code but it gives me an COMException ///// Code Start //// public string GetName(Excel.Range range) { try { if (range.Name != null)
0
1868
by: Nuve | last post by:
I followed the instructions on the Microsoft article (http://support.microsoft.com/default.aspx?scid=kb;en- us;326340) on HOW TO: Authenticate against the Active Directory by Using Forms Authentication and Visual Basic .NET. After completing and running the page I get the following error message on the Logon.aspx file: Compiler Error Message: BC30002: Type 'LdapAuthentication' is not defined.
0
1467
by: ADE | last post by:
Hi, I am compiling my ASP.NET /VB.NET code without any errors But on running the .aspx file on the browser i m getting an error like BC30002 type <classname> not defined.I am getting a similar error for ADODB also despite adding a proper reference. The classname is a name of a user defined class.
11
3143
by: Wolfgang Kaml | last post by:
I am not sure if this is more of an expert question, but I am sure that they are out there. I'd like to setup a general application or bin directory on my Win2003.Net Server that will hold some useful utils that more pages on that server can use. As an example, I have created a Page Counter class that opens an Access .mdb file, counts the current entries for that page, and adds a new entry with some information regarding the current...
1
4346
by: J Quick | last post by:
I'm getting the following compilation error on the line of vb.net script in the aspx code below. Compiler Error Message: BC30002: Type 'DirectoryEntry' is not defined. Dim dirEntry As new DirectoryEntry(strLDAPPath) I have System.DirectoryServices added to the project references and to the aspx form. The autogenerated code includes "Imports
2
3355
by: SomSallyX | last post by:
Hi I'm new to .Net; I tried a program to check for the internet connection. but when i tried to compile the code i got the following error error BC30002: Type 'WebResponse' is not defined. error BC30002: Type 'WebRequest' is not defined. (I compiled the program from command prompt using the switch /r and specified the system.dll and system.Web.dll)
0
4755
by: mchuc7719 | last post by:
Hello, I have a Vb.Net 2005 ClassLibrary, when I try to compile using MSBee, only get errors. Before I to run the command line, I open in notepad the .vbproj and I was add the next line: Target CoreCompile: C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Vbc.exe
4
14855
by: Gina | last post by:
I get this error: BC30002: Type 'Intranet.dsScreenShow' is not defined. My page works on my machine but when put on the server I get the above error. Any ideas why? PS Intranet is my namspace. Sorry to not be much help - I inherited the page from someone else and it all works except on the server. Thanks!
0
1424
by: =?Utf-8?B?amFzbGVndW1l?= | last post by:
The error Compiler Error Message: BC30002: Type 'CUNAMutual.CorporateComponents.PageTemplate' is not defined. I have some corporate components that are used as styles for page uniformity. These components have been installed and are part of the reference on the web site. They are also part of the list on the project properties. I have even checked the GAC and they are in there. Finally I used the imports statement to see if that...
0
9582
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10335
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10082
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9157
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7621
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6854
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3821
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.