Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Jon
  •  Jon
  • No customer Topic Starter
2008-08-20T01:45:08Z
I'm trying to use the API for the first time. I've added VisualCron and VisualCronAPI references, but I am getting this error when trying to run my VB.NET web application:

Could not load file or assembly 'VisualCronAPI' or one of its dependencies. The module was expected to contain an assembly manifest.
Sponsor
Forum information
Support
2008-08-20T08:42:31Z
Have you referenced the VisualCron.dll as well? You need that too.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Jon
  •  Jon
  • No customer Topic Starter
2008-08-20T17:09:40Z
yes, I am referencing both. Do I need to invoke them? I'm using VS 2005.
Support
2008-08-20T17:12:15Z
No, you don't. What happens if you open the existing test project from the API folder and remove the 2 references and re-add them. Still same problem then?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Jon
  •  Jon
  • No customer Topic Starter
2008-08-20T17:54:21Z
I copied the TestClient project to my local VS Project folder, removed the references, tried to rebuild and got an error. Readded the references and now it builds and runs.
Support
2008-08-20T17:58:37Z
OK, it could be that you referenced 2 different versions of the files in your project - so the assembly references did not match. Everything is working OK now?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Jon
  •  Jon
  • No customer Topic Starter
2008-08-20T18:12:35Z
Unfortunately, no. Getting the same message. Here is the stack trace:

Stack Trace:


[BadImageFormatException: Could not load file or assembly 'VisualCronAPI' or one of its dependencies. The module was expected to contain an assembly manifest.]
TaskMonitoring._Default.Page_Load(Object sender, EventArgs e) in C:\Documents and Settings\Jon.Sauer\My Documents\Visual Studio 2005\Projects\TaskMonitoring\TaskMonitoring\Default.aspx.vb:55
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436


Support
2008-08-20T18:16:04Z
We could test your code if you send us the project but I am quite sure now that you are not using the same version of VisualCron.dll as in the test project. Or not the same version of VisualCronAPI.dll. Please send it to support@visualcron.com
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2008-08-20T18:44:38Z
Thanks for the files. I don't know from which version this orginates but please install the latest version and use those dlls.

Your files worked but I forgot to mention that you need to have a third file in the same folder VisualCronAPI_nat.dll. Please do the following:

1. Remove references
2. Make sure all 3 files are in the same folder
3. Add references to VisualCronAPI.dll and VisualCron.dll
4. Compile

It should work that way.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top