Authentication error
subhaster
Member Posts: 64
Hi,
I'm trying to access data from Navision through the CFrontDotNet.dll methods, to fetch data, i.e., read-only.
The code that has been used is as follows:
The error that I get here is:
I have tried using Windows authentication as well as Database authentication (sa) but in both the cases I keep getting this error.
I am trying to invoke this method from a web service.
If I use the same piece of code as part of a Windows application. it works fine. The problem happens when a web service or any web application comes into the picture.
Help is appreciated.
I'm trying to access data from Navision through the CFrontDotNet.dll methods, to fetch data, i.e., read-only.
The code that has been used is as follows:
private bool connectToNav()
{
NavisionDriverType driver = NavisionDriverType.Sql;
CFrontDotNet _cFrontDotNet = new CFrontDotNet(driver);
_cFrontDotNet.ConnectServerAndOpenDatabase("server name", NavisionNetType.SqlDefault, "database name", 32000, true, true, "username", "password");
return(true);
}
The error that I get here is:
Microsoft.Navision.CFront.CFrontException: Error Code: 1246487 - Error Message: You do not have permission to run the 'C/FRONT' System. Contact the system manager if you need to have your permissions changed.
I have tried using Windows authentication as well as Database authentication (sa) but in both the cases I keep getting this error.
I am trying to invoke this method from a web service.
If I use the same piece of code as part of a Windows application. it works fine. The problem happens when a web service or any web application comes into the picture.
Help is appreciated.
Subhasish Chakraborty,
Systems Analyst,
MBS Dynamics.
Systems Analyst,
MBS Dynamics.
0
Comments
-
place your licence file into appreciate location for web service.0
-
1) You need to have C/Front granule in used license file
2) User account used to login must have assigned permissions for System object C/Front0
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
- 250 Dynamics CRM
- 102 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
