You should provide further info about your environment:<br><br>1. Did you test your app by running from an IDE like VS2005 for example?<br>2. What version of OS/IIS you intend to use when deploying the application.<br><br>
You appdir and platform configuration (32/64) may be different depending on your environment.<br>For example by using the VS IDE you'd probably use WebDev.WebServer.exe as the host process which is running against the 32 bit version of the .NET framework on a 64 bit machine.<br>
<br>You might want to use SysInternals ProcMon.exe to make sure about the expected locations of the dll files.<br><br>Best regards,<br><br>Tamas<br><br><br><br><br><div class="gmail_quote">2009/2/12 Tri <span dir="ltr"><<a href="mailto:rsosnowski@cableone.net">rsosnowski@cableone.net</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Tamas,<br>
<br>
I'm creating web services. This is first go on 64 bit machine - plenty of<br>
32 bit web services to fall back on. The problem is I was using FDO which<br>
as far as I know has only 32 bit compiled code. So I set the 'Enable 32 Bit<br>
Application' to true, published the application, then tried to run from<br>
localhost. There were no problems with 64 bit, 32 bit conflicts this way.<br>
However, I then started getting an error that says:<br>
<br>
System.IO file not found. I'm not using System.IO file in the web service.<br>
<br>
So, I thought I would use your compiled 64 bit GDAL / OGR code to create a<br>
new web service, but running into previously mentioned problem taking this<br>
approach.<br>
<br>
Thanks again.....<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
<br>
<br>
<br>
<br>
Tamas Szekeres wrote:<br>
><br>
> What kind of application you develop Console/WinForms/<a href="http://ASP.NET" target="_blank">ASP.NET</a> ?<br>
> Wouldn't it be sufficient to use 32 bit binaries and compile your app with<br>
> the /platform:x86 option?<br>
><br>
> Best regards,<br>
><br>
> Tamas<br>
><br>
><br>
><br>
><br>
> 2009/2/12 Tri <<a href="mailto:rsosnowski@cableone.net">rsosnowski@cableone.net</a>><br>
><br>
>><br>
>> Hi Tamas and others - thanks for the help.<br>
>><br>
>> By application executing directory - I've copied the files to both the<br>
>> bin<br>
>> directory under the project and the obj, Debug directory under the<br>
>> project.<br>
>> When I run the application in debug mode, the same problem occurs:<br>
>><br>
>> System.TypeInitializationException: The type initializer for<br>
>> OSGeo.OGR.Ogr<br>
>> threw an exception<br>
>><br>
>> InnerException: The type initializer for OSGeo.OGR.OgrPINVOKE threw an<br>
>> excpetion<br>
>><br>
>> I am using the 64 bit compiled code from you on Vista 64 bit machine.<br>
>><br>
>> Any more ideas? Thanks.....<br>
>><br>
>><br>
>><br>
>> Tamas Szekeres wrote:<br>
>> ><br>
>> > Hi,<br>
>> ><br>
>> > You might have to copy all of the dll-s (*_csharp.dll, *_wrap.dll,<br>
>> > gdal16.dll, proj.dll etc.) to the application executing directory.<br>
>> ><br>
>> > Best regards,<br>
>> ><br>
>> > Tamas<br>
>> ><br>
>> ><br>
>> ><br>
>> > 2009/2/11 Tri <<a href="mailto:rsosnowski@cableone.net">rsosnowski@cableone.net</a>><br>
>> ><br>
>> >><br>
>> >> Can't get GDAL / OGR to work with CSharp. Using the CSharp dlls, I<br>
>> keep<br>
>> >> getting exceptions like:<br>
>> >><br>
>> >> OgrPINVOKE, threw an exception.<br>
>> >><br>
>> >><br>
>> >> TO TRY TO GET TO WORK I DID:<br>
>> >> - Copied the csharp dlls into project,<br>
>> >> - Created a reference to the dlls.<br>
>> >><br>
>> >> What am I doing wrong?<br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> View this message in context:<br>
>> >> <a href="http://n2.nabble.com/GDAL---CSharp-tp2308674p2308674.html" target="_blank">http://n2.nabble.com/GDAL---CSharp-tp2308674p2308674.html</a><br>
>> >> Sent from the GDAL - Dev mailing list archive at Nabble.com.<br>
>> >><br>
>> >> _______________________________________________<br>
>> >> gdal-dev mailing list<br>
>> >> <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
>> >> <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
>> >><br>
>> ><br>
>> > _______________________________________________<br>
>> > gdal-dev mailing list<br>
>> > <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
>> > <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
>> ><br>
>><br>
>> --<br>
>> View this message in context:<br>
>> <a href="http://n2.nabble.com/GDAL---CSharp-tp2308674p2312047.html" target="_blank">http://n2.nabble.com/GDAL---CSharp-tp2308674p2312047.html</a><br>
>> Sent from the GDAL - Dev mailing list archive at Nabble.com.<br>
>><br>
>> _______________________________________________<br>
>> gdal-dev mailing list<br>
>> <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
>><br>
><br>
> _______________________________________________<br>
> gdal-dev mailing list<br>
> <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
><br>
<br>
--<br>
</div></div>View this message in context: <a href="http://n2.nabble.com/GDAL---CSharp-tp2308674p2312090.html" target="_blank">http://n2.nabble.com/GDAL---CSharp-tp2308674p2312090.html</a><br>
<div><div></div><div class="Wj3C7c">Sent from the GDAL - Dev mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div></div></blockquote></div><br>