OLE error in NAS

m_klijberg
Member Posts: 3
We're running NAV2009 with a NAS service running on a dedicated server (Windows Server 2008 R2 Standard). No NAV client is installed on the server. When running a codeunit through the job queue the NAS service generates the following warning (visible in the event viewer):
Could not create an instance of the OLE control or Automation server identified by
GUID={68AEAA7B-9523-3511-AF5F-F2381D2C6F04} 1.0:{F9DAE2A4-D2F8-37C3-86D5-E4FFE166D860}:Unknown Automation Server.Unknown Class.
The following bit of code triggers the warning:
FileGFil.CREATE(ExportFileName);
FileGFil is a global variable with data type File.
Running the same code unit through a client doesn't raise any errors.
It appears not all required dll's are registered on the server. Is there a specific dll I should register, or should we do a full client install on the machine?
Could not create an instance of the OLE control or Automation server identified by
GUID={68AEAA7B-9523-3511-AF5F-F2381D2C6F04} 1.0:{F9DAE2A4-D2F8-37C3-86D5-E4FFE166D860}:Unknown Automation Server.Unknown Class.
The following bit of code triggers the warning:
FileGFil.CREATE(ExportFileName);
FileGFil is a global variable with data type File.
Running the same code unit through a client doesn't raise any errors.
It appears not all required dll's are registered on the server. Is there a specific dll I should register, or should we do a full client install on the machine?
0
Comments
-
a) What is the type of file you are trying to create?
b) Does the user account under which NAS is running got sufficient permissions to create/modify the file in the location where the file is created?0 -
Hi Kishragu,
a) it's a text file
b) yes, the NAS user's got complete access to the file location.
Hope you can help... thanks.0 -
You need to install the the automation control:
Microsoft Navision Mail
it has the GUID={68AEAA7B-9523-3511-AF5F-F2381D2C6F04}
you should have it in your NAV client directory, just register the "Microsoft Navision Mail.dll" with something like:
regasm "Microsoft Navision Mail.dll" /tlb:"Microsoft Navision Mail.tlb" /codebase
gacutil /i "Microsoft Navision Mail.dll"
pause0 -
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