System.TypeInitializationException

J

Jm

Hi all

I just finished converting a program from vb6 to vb.net by rewriting it bit
by bit. The program uses a dll which contains a servername and domain name
in it. Under vb6 all i had to was have this file registered by using
regsvr32 and no matter where it existed the program would work as long as it
was registered. Now ive made a new dll and compiled it and made a refernce
to it in the software as i did under vb6. The problem is first off if i try
to register it with regsvr32 in the usual spot i was putting it
(%WINDIR%\System32) i get a strange error saying the dllregisterserver entry
point is not found ? If i try to run the software i get a the exception. So
im guessing ive done something wrong along the way and need a bit of help to
get back on track. The .EXE file normally runs of a mapped network drive and
the DLL file is registered on the local machines. Tell me this is still
possible to do. Any help is greatly appreciated

Thanks
 
J

Jm

Hi all

Well i half solved my problem, i found that i had to assign a strong name to
my dll and put in the assembly directory on the machine. Which it now runs
from local hard drive ok but not from network, what else am i doing wrong ?
 
G

Greg Burns

Which it now runs
from local hard drive ok but not from network, what else am i doing wrong
?

Is security the issue here?

http://tinyurl.com/48z5l

I usually just run the wizard and chose "Adjust .Net Security" and grant the
computer Full Trust for intranet zone. Probably not the safest thing to do,
but it works and I only got to do it once.

Greg
 
J

Jm

Hi all

Is it possible to trap this error (the error being that a referenced dll has
not been added to the assembly cache on the machine) ?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top