PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FileLoadException in deployed app

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
deus777



Joined: 14 Apr 2007
Posts: 4

PostPosted: Tue May 15, 2007 2:29 am    Post subject: FileLoadException in deployed app Reply with quote

I have used PDFSharp/MigraDoc successfully in the previous version of an application I am working on. I have created a new version and everything seems fine on the development machine, but when I build the setup msi and deploy it to a test machine, it gives me a FileLoadException when it tries to load the MigraDoc.DocumentObjectModel assembly. I thought perhaps VS.Net had rebuilt the MigraDoc assembly but didn't have a necessary signing key, but I got the same error when I replaced all of my PDFSharp/MigraDoc files with fresh copies from the zip file. Can anyone help me? The entire exception is:

System.IO.FileLoadException: The located assembly's manifest definition with name 'MigraDoc.DocumentObjectModel' does not match the assembly reference.
File name: "MigraDoc.DocumentObjectModel"
at RECreations.UI.Controllers.MainWindowController.OpenAllSoldProductsReport()
at RECreations.UI.Windows.frmMain.reportsAllSoldProducts_Click(Object sender, EventArgs e)
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

=== Pre-bind state information ===
LOG: DisplayName = MigraDoc.DocumentObjectModel, Version=1.2.1930.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb
(Fully-specified)
LOG: Appbase = C:\Program Files\RECreations\RECreations Manager\
LOG: Initial PrivatePath = NULL
Calling assembly : RECreations.UI.Controllers, Version=0.2.1.0, Culture=neutral, PublicKeyToken=null.
===

LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from C:\WINNT\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: MigraDoc.DocumentObjectModel, Version=1.2.1930.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb
LOG: Attempting download of new URL file:///C:/Program Files/RECreations/RECreations Manager/MigraDoc.DocumentObjectModel.DLL.
WRN: Comparing the assembly name resulted in the mismatch: PUBLIC KEY TOKEN
Back to top
View user's profile Send private message
deus777



Joined: 14 Apr 2007
Posts: 4

PostPosted: Wed May 16, 2007 2:30 am    Post subject: Setup Project Causes Error? Reply with quote

I've done some more playing around with it, and if I run the program from the bin folder on my development machine, it works fine. Likewise, I can copy the files from my bin directly onto the test machine and it works. However, if I build the msi and install using that, I get the FileLoadException. It seems that somehow the setup project is packaging up the wrong files, or a corrupted version of them. I have tried refreshing the dependencies and rebuilding the msi, but I still have the problem. Has anyone else run into something like this?
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com