CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Can Not Create Json File In Isapi Project

by ariopax » 03 Dec 2015 15:56

Hi

After Convert My project from standalone to isapi when i want create json file ,the browser show this error:

"Cannot create file "C:\Windows\SysWOW64\inetsrv\wwwroot\data\Temp1234920.json". The system cannot find the path specified"

Why this error show?


Best Regards.
ariopax
 
Posts: 123
Joined: 07 Dec 2014 21:09
Location: Tehran,Iran

by assapan » 03 Dec 2015 19:51

Is the data folder created and does IIS have rights to access to it ?
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by zsleo » 03 Dec 2015 20:04

This may help if it is an IIS setup / permission issue

"http://chee-yang.blogspot.de/2009/10/configure-windows-7-iis7-for-isapi-dll.html?m=1"
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by ariopax » 04 Dec 2015 06:47

Hello and tanks assapan , zsleo

My error was this :

I dont get current directory ,and when i get current directory with below command and then create my file,the problem solved.
Code: Select all
var
  CurDir: string;
begin
  // get the app path
  CurDir := TIWAppInfo.GetAppPath;
  IWMemo1.Lines.SaveToFile(CurDir + '\wwwroot\data\' + 'Temp.txt');
end;


Best Regards.
ariopax
 
Posts: 123
Joined: 07 Dec 2014 21:09
Location: Tehran,Iran


Return to JQPivot

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.