Page 1 of 1

environment issue? win8.1 vs win server 2012

Posted: 2016-06-06T14:22:42-07:00
by mcbain942
This works fine on windows 8.1

Windows Server 2012

Code: Select all

             string file = "c:\\inetpub\\wwwroot\\stylus\\Masks\\file.png";
                                MagickImage mask = new MagickImage(file);
"Error cannot find file c:\inetpub\wwwroot\stylus\Masks\file.png.\n\rParameter name:"

i have tried other working files all same answer. i took the file extension out. There is nothing wrong with the file mask file itself it works fine on console application.

Re: environment issue? win8.1 vs win server 2012

Posted: 2016-06-06T14:30:33-07:00
by mcbain942
ok its linux based so no caps.

thats the reason. So windows servers files have to be lower cased

Re: environment issue? win8.1 vs win server 2012

Posted: 2016-06-06T15:22:35-07:00
by snibgo
mcbain942 wrote:So windows servers files have to be lower cased.
Not exactly.

Filenames on Windows and *nix may contain both upper and lower case. *nix users often don't use upper-case in their filenames. Windows system programs mostly tolerate the user typing in either case. But if the processing will be done by a *nix system, you need to specify the correct case.

Re: environment issue? win8.1 vs win server 2012

Posted: 2016-06-07T07:58:21-07:00
by mcbain942
i promise to update the exact scenario

but the first line would not tolerate underscores or caps, the 2nd line would.

I want to be sure and I will also take code out of the using clause just so things are flowing properly.

This code did work on windows8.1 without any issue. moving it to IIS and server (either could be the problem) there was an issue.

I know you would scream oh, its a filesystem permission issue, but my worker process is temporarily administrator