environment issue? win8.1 vs win server 2012

Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
Post Reply
mcbain942
Posts: 13
Joined: 2016-05-26T09:08:40-07:00
Authentication code: 1151

environment issue? win8.1 vs win server 2012

Post by mcbain942 » 2016-06-06T14:22:42-07:00

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.

mcbain942
Posts: 13
Joined: 2016-05-26T09:08:40-07:00
Authentication code: 1151

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

Post by mcbain942 » 2016-06-06T14:30:33-07:00

ok its linux based so no caps.

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

snibgo
Posts: 12130
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post by snibgo » 2016-06-06T15:22:35-07:00

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.
snibgo's IM pages: im.snibgo.com

mcbain942
Posts: 13
Joined: 2016-05-26T09:08:40-07:00
Authentication code: 1151

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

Post by mcbain942 » 2016-06-07T07:58:21-07:00

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

Post Reply