Specified directory could not be found Parameter name: s:\company

SUGGESTED

So I am trying to use the Sage 50 API in a web application. The Web App will generate invoices and send them to Sage 50. Now the data is stored on another server at \\serverName\peachtree. I have this mapped to my S drive on the server and have that user configured to run my application in IIS. Now, network drives are a pain the butt apparently with IIS. I keep getting the error message "Specified directory could not be found Parameter name: s:\company " I was thinking that I could use the UNC path instead since I know I can access the drive using that. However, changing that in the PeachTree230.ini file did not work. I got the error message: "Object must be a root directory ("C:\") or a drive letter ("C")."

So I was curious if there is a way to get IIS to access the mapped drive or if there was a way to change Sage50 to access a data path via UNC. 

Either way, would work fine for me. I have spent a lot of time on this and am ready to be done with this.

Kyle

Parents Reply Children
  • 0 in reply to Bill_Coleman

    You should be able to just map a drive letter to that path, and use that (e.g. K:\ mapped to \\servername\peachtree).

  • 0 in reply to Jon H

    See the issue is that with IIS they can't see mapped drives. So it can't find the company files. I was hoping for a way around this by using UNC path. What we eneded up doing is writing a service that lives on the same machine as our company data. This detects file changes to a folder that we could write to from the IIS machine due to the usage of UNC paths. This service then runs the api and writes what we need to the company data. Very hacky solution but it works