Create(Microsoft.Navision.Mail) returns an error

PeterajlPeterajl 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

Answers

  • krikikriki Member, Moderator Posts: 9,110
    [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!


  • BeliasBelias Member Posts: 2,998
    deoes the dll have been registered on both test and production?
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • PeterajlPeterajl Member Posts: 25
    Belias wrote:
    deoes the dll have been registered on both test and production?
    I only registered the dll with RegAsm on the worksstation.
    Do you mean that the dll also must be registerd in both databases?

    Peter
  • PeterajlPeterajl Member Posts: 25
    kriki wrote:
    [Topic moved from 'NAV 2009' forum to 'NAV/Navision' forum]

    Sorry, I selected the wrong forum

    Peter
  • BeliasBelias Member Posts: 2,998
    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)
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • PeterajlPeterajl Member Posts: 25
    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.

    Peter
  • BeliasBelias Member Posts: 2,998
    Can you compile the object?if not, the dll has not been registered correctly.
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • PeterajlPeterajl Member Posts: 25
    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

    Peter
  • BeliasBelias Member Posts: 2,998
    you're welcome, thanks for sharing, too!
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
Sign In or Register to comment.