View Full Version : UNC paths in cgiconfig.cfg
02-13-2007, 01:25 PM
I'm trying out the new v3 remote web access functionality.
Our TestLog databases are not on the IIS web server. Is there any way to reference these as UNC paths from the cficonfig.cfg. There is a note on how to achieve this for Apache, but we use IIS.
02-14-2007, 03:31 AM
It appears to be similair to the Apache solution, in that the IIS service is running as a user that can't access the network.
On the server running IIS create a new user, eg TestLogIIS, ensuring that the "User must change password at next login" is unchecked (if available) and the "Password never expires" option is checked (if available).
Once the user has been created add them as a member of the "IIS_WPG" group, this will enable the access permissions it requires to run.
Open the IIS Manager, create a new application pool, eg TestLog.
Open the properties for it and click on the Identity tab, set the user name to the previously created user and enter the password.
Go to the Testlog direcotry under the websites (or the directory where you have placed the Testlog files in your IIS folder) and go to it's properties. Change the application pool to the one just created.
Restart the application pool and you should be able to view the database with the UNC path.
02-14-2007, 01:33 PM
Thanks for the instructions. I tried it and it still isn't accepting this in my config:
\\my-server.com\files\Testing\TestLogDBs\SQL (file://\\my-server.com\files\Testing\TestLogDBs\SQL) Compare 6.0
When clicking on the link, I'm getting:
Unable to open session.
The database path does not exists or cannot be accessed (\\my-server.com\files\Testing\TestLogDBs\SQL (file://\\my-server.com\files\Testing\TestLogDBs\SQL) Compare 6.0).
02-14-2007, 02:40 PM
Experimentally I tried putting a TestLog DB on my local HDD but using the C$ default share in order to test the UNC address, at \\localhost\c$\SampleDB2\ (file://\\localhost\c$\SampleDB2\) and yet got the same message.
02-14-2007, 09:22 PM
The C$ default doesn't actually share files to the network, it functions as a hidden share used for administrative purposes. You will need to specifically share the folder with the database, ensuring the correct read/write permissions are set for the user/group that the IIS server will be running as.
Once the share is working you should be able to access it through explorer using \\computername\SampleDB2\ (file://%5c%5clocalhost%5cc$%5csampledb2%5c/), which will be the same path to put into the cgiconfig.cfg file.
02-15-2007, 01:36 PM
I've got it working now, thanks. However, the way I had to do it was to set the cgi-bin properties/Directory Security/Authentication and Access Control/Username and password to a user who has access to the share.
Actually I've just got it working by disabling anonymous access so users would have to put in their own windows credentials. I tried this earlier but couldn't get it working. Strange. Must have been caching something.
04-16-2007, 04:10 PM
Have you tried this in apache?
I've got it working now
Powered by vBulletin® Version 4.1.12 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.