473,382 Members | 1,386 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,382 software developers and data experts.

Strong name for Interop Assemblies

Hi
I used Interop assemblies to read Excel data into DataSet. I am able
to run it successfully on my workstation(windows XP and VS .Net 7 and
MS Office XP) but when I port my code to server(Windows 2000,.Net
Framework 1.1,NO MS OFFICE) I get clsid not found. I believe this is
because I do not have MS Office installed on my server( I might be
wrong)

1. How do I get rid of this problem
2. If having strong names for the Interop assemblies help me..then
where do I get the assemblies with strong name( can I do it myself ).

Any Ideas?
I am working with .NET technologies for a year but never dealt with
dll and stuff...

Any help would be appriciated..

Thanks
Binny
Jul 21 '05 #1
6 6025
Hi,

I beleive CLSIDs have nothing to do with strong names. If you are given an
error that CLSID is not found, that's most likely due to Office is not
installed in the server (and indeed, you say there's NO MS OFFICE there).

On the other hand, I think there's an ODBC driver capable of reading Excel
data... you could employ it and unbind your solution from MS Office itself.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Binesh" <bi****@omnisolve-inc.com> wrote in message
news:cb**************************@posting.google.c om...
Hi
I used Interop assemblies to read Excel data into DataSet. I am able
to run it successfully on my workstation(windows XP and VS .Net 7 and
MS Office XP) but when I port my code to server(Windows 2000,.Net
Framework 1.1,NO MS OFFICE) I get clsid not found. I believe this is
because I do not have MS Office installed on my server( I might be
wrong)

1. How do I get rid of this problem
2. If having strong names for the Interop assemblies help me..then
where do I get the assemblies with strong name( can I do it myself ).

Any Ideas?
I am working with .NET technologies for a year but never dealt with
dll and stuff...

Any help would be appriciated..

Thanks
Binny


Jul 21 '05 #2
Hi,
Thanks for your reponse Lapshin.
You mean do I have to Install Office On my Server? To me it doesnt make
sense to load office applications on my server. Am I bound to load MS
Office if I have to use PIA's? Cant I register Office PIA's on Server?

Using ODBC driver is the good if you tie your columns to single
Datatype. My Excel sheet is filled by different users and will be played
by many groups before I actually process it. So I cannot interpret the
Datatype untill runtime. ODBC looks at first 8 rows to determine the
datatype. Once it determines the datatype for the column for all those
other datatypes in the same column ODBC returns null...which sucks.

Thanks
Binesh

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #3
Binesh,

PIAs do not contain any functionality - they, to be brief, just tell the
framework which COM object(s) to create and how to direct managed code calls
to the created COM object(s). Therefore, PIAs cannot read your Excel files -
they can only ask MS Office automation to do so - and yes, if the ODBC
driver does not fit your needs, you will most likely have to end up with MS
Office installed on the server.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Binesh Gummadi" <bi****@omnisolve-inc.com> wrote in message
news:ut**************@TK2MSFTNGP11.phx.gbl...
Hi,
Thanks for your reponse Lapshin.
You mean do I have to Install Office On my Server? To me it doesnt make
sense to load office applications on my server. Am I bound to load MS
Office if I have to use PIA's? Cant I register Office PIA's on Server?

Using ODBC driver is the good if you tie your columns to single
Datatype. My Excel sheet is filled by different users and will be played
by many groups before I actually process it. So I cannot interpret the
Datatype untill runtime. ODBC looks at first 8 rows to determine the
datatype. Once it determines the datatype for the column for all those
other datatypes in the same column ODBC returns null...which sucks.

Thanks
Binesh

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Jul 21 '05 #4
>2. If having strong names for the Interop assemblies help me..then
where do I get the assemblies with strong name( can I do it myself ).


You can set the .snk file to be used for your imported COM wrappers in
the project options - go to "Common Properties / General", there's a
section "Wrapper Assembly for ActiveX/COM Objects", which contains two
entries, Wrapper Assembly Key File and Wrapper Assembly Key Name.

If you add your "mylibrary.snk" file as the wrapper assembly key file,
your imported COM object now has a .NET wrapper with a strong name
(the Interop.xxxxx.dll file), which you can e.g. install in the GAC.

Marc

================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
Jul 21 '05 #5
Thanks Lapshin,

You made my life easier. I was wondering if I could get it work without
actually installing MS Office. I had gone through the PIA docs and
understood that they are just interfaces to COM Objects.

Is there a way to install the required office components(not visible to
the end user,only COM components and registrations) rather than
installing the whole Office applications?

Thanks Mark for your help...

Binesh

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #6
Binesh,

I'm afraid this is not possible, at least not that I know of.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Binesh Gummadi" <bi****@omnisolve-inc.com> wrote in message
news:uy*************@TK2MSFTNGP11.phx.gbl...
Thanks Lapshin,

You made my life easier. I was wondering if I could get it work without
actually installing MS Office. I had gone through the PIA docs and
understood that they are just interfaces to COM Objects.

Is there a way to install the required office components(not visible to
the end user,only COM components and registrations) rather than
installing the whole Office applications?

Thanks Mark for your help...

Binesh

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Jul 21 '05 #7

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

Similar topics

6
by: Kimmo Laine | last post by:
Hi, we are using COM server through interop, and would like to sign our assembly with strong name. But when building, we get the following error: "Assembly generation failed -- Referenced...
20
by: Razzie | last post by:
Hey all, I'm really going through a small hell right now - I've completely lost it :) I made a project, using two interop libraries from exchange (created them as in this msdn article:...
3
by: Mark Keogh | last post by:
Hi, Why is everything some confusng when MS are involved ;-) Anyway, I have my excel export routines working fine, now when I try to build them into my assembly, which has a strong name, I get...
9
by: Derek Martin | last post by:
<Sigh> - okay, I have given up on the hashing idea, I guess I am going to have to break down and figure the sn gooo out. I keep getting this message when strong naming my assembly (an exe): ...
14
by: Nak | last post by:
Hi there I'm trying to use the Microsoft Web Browser within a strong names .NET assembly that I have written. Unfortunately I am getting the following linker problem as the Interop DLL that was...
6
by: Binesh | last post by:
Hi I used Interop assemblies to read Excel data into DataSet. I am able to run it successfully on my workstation(windows XP and VS .Net 7 and MS Office XP) but when I port my code to...
1
by: Michael | last post by:
Help please Trying to strong name sign my project within the Assembly using the KeyFileAttribute with a sn generated key and getting an error message that one of the referenced dll's...
1
by: ShrimpBoy | last post by:
Hi! I'm using a Strong Name Key to create our assemblies, this key has the Full Trust security so we can use those "mini tools" from network drives... I'm trying to use WMI to get access to...
6
by: raylopez99 | last post by:
Anybody use Strong Name Signing? I think this is used by default for Resource files, which is one reason perhaps I can't get my resource files to work (somehow the public key is messed up, perhaps...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.