mibuso.com

Microsoft Business Solutions online community
It is currently Fri May 24, 2013 12:27 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: CFRONT connectivity with Local native database on windows7
PostPosted: Wed Mar 28, 2012 6:03 pm 
Offline

Joined: Thu Jan 08, 2009 5:02 pm
Posts: 164
Location: MA
Country: United States (us)
Hi

I have written a program using Cfront in .net. it is supposed to access a native local database running on 2009SP1 / R2 on windows 7 64 bit..

When i run the program from NAVISION by running exe using shell, it loads it for the first time, but on second time i get error ...
Cannot create a file when that file already exists..
I tried many different options but i still get that error. i tried to delete __TEMP__* files from c# after the call is made on exit but still i get this error..though it deletes those files..

I am wondering if any one has faced similar error...or any idea that may work.. ](*,)

thanks.

_________________
KS


Top
 Profile E-mail  
 
 Post subject: Re: CFRONT connectivity with Local native database on window
PostPosted: Thu Mar 29, 2012 6:26 am 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Thu Oct 16, 2003 8:50 am
Posts: 12265
Location: Brno
Country: Czech Republic (cz)
It looks like previous instance was not correctly closed. Tryto load the C/Front only once, through some singleinstance codeunit

_________________
Kamil Sacek
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.


Top
 Profile E-mail WWW  
 
 Post subject: Re: CFRONT connectivity with Local native database on window
PostPosted: Thu Mar 29, 2012 6:40 pm 
Offline

Joined: Thu Jan 08, 2009 5:02 pm
Posts: 164
Location: MA
Country: United States (us)
I figured out. I was trying to close the connection with in same instance and on next run it was throwing exception.
thanks

_________________
KS


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: