CFRONT.Dll and ASP.NET help needed.

bbgajjar
Member Posts: 12
Hi,
I am trying to make ASP.NET application which takes data and insert into NAV Native database.
When i am trying to execute my application I am getting exception ...
The Navision CFront initialization failed, with following error: Exception of type 'System.Exception' was thrown.. Please verify that CFront.dll/CFrontsql.dll are available and located in the directory where the application is started
I really don't understand "directory where the application is started" term.
I have tried to execute application comes with SDK at C:\Program Files\Microsoft Dynamics NAV\60\SDK\CFRONT named DotNetSampleApplication and tried to give path of database ie. c:\database.fdb . Same error I encountered.
Will you please help me to solve this issue as I am stuck with it? Without connecting database I cant do anything.
Is there any alternative available?
Please guide me. Attached is error i am getting while executing DotNetSampleApplication.
Thanks,
Bhavin
I am trying to make ASP.NET application which takes data and insert into NAV Native database.
When i am trying to execute my application I am getting exception ...
The Navision CFront initialization failed, with following error: Exception of type 'System.Exception' was thrown.. Please verify that CFront.dll/CFrontsql.dll are available and located in the directory where the application is started
I really don't understand "directory where the application is started" term.
I have tried to execute application comes with SDK at C:\Program Files\Microsoft Dynamics NAV\60\SDK\CFRONT named DotNetSampleApplication and tried to give path of database ie. c:\database.fdb . Same error I encountered.
Will you please help me to solve this issue as I am stuck with it? Without connecting database I cant do anything.
Is there any alternative available?
Please guide me. Attached is error i am getting while executing DotNetSampleApplication.
Thanks,
Bhavin
0
Comments
-
Hi,
I Got partial solution.
If you are developing Windows application in .NET then put CFront.dll inside folder where your application .exe is being generated i.e. bin/debug folder.
In case of ASP.NET application it will be .exe file of your temporary web server i.e. WebDev.WebServer.exe at C:\Windows\Microsoft.NET\Framework\v2.0.50727 in case of running from VS 2005 (kindly check with other versions). If application is hosted in IIS then it need to kept at C:\Windows\System32\inetsrv with w3wp.exe
But now in ASP.NET I am facing below error...
Couldn't connect or open the database, verified that database exist, servername is correct and connection and database is closed before connecting. If multiple Dynamics NAV versions are installed, then remember to set the NavisionPath to the correct client files. Error thrown is : Error Code: 3080193 - Error Message: Error 1 in module 47
OR
Couldn't connect or open the database, verified that database exist, servername is correct and connection and database is closed before connecting. If multiple Dynamics NAV versions are installed, then remember to set the NavisionPath to the correct client files. Error thrown is : Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Code is..
CFrontDotNet.DriverType = NavisionDriverType.Native;
CFrontDotNet.NavisionPath = "C:\\Program Files\\Microsoft Dynamics NAV";
CFrontDotNet.Instance.ConnectServerAndOpenDatabase("leap", NavisionNetType.NativeSecureTcp, "C:\\Database\\database.fdb", 20000, false, true, "", "");
This works nice with windows applicaton but not with web application.
Can anyone clear me on this? Help me out guys...!!!???
Thanks,
Bhavin0 -
Hi,
I have open DATABASE.FDB file from NAV Classic and some one is working on it. Now with my ASP.NET application or say windows application another person is trying to connect to same database.fdb whether in same network or other network.
Is it possible to access .fdb same time as mentioned above?
I am facing error that database in use or not closed properly. I am able to open .fdb in nav classic but not with .net application at same time.
Please guide.
Thanks,
Bhavin0 -
[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 -
HI
Read this Blog Post and get some Idea about it.
http://navdevelopers.blogspot.com/2010/ ... -page.html.
If you have any query . Contact me.0 -
I am using Zet Excel platform
Try it
It helped me a lot !-3
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