Create(Microsoft.Navision.Mail) returns an error
Peterajl
Member Posts: 25
Hi,
Could anyone help with the following?
One of our customers has the following:
One Sql server 2005 with two navision 4.0 SP3 databases : Production and Test.
Both databases are similar of objects and setting, then only differ is the location of fysical files, on the same server, but different drives.
We have taken the smtp mail functionality from navision 5.0 and put this into the 4.0 databases.
Therefore the automation Microsoft.Navision.Mail.dll has to be registered, this is all done correctly with Regasm.exe.
When testing this functionality in the test database the programma reacts as it should.
When testing this functionality in the production database the programma gives a big error wich means that the automation could not be created.
IF ISCLEAR(Mail) THEN
CREATE(Mail);
The CREATE gives the error when running form the production database, while the test database works correctly.
How can i solve this?
Thanks in advantage,
Peter Leurink
Could anyone help with the following?
One of our customers has the following:
One Sql server 2005 with two navision 4.0 SP3 databases : Production and Test.
Both databases are similar of objects and setting, then only differ is the location of fysical files, on the same server, but different drives.
We have taken the smtp mail functionality from navision 5.0 and put this into the 4.0 databases.
Therefore the automation Microsoft.Navision.Mail.dll has to be registered, this is all done correctly with Regasm.exe.
When testing this functionality in the test database the programma reacts as it should.
When testing this functionality in the production database the programma gives a big error wich means that the automation could not be created.
IF ISCLEAR(Mail) THEN
CREATE(Mail);
The CREATE gives the error when running form the production database, while the test database works correctly.
How can i solve this?
Thanks in advantage,
Peter Leurink
0
Answers
-
[Topic moved from 'NAV 2009' forum to 'NAV/Navision' forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Belias wrote:just try to compile the objects, if you can't...re-register the dll (if the codeunit is used on server-side, e.g. nas, you have to register the dll where the nas is)
I have stopped the Nas service, registerred the dll (succesfully), compiled the objects, started the Nas service, on the server where the Nas is running.
This has no effect, the test db is running correctly while the production db gives the create error.
Peter0 -
Hi,
I have the solution, (If you can call this a solution).
I have done everything right, the code was correct, the dll was registered, etc,
But . . . the link I used to start Navision for the
- Test db consists of : C:\Program Files\Micr . . . .etc. = =D>
- Production db consists of : \\WorkstationX\C$\Program Files\Micr . . . .etc. = [-X
And WorkstationX has no dll registered. . . . . . . :oops:
All the time is has cost . . . searching . . . and the problem was hidden in the link.
In any case, thanks for the the time and help.
Kind regards
Peter0
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
- 323 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