Hi,
  I checked the below, and it is running as admin.
I added the following withing the default() function, and only called up the web page once to create the file:
void CDataViewExtension::Default(CHttpServerContext* pCtxt,LPCTSTR ptr)
{
 StartContent(pCtxt);
 WriteTitle(pCtxt);
  FILE *fp;
  fp=fopen("test.txt","w+");
  fclose( fp );
 
  EndContent(pCtxt);
}
I get a 500 error code if I leave the FILE commands above in, and if I remove them its okay. I just entered the above to show the problem.
 
Anyone help?
 
Thanks
Neil
----- Original
Message -----
From: /dev/null
Sent: Tuesday, November 29, 2005 7:17 PM
Subject: Re: [msvc] problems with database in ISAPI

im runnin it on my notebook (xp pro), and there is only 1 user , the default administrator (me). I assumed as I am the administrator (the only user) I would have permission for everything
That's not true. Services run as other users. Check the service config in the control panel to see what user it iis running as. You can also CTRL-SHIFT-ESC and look in the process list for inetinfo and see what user it runs as on your system. It usually runs as SYSTEM.


_______________________________________________
msvc mailing list
[email protected]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.
_______________________________________________
msvc mailing list
[email protected]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for 
subscription changes, and list archive.

Reply via email to