473,806 Members | 2,565 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C#/Excel automation add-in not working on MediaCenter?

I have written a simple Excel automation add-in using c#. It works
fine on my WinXP PC, but does not work on my MediaCenter PC. The
sympton is that the add-in is shown in the add-in list but all the
functions are not available (i.e. when you open the function help
dialoug, these functions are not displayed, actually even the assembly
is not shown in the category.)

I have tried (1) recompile the code on the MediaCenter, (2) manually
register the code compiled on XP, (3) run a setup program created using
visual studio. None of them worked.

I guess there may be something specific on the MediaCenter machine or
some Excel configuration (e.g. security etc). But I just couldn't
figure it out. Any suggestions and recommendations , or even wildest
guess, are welcomed.

My environment: Visual Studio 2005, Excel 2003

Jan 27 '07 #1
3 1337
BTW, I have also tried sign my assembly, didn't work either.

Jan 27 '07 #2
My interest,

I would rather point the fingers to the environment. Did you verify if all
support assemblies you are using - or COM objects - are properly installed
and have the same version as you have on the XP machine.

In fact, Media Center it's almost the same Windows (to not say the same) as
the XP. It only has the Media Center application added to the system. As
well as a notepad application.

If you are using VSTO, make sure everything looks the same as your XP
machine.

I hope it helps.

--
Regards,
Robson Siqueira
Enterprise Architect
"My interest" <my********@gma il.comwrote in message
news:11******** **************@ q2g2000cwa.goog legroups.com...
>I have written a simple Excel automation add-in using c#. It works
fine on my WinXP PC, but does not work on my MediaCenter PC. The
sympton is that the add-in is shown in the add-in list but all the
functions are not available (i.e. when you open the function help
dialoug, these functions are not displayed, actually even the assembly
is not shown in the category.)

I have tried (1) recompile the code on the MediaCenter, (2) manually
register the code compiled on XP, (3) run a setup program created using
visual studio. None of them worked.

I guess there may be something specific on the MediaCenter machine or
some Excel configuration (e.g. security etc). But I just couldn't
figure it out. Any suggestions and recommendations , or even wildest
guess, are welcomed.

My environment: Visual Studio 2005, Excel 2003

Jan 27 '07 #3
Robson Siqueira wrote:
My interest,

I would rather point the fingers to the environment. Did you verify if all
support assemblies you are using - or COM objects - are properly installed
and have the same version as you have on the XP machine.

In fact, Media Center it's almost the same Windows (to not say the same) as
the XP. It only has the Media Center application added to the system. As
well as a notepad application.
I don't think that is the case entirely. There are other things added
to the system, typically by integrators such as dell. My system came
with way too many extra MCE add-ins. Those add-ins could potentially
introduce incompatibiliti es.

And of course, MCE comes with .NET framework.

Regards
Jan 28 '07 #4

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

Similar topics

1
1912
by: dlakme | last post by:
Hi, I tried to add column headers and delete all rows to excel database which is a linked server to my sql server db. I got an error message, "delete data through linked server is not supported by Isam". I tried to use FSO to write to the excel file, but seems like FSO support write to only text file.
12
3230
by: elziko | last post by:
I'm using late binding (I must) to automate Excel. My code opens Excel after createing and poulating some sheets. My problem is that when the user finally decides to close Excel its process is left running until my application closes. I have tried setting my Excel.Application object to Nothing. I have tried to then fore the GC into action using:
4
3130
by: goonsquad | last post by:
I'm writing an Excel Automation app and I'm running to a problem early on with what should be a basic step. Dim oExcel As Object Dim oBook As Object Dim oSheet As Object Dim oRng As Excel.Range oExcel = CreateObject("Excel.Application") oBook = oExcel.Workbooks.Add oSheet = oBook.Worksheets(1)
0
230
by: Troy | last post by:
I have VB.Net code that opens Excel files and imports data from them. It works fine for all versions up to 2003 and has for over a year. We have users updating to Office 2003 and the Excel automation breaks on those machines. Does coding to the earliest supported version of Excel not apply once you get to 2003?
3
1837
by: Mike | last post by:
Hello, I am attempting to export the contents of a datagrid on my webform (using Excel automation) through ASP.NET. I have added the Excel object library to my VS ASP.NET project but I am lost on how to export my datagrid contents to Excel? I am sure it can be done but having difficulties figuring out the code.
3
1606
by: Gultekin Komanli | last post by:
Hi all, I'm new to .NET stuff and trying find a way to do automation with Excel, using VB 2005 EE. I searched this forum, there are samples that use some namespaces for office automation but I was not able to use those, is this feature disabled or what is wrong ? TIA
0
1167
by: mward | last post by:
I just upgraded my Office 2003 to SP2 and am having problems with my Excel automation code from C#. The version of Excel.exe that I'm now using is 11.0.8033.0. It appears as though the object model has changed and I'm now getting errors such as: 'Excel.Application' does not contain a definition for 'Visible' I'm getting similar errors with every call I'm making to the object. I've tried creating the objects with type...
3
5071
by: Tim Marsden | last post by:
Hi, I am currently creating an instance of Excel using VB.NET Automation. dim xl as Excel.Application xl = new Excel.Application However, how can I have more control over the starting of Excel. For example I want to specify command line switches, or prevent certain ComAdd-ins from loading when I start Excel.
18
25729
by: John Bailo | last post by:
I want to write an Excel file (.xls format) from some database data. I don't want to use Excel.exe because of all the automation and security issues. Does Microsoft document the .xls file format anywhere? Is there any c# class that will let me do this?
4
2767
by: Keith Wilby | last post by:
How controllable from Access VBA is Excel? I'm currently using automation to dump 2 columns of data into an Excel spreadsheet so that the end user can create a line graph based on it. Could the line graph be created from Access as part of the automation process? Is it also possible to rename the Excel worksheets from Access? Thanks. Keith.
0
9597
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,...
1
10372
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9187
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
7650
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
6877
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
5546
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...
0
5682
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4329
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
3851
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.