I tried to convert a project that relies on the vjs runtime to vs2010, but it errors out when trying to run. It's giving the error that "Could not load file or assembly 'vjslib' or one of its dependencies. An attempt was made to load a program with an incorrect format." I reinstalled the vjs runtime, but it didn't seem to help. Is there any way to get get .net 4 to work with this? Thanks!
+1
A:
I got this to work by copying C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vjsnativ.dll to my application's debug/release directory.
I suspect Microsoft will need to release another j# redistributable package to work with .net 4.0. Meanwhile, this work-around does a fine job.
Jimmy
2010-04-25 14:20:10
Please could you clarify what folder you copied the file into? I have this problem but I don't see a debug/release directory. I have a .net 4 web site (not web application). I tried copying into the /bin but that hasnt worked: {"Unable to load DLL 'vjsnativ': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"}Thank you.
bgs264
2010-06-18 14:15:12
@bgs264: I needed this for a .net app. My guess for a web site would indeed have been to put it in the bin directory, together with the other dll's. If that doesn't work, then I'm not sure what else to suggest.
Jimmy
2010-06-19 02:53:58
@Jimmy thanks. No dice - I just found another component that didn't use J# (it was a 3rd party PDF XSL FO processor) - Now using something else - not a fix but I'm back on track. Thanks.
bgs264
2010-06-22 08:21:38