GribApiDotNet / GribApi.NET

A powerful .NET library for reading and writing GRIB 1 and 2 files
Apache License 2.0
54 stars 28 forks source link

Exception in azure cloud worker role #20

Closed asafHorvitz closed 8 years ago

asafHorvitz commented 8 years ago

Hi,

Worked with the grib.api in c# in console application - works great.

When i used it on the azure cloud worker role - i get exception in this line:

using (GribFile gribFile = new GribFile(gribFilePath))

there is a valid file path - it works in the console application

the exception is:

any ideas ?

asafHorvitz commented 8 years ago

used the: GribEnvironment.DefinitionsPath = "C:\projects\TaranisWeb\packages\Grib.Api.0.6.3\Grib.Api\definitions"

also didnt work...

asafHorvitz commented 8 years ago

Environment.SetEnvironmentVariable("GRIB_API_DIR_ROOT", "C:\Some\Path", EnvironmentVariableTarget.Process);

also didnt work...

0x1mason commented 8 years ago

Hm, I'll have a look.

0x1mason commented 8 years ago

Is the console application running on azure or do you mean locally?

0x1mason commented 8 years ago

Also, are you sure that the gribapi.net folder is part of your deployment?

0x1mason commented 8 years ago

Closing this due to inactivity. Please let me know if this is still an issue for you.

Bukesta commented 6 years ago

Hello Eric. I am receiving the same error in an ASP.net solution. I have installed through package manager and used NuGet to install the Grib.Api.Native package, but still receive the following error:

{"Could not find Grib.Api.Native. If you're using ASP.NET or NUnit, this is usually caused by shadow copying. Please see GribApi.NET's documentation for help.":null}

Could you please advise if I am going about this the wrong way for ASP.Net?