Problem with NAS in NAV 2013
marvinq
Member Posts: 69
Hi,
I am having a problem with my Dynamics NAV Application Server (NAS). Here is my scenario…
I have started a NAS, which runs a codeunit every 5 minute. In this codeunit I have, for testing, created a SMTP-mail, which sends a notification-mail to me. This works perfectly, I get a mail every 5 minute.
Now I include a new automation variable, and before calling the SMTP-mail send-out, I have a CREATE, like this:
Note: When I run the codeunit manually there are no callbacks at all. It is starting my rollcenter, but nothing else (when running from development environment). Automation works just fine when called manually. The automation is a self-developed .Net .dll.
I tried du change the CREATE to default parameters (FALSE,FALSE), but then I get this error:
What can I do? Why is it suddenly a problem that I have an Automation in my codeunit running as a job queue?
I have never seen this problem before.
Please help!
I am having a problem with my Dynamics NAV Application Server (NAS). Here is my scenario…
I have started a NAS, which runs a codeunit every 5 minute. In this codeunit I have, for testing, created a SMTP-mail, which sends a notification-mail to me. This works perfectly, I get a mail every 5 minute.
Now I include a new automation variable, and before calling the SMTP-mail send-out, I have a CREATE, like this:
CREATE([automation],FALSE,TRUE);I saved the codeunit, and restated my NAS. The job queue is now after first run in a failed state. It states that:
There are no callbacks, prompting, questions, anything. Just the above mentioned CREATE.“…Callback functions are not allowed…”.
Note: When I run the codeunit manually there are no callbacks at all. It is starting my rollcenter, but nothing else (when running from development environment). Automation works just fine when called manually. The automation is a self-developed .Net .dll.
I tried du change the CREATE to default parameters (FALSE,FALSE), but then I get this error:
I am running NAV 2013 R2.“You cannot create an Automation object “[Automation]” on Microsoft Dynamics NAV Server. You must create it on a client computer.”
What can I do? Why is it suddenly a problem that I have an Automation in my codeunit running as a job queue?
I have never seen this problem before.
Please help!
0
Comments
-
Hi
Afaik in NAV 2013R2 server side com automation does not work anymore. NAS always runs on server side. Can you change to .NET type?
Regards
Thomas0 -
When you say 'automation', do you mean COM? or .net assembly / interop?
I can see you write CREATE(..) which indicates COM.
The old automations we know from the classic client are not supported on the 2013 server (due to 64 bit).
However, if you are indeed running .net interop, then you cannot use CREATE() but instead e.g.
MyDotNetVar := MyDotNetVar.SomeConstructor();Bardur Knudsen
Microsoft - Dynamics NAV0 -
BardurKnudsen wrote:When you say 'automation', do you mean COM? or .net assembly / interop?
I can see you write CREATE(..) which indicates COM.
The old automations we know from the classic client are not supported on the 2013 server (due to 64 bit).
However, if you are indeed running .net interop, then you cannot use CREATE() but instead e.g.
MyDotNetVar := MyDotNetVar.SomeConstructor();
Hi Bardur,
It seems that it is a COM I've made.
Do you have a guide on how to make .Net interop?
Thanks in advance.0 -
Well; I think you should consult msdn :-)
But since you have built it in .net already, it might be as easy as changing the output type in the project settings.Bardur Knudsen
Microsoft - Dynamics NAV0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions