Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Registering DLL on server

 
Thread Tools Search this Thread
Old 04-05-2004, 09:00 PM   #1
Default Registering DLL on server


Hi,

How do i register a DLL(like OWC) on the server...will just running
regsvr32 work....any syntax issues...??

Thanks.


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



anon
  Reply With Quote
Old 04-05-2004, 09:09 PM   #2
Peter O'Reilly
 
Posts: n/a
Default Re: Registering DLL on server

Run regsvr32.exe from the command line. Text (or a pop-up) will appear
instructing you what the command line arguments are for this utility which
is to be used for COM type DLLs only.
--
Peter O'Reilly


  Reply With Quote
Old 04-06-2004, 01:28 PM   #3
anon
 
Posts: n/a
Default Re: Registering DLL on server


Hi,
I ran regsvr32 path\dllname on cmd n it gave me ddl succesfully
registered prompt, however i still get the error "CLSID is not valid or
not registered when i access the application and export to excel(which
is where i use OWC).I also tried placing the DLL in the bin
directory(not sure if this is a neccesity) and still the same.....is
there anything else i need to do, should i restart the server after
registering.....?...


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  Reply With Quote
Old 04-06-2004, 08:35 PM   #4
Peter O'Reilly
 
Posts: n/a
Default Re: Registering DLL on server

What is OWC? OWC.DLL? As in Microsoft Office Web Components? If so, those
components are already registered when you install Microsoft Office. There
should be no need for you to register them (again).

Moving the DLL to the bin directory after it's been registered is a problem
to. If not moving after, then reregistering it in a different location,
without 1st unregistering it may cause problems.


More information needs to be provided to troubleshoot your problem.
--
Peter O'Reilly


  Reply With Quote
Old 04-07-2004, 12:27 AM   #5
anon
 
Posts: n/a
Default Re: Registering DLL on server


Thanks Peter !
By OWC, i mean Office Web Components....the server does not have
MSoffice installed which is why i would like to add just this dll(to the
appropriate folder,with the OWC on the development server) ....

Everytime i have experimented with different locations for the dll, i
have unregistered the dll and registered it again from the new location,
so this should not be a problem....

Where should this OWC10.DLL be placed....the server runs on windows
2000....

What about MSOWC.DLL...is this same as OWC(for office 2000, as OWC10 is
for XP?)..i have referenced OWC in my code,so should i add MSOWC.DLL or
OWC10 will do the job....

I hope you can help me with this, been stuck with it for a while now....

Thanks for your time.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  Reply With Quote
Old 04-07-2004, 12:44 PM   #6
Kevin Spencer
 
Posts: n/a
Default Re: Registering DLL on server

I believe that in order to use Office COM objects on the server, you would
have to install a licensed copy of Office on the server, in which case all
of the COM DLLs for Office would be where they ought to be.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"anon" <> wrote in message
news:...
>
> Thanks Peter !
> By OWC, i mean Office Web Components....the server does not have
> MSoffice installed which is why i would like to add just this dll(to the
> appropriate folder,with the OWC on the development server) ....
>
> Everytime i have experimented with different locations for the dll, i
> have unregistered the dll and registered it again from the new location,
> so this should not be a problem....
>
> Where should this OWC10.DLL be placed....the server runs on windows
> 2000....
>
> What about MSOWC.DLL...is this same as OWC(for office 2000, as OWC10 is
> for XP?)..i have referenced OWC in my code,so should i add MSOWC.DLL or
> OWC10 will do the job....
>
> I hope you can help me with this, been stuck with it for a while now....
>
> Thanks for your time.
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



  Reply With Quote
Old 04-07-2004, 01:48 PM   #7
anon
 
Posts: n/a
Default Re: Registering DLL on server


Thanks all for responding...solved the problem....
needed to use MSOWC.DLL...
For all those havign similar problems, i will try to add a step by step
procedure here:
1.Copy the MSOWC.DLL from your development machine(where the code works)
into C:\WINNT\system32 folder of your production server
2.run regsvr32 <filepath> (which will be as above mentioned).
3. you should get a popup box saying dllregistered succesfully or
something to that effect...
4.and u r all set....

Note: MSOWC.DLL is the dll name for the refernce OWC.....
OWC10.DLL is the dll name for the reference OWC10...

Cheers !

Ben


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  Reply With Quote
Old 04-07-2004, 01:52 PM   #8
Peter O'Reilly
 
Posts: n/a
Default Re: Registering DLL on server

You may run into a problem in that the dlls you mention may be dependent on
other DLLS, of type COM and otherwise. If you have Visual Studio 6, there
are included utilities ("Tools") to tell you if this is true. Dependency is
one thing, Office Web Components may consist of more than one independent
DLL file.

If time is not a factor, then give it a try. Otherwise, the best bet is to
install MS Office. Actually, you may install only one Office product, say
Access 2000 to have
Office Web Components installed on your machine. Also note, your end users
must also have MS Office/OWC installed on their local (web client) machines
to use your application.

--
Peter O'Reilly


  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump