Trouble registering Microsoft.Navision.Mail.dll in version 4

deltoid
Member Posts: 41
We wanted to use SMTP in version 4.02 and rather than use a 3rd party dll I decided to use the one from Navision 5.0. In my testing environment this works fine and I can register, compile and run the codeunit.
In the client's environment they can't. They run the .reg script and it says it is successfully registered, they then close Navision and open it again, when they open it and try and run the test it complains, when trying to compile the codeunit it will also complain. It is as though the .dll is not registered.
To register the DLL I use the following .reg script
In the client's environment they can't. They run the .reg script and it says it is successfully registered, they then close Navision and open it again, when they open it and try and run the test it complains, when trying to compile the codeunit it will also complain. It is as though the .dll is not registered.
To register the DLL I use the following .reg script
REGEDIT4 [HKEY_CLASSES_ROOT\Microsoft.Navision.Mail.SmtpMessage] @="Microsoft.Navision.Mail.SmtpMessage" [HKEY_CLASSES_ROOT\Microsoft.Navision.Mail.SmtpMessage\CLSID] @="{F9DAE2A4-D2F8-37C3-86D5-E4FFE166D860}" [HKEY_CLASSES_ROOT\CLSID\{F9DAE2A4-D2F8-37C3-86D5-E4FFE166D860}] @="Microsoft.Navision.Mail.SmtpMessage" [HKEY_CLASSES_ROOT\CLSID\{F9DAE2A4-D2F8-37C3-86D5-E4FFE166D860}\InprocServer32] @="mscoree.dll" "ThreadingModel"="Both" "Class"="Microsoft.Navision.Mail.SmtpMessage" "Assembly"="Microsoft.Navision.Mail, Version=1.0.2615.23507, Culture=neutral, PublicKeyToken=null" "RuntimeVersion"="v2.0.50727" [HKEY_CLASSES_ROOT\CLSID\{F9DAE2A4-D2F8-37C3-86D5-E4FFE166D860}\InprocServer32\1.0.2615.23507] "Class"="Microsoft.Navision.Mail.SmtpMessage" "Assembly"="Microsoft.Navision.Mail, Version=1.0.2615.23507, Culture=neutral, PublicKeyToken=null" "RuntimeVersion"="v2.0.50727" [HKEY_CLASSES_ROOT\CLSID\{F9DAE2A4-D2F8-37C3-86D5-E4FFE166D860}\ProgId] @="Microsoft.Navision.Mail.SmtpMessage" [HKEY_CLASSES_ROOT\CLSID\{F9DAE2A4-D2F8-37C3-86D5-E4FFE166D860}\Implemented Categories\{62C8FE65-4EBB-45E7-B440-6E39B2CDBF29}][/code]
0
Comments
-
Have you copied .DLL and .TLB file or just DLL?0
-
I can't say 100% what the client has done but my instructions were:
1. Close Navision.
2. Copy the .tlb and .dll to the Client folder of Navision.
3. Run Mail.reg.
4. Open Navision.
The only thing I can think of at the moment is that they haven't followed the instructions correctly as every computer I test it on, works.0 -
hi,
i came up with that problem like you before..after trying to register and being not able to register it, i have written my own codeunit that uses CDO... it works, but i had spended lots of time to register that dll.. now i wonder how you generated this .reg file or you found it somewhere?.. if you found somewhere, where did you find it?0 -
ayhan06 wrote:now i wonder how you generated this .reg file or you found it somewhere?.. if you found somewhere, where did you find it?
I created the .reg file myself. Only I don't remember how I did it. I think I used the regasm.exe tool that comes with the .NET Framework.0 -
ayhan06 wrote:now i wonder how you generated this .reg file or you found it somewhere?.. if you found somewhere, where did you find it?
Hi ayhan06, in my investigations today I realised how I created the .reg file again. I used the Microsoft.NET framework too regasm.exe. You can find it in the following location:
%systemroot%\Microsoft.NET\Framework\[dotnetversion]\regasm.exe if you run the /? switch on it it will list the available options.
I think the command would be something like:
regasm "C:\Program Files\Navision\Client\Microsoft.Navision.Mail.DLL" \regfile:"c:\mail.reg"
This should generate the mail.reg file which can be run and will register the dll (make sure the dll is in the same directory as the Mail.DLL and make sure the .tlb is also in the same directory as the DLL.0 -
deltoid wrote:ayhan06 wrote:now i wonder how you generated this .reg file or you found it somewhere?.. if you found somewhere, where did you find it?
Hi ayhan06, in my investigations today I realised how I created the .reg file again. I used the Microsoft.NET framework too regasm.exe. You can find it in the following location:
%systemroot%\Microsoft.NET\Framework\[dotnetversion]\regasm.exe if you run the /? switch on it it will list the available options.
I think the command would be something like:
regasm "C:\Program Files\Navision\Client\Microsoft.Navision.Mail.DLL" \regfile:"c:\mail.reg"
This should generate the mail.reg file which can be run and will register the dll (make sure the dll is in the same directory as the Mail.DLL and make sure the .tlb is also in the same directory as the DLL.
thanks deltoid.. i ll try it.0 -
Hi Deltoid,
what was eventually the solution to your problem ?0 -
ayhan06 wrote:deltoid wrote:ayhan06 wrote:
I think the command would be something like:
regasm "C:\Program Files\Navision\Client\Microsoft.Navision.Mail.DLL" \regfile:"c:\mail.reg"
This should generate the mail.reg file which can be run and will register the dll (make sure the dll is in the same directory as the Mail.DLL and make sure the .tlb is also in the same directory as the DLL.
thanks deltoid.. i ll try it.
Hi ayhan
did you succeed with this command?
I have both files:
Microsoft.Navision.Mail.DLL and Microsoft.Navision.Mail.tlb in this path
C:\Program Files\Microsoft Dynamics NAV\60\Classic
but what is mail.reg, help me out plzPleasure in the job puts perfection in the work0 -
ohh ok \:D/
I got it =D>
now the problem is :
file format error, plz see the attachment
please help out herePleasure in the job puts perfection in the work0 -
Chowdary wrote:ohh ok \:D/
I got it =D>
now the problem is :
file format error, plz see the attachment
please help out here
thanks
Chowdary
I missed space after microsoft.navision.mail.dll"/
correction microsoft.navision.mail.dll" \Pleasure in the job puts perfection in the work0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions