[libRETS-users] Could not load file or assembly 'librets-dotnet' or one of its dependencies

504 views
Skip to first unread message

David R. Castranio

unread,
Mar 25, 2013, 3:58:37 PM3/25/13
to libret...@crt.realtors.org

I have problems streaming the photos into my application on .Net 4.0. It works on Visual Studio 2012 on my local machine, but on the Windows Server and IIS, the pictures will not come in. I tried to upgrade the version of .Net to the new 1.5.3 x64. It seemed like it might have been an issue with 64 bit version. When I loaded that version I get the following error

Could not load file or assembly 'librets-dotnet' or one of its dependencies. An attempt was made to load a program with an incorrect format.

 

 

David R. Castranio

President, CRI Designs

919-510-8779

d...@cridesigns.com

www.cridesigns.com

 

Rob Overman

unread,
Mar 25, 2013, 4:38:13 PM3/25/13
to For discussion and help for and by the users of the libRETS C++ library
Did you register the DLL in the system32 directory?

_______________________________________________
libRETS-users mailing list
libRET...@crt.realtors.org
http://mail.crt.realtors.org/mailman/listinfo/librets-users


Mark Klein

unread,
Mar 26, 2013, 12:47:50 PM3/26/13
to For discussion and help for and by the users of the libRETS C++ library
On Mar 25, 2013, at 12:58 PM, David R. Castranio wrote:

> I have problems streaming the photos into my application on .Net
> 4.0. It works on Visual Studio 2012 on my local machine, but on the
> Windows Server and IIS, the pictures will not come in. I tried to
> upgrade the version of .Net to the new 1.5.3 x64. It seemed like it
> might have been an issue with 64 bit version. When I loaded that
> version I get the following error
> Could not load file or assembly 'librets-dotnet' or one of its
> dependencies. An attempt was made to load a program with an
> incorrect format.

This error indicates one of two things: you are mixing the x86 and x64
versions (e.g. putting an x64 version into x86 cache or vice versa);
you are running at a higher security level and this libraries need to
be self signed.


Regards,


M.

--
Mark Klein
PGP Key Available
www.dis.com

David R. Castranio

unread,
Mar 26, 2013, 2:06:32 PM3/26/13
to For discussion and help for and by the users of the libRETS C++ library
Thanks for your response, and thanks to the others who responded also.

I was thinking that the version we had been running with .Net 2.0 needed
upgraded to work correctly with .Net 4.0. The problem I have been having
with the picture imports failing on the host machine (but working on my dev
box) involves a Windows server and IIS with .Net 4.0.

Which version should I be using?

Mark Klein

unread,
Mar 26, 2013, 2:58:15 PM3/26/13
to For discussion and help for and by the users of the libRETS C++ library
On Mar 26, 2013, at 11:06 AM, David R. Castranio wrote:

> I was thinking that the version we had been running with .Net 2.0
> needed
> upgraded to work correctly with .Net 4.0. The problem I have been
> having
> with the picture imports failing on the host machine (but working on
> my dev
> box) involves a Windows server and IIS with .Net 4.0.

There was a problem with the SWIG generated bindings to dotnet that
needed to be fixed for .NET 4.0. This was done with SWIG 2.x+ and
librets rolled to that version in 1.5.2. So, 1.5.2 or 1.5.3 would be
the versions. You get more fixes with the 1.5.3 release. See http://code.crt.realtors.org/projects/librets/browser/librets/trunk/NEWS

Mark Klein

unread,
Mar 26, 2013, 2:59:35 PM3/26/13
to For discussion and help for and by the users of the libRETS C++ library
On Mar 26, 2013, at 11:06 AM, David R. Castranio wrote:

> Which version should I be using?

Oh, do not use the MINGW versions unless you know what you're
doing ... not sure how they will react with .NET.
Reply all
Reply to author
Forward
0 new messages