Thanks all for your suggestions/help, it really helped me to find the
error.
This is the error I was getting: "Mixed mode assembly is built against
version 'v1.0.3705' of the runtime and cannot be loaded in the 4.0
runtime without additional configuration information." which was
caused due to an assembly I'm using in the application.
Adding those lines to the app.config file solved the problem:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /
>
</startup>
If someone wants to know more about it, I invite you to read the
following article:
http://msmvps.com/blogs/carlosq/archive/2010/03/30/the-strange-case-of-system-io-fileloadexception-mixed-mode-assembly-is-built-against-version-x-of-the-runtime-and-cannot-be-loaded-in-the-4-0-runtime.aspx
Regards,
Dave
On Feb 17, 11:06 am, Josh <[email protected]> wrote:
> Dave,
>
> Still waking up, I guess. Could you also try catching any unhandled
> exceptions and dumping all of the details?
>
> Check out this SO post about handling unhandled exceptions, and see if
> you can get that to capture what's going, and then dump everything to
> figure out what the problem is.
>
> Hope that helps a little!
>
> Josh
>
> On Feb 15, 11:09 pm, iDesmet <[email protected]> wrote:
>
> > Thanks for your answer,
>
> > Regarding your link, I remember having read such article but
> > unfortunately it isn't related to my problem..
> > Anyway, I'll keep looking... thanks for your help!!
>
> > On Feb 15, 10:41 am, Raghupathi Kamuni <[email protected]> wrote:
>
> > > This link talks about write permissions to C drive, not sure this solves
> > > your
> > > problemhttp://geekswithblogs.net/technetbytes/archive/2007/04/06/110991.aspx
>
> > > MSDN linkhttp://msdn.microsoft.com/en-us/library/dbe81ttk(v=VS.100).aspx
>
> > > On Tue, Feb 15, 2011 at 12:05 PM, iDesmet <[email protected]> wrote:
> > > > Tried the Event Viewer and got this:
>
> > > > Event Type: Error
> > > > Event Origin: .NET Runtime
> > > > Event Category: None
> > > > Event Id.: 1026
> > > > Date: 12/02/2011
> > > > Time: 4:46:38
> > > > User: No Available
> > > > Computer: USER-01D3D7F87
> > > > Description:
> > > > Application: Easy Rental 2011.exe
> > > > Framework Version: v4.0.30319
> > > > Description: The process was terminated due to an unhandled exception.
> > > > Exception Info: System.IO.FileLoadException
> > > > Stack:
> > > > at EasyRental.frmMain.InitializeComponent()
> > > > at EasyRental.frmMain..ctor(EasyRental.SplashScreen,
> > > > ISD.Core.Logging.ILogService, System.String[])
> > > > at EasyRental.Program.Main(System.String[])
>
> > > > I have been looking again and again at InitializeComponent() and
> > > > cannot find something wrong (note: I don't touch such method since its
> > > > automatically created/modified by the designer). Also have tried
> > > > again, several times looking at the dependencies of such exe and hope
> > > > that I missed one, but nope, all dependencies are included in the
> > > > setup... I also double checked with a nice tool called CheckAsm, it's
> > > > like Dependency Walker for .NET
>
> > > > And for the final note, I verified that my other libraries that
> > > > depends the main application are build also against .NET 4.0 x86
>
> > > > In conclusion, I'm still stuck here and by now I run out of ideas, so
> > > > if anyone have a suggestion, please tell me, I'll greatly appreciate
> > > > it.
>
> > > > On Feb 10, 11:11 pm, Josh <[email protected]> wrote:
> > > > > Dave,
>
> > > > > Check out the event viewer. I've had to look into the event viewer
> > > > > many times for my day job while debugging .NET apps and services.
> > > > > Bring up a Run console and enter "eventvwr" for the quickest access.
>
> > > > > I don't have an XP machine at home, so I don't remember what the XP
> > > > > version of the Event Viewer console looks like, but on Win7, check out
> > > > > the "Application" event log under the "Windows Logs" folder and check
> > > > > out the entries around the time the user attempted to start up the
> > > > > program. With any luck, you can find out at least a little bit more
> > > > > information as to what is going on on the users' workstations when
> > > > > they try to launch your app.
>
> > > > > Josh
>
> > > > > On Feb 9, 11:05 pm, iDesmet <[email protected]> wrote:
>
> > > > > > Hallo all,
>
> > > > > > I have searched over the Internet and here, and the solutions found
> > > > > > didn't help with my problem.
> > > > > > I've created a windows application (WinForms) using various
> > > > > > components, of course, it works well on my development pc, but whey
> > > > > > I
> > > > > > try to deploy on a client pc it simply stop working when loading
> > > > > > (Initializing).
>
> > > > > > It's created using .NET 4.0, which is already installed in the
> > > > > > client
> > > > > > pc (with .NET 2.0 to 3.5). I use InstallAware to create the setup, I
> > > > > > have created several applications and deployed in several pcs and
> > > > > > all
> > > > > > of them worked without any issue, so this is the first time I'm
> > > > > > facing
> > > > > > such problem.
>
> > > > > > I also used the built-in feature in InstallAware to search and add
> > > > > > dependencies which I though it was the problem. In the same
> > > > > > solution I
> > > > > > created the application, there's another project (report viewer) I
> > > > > > created using almost the same components and works fine on client
> > > > > > pc.
>
> > > > > > I must add that in another develpment computer, the problematic
> > > > > > application works as expected.
>
> > > > > > So, my question: Is there a tool (other than Fusion Logger) which I
> > > > > > can use to search deeper for dependencies in the developed
> > > > > > application
> > > > > > (just in case it is a dependency error)?
>
> > > > > > Or, Is there another way I can find out why the applications stops
> > > > > > abruptly when starting?
>
> > > > > > Thanks in advance!
>
> > > > > > Regards,
> > > > > > Dave