473,857 Members | 1,842 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(win dows 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 6071
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****@omnisol ve-inc.com> wrote in message
news:cb******** *************** ***@posting.goo gle.com...
Hi
I used Interop assemblies to read Excel data into DataSet. I am able
to run it successfully on my workstation(win dows 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****@omnisol ve-inc.com> wrote in message
news:ut******** ******@TK2MSFTN GP11.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.d ll file), which you can e.g. install in the GAC.

Marc

=============== =============== =============== =============== ====
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)i nova.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****@omnisol ve-inc.com> wrote in message
news:uy******** *****@TK2MSFTNG P11.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
5081
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 assembly 'Interop.MyComServer' does not have a strong name." How can is sign my COM server with strong name?
20
3205
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: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsmtps/html/writingmngsinks.asp). I set my project properties as 'Register as COM interop' to true, I can install it my project on my developement machine without a flaw. Great.
3
1610
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 the Unable to emit assembly: Referenced assembly 'Interop.VBIDE' does not have a strong name message and everything stops. Now I searched the NET and all I can find is
9
4284
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): Unable to Emit Assembly: Referenced assembly 'Interop.Scripting' does not have a strong name. I get the error - that DLL that I am using isn't strong named, but how does one strong name an exisitng file that I just imported? I did a search for...
14
4493
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 created does not have a strong name, "Unable to emit assembly: Referenced assembly 'Interop.SHDocVw' does not have a strong name"
6
353
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 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...
1
1268
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 (Interop.DAO.dll) is not also strong name signed. Apparently to sign a project all referenced assemblies supplied by others must be signed as well. As such trying to strong name sign the Interop.DAO.dll using tlbimp.exe with the sn keyfile but now...
1
1694
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 data in our SMS Server... Now, when I tried to create my assembly I got this message... "Unable to emit assembly: Referenced assembly 'interop.WbemScripting' does
6
5690
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 since I've installed so many versions of Visual Studio) RL http://msdn.microsoft.com/en-us/library/h4fa028b.aspx Deployment in Visual Studio
0
11083
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10808
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
10394
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
9549
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
7940
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
5774
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
4592
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
4191
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.