I am using c# and visual studio.
I have an app using GDAL that works perfectly on the Dev Server. When I transfer it to Production the app fails. I receive the following error message:
An error occurred while warping the file: System.ArgumentNullException: Value cannot be null.
Parameter name: path 1
at System.IO.Path.Combine(String path1, String path2)
at GDAL.Services.GDALService.Warp(String fileName, String destinationFileName, String& errorMessage, STring s_SRS, String t_SRS)
at Create.Manager.GDALManager.Convert(ImageFile imageFile, String& errorMessage)
GDALManager Code referenced:
try
{
if (imageFile.CoordSys == CoordSys.UTM)
{
warpResult = GDAL.Services.GDALService.Warp(source, tempImageFileName, out fnErrorMessage, null, "NAD83");
}
else
{
warpResult = GDAL.Services.GDALService.Warp(source, tempImageFileName, out fnErrorMessage, imageFile.CoordSys.Name, "NAD83");
}
}
catch (Exception ex)
{
fnErrorMessage = "An error occurred while warping the file: " + ex.ToString();
}
Source and Destination Path: "\\DataServer\Images\Raster\Raster_Seamless"
All source and destination file paths are the same for both Dev and Production.
tempImageFileName
?