Cannot create instance...

Forum for MailWasher Pro 7 and/or older 2011/2012 versions.
tashkerm
Mystified Moa
Posts: 6
Joined: Sun Aug 01, 2010 9:58 am

Cannot create instance...

Sun Aug 01, 2010 10:51 am

Cannot create instance of 'CustomDataGridControl' defined in assembly 'MailWasherPro, Version=1.0.6.0, Culture=neutral, PublicKeyToken=null'. Exception has been thrown by the target of an invocation. Error at object 'GrdMailGrid' in markup file 'MailWasherPro;component/mailgridandpreview.xaml'.

MessageBox at startup. Win7. Hmm?
ru
rusticdog

Re: Cannot create instance...

Sun Aug 01, 2010 2:28 pm

Hi there

Try repairing your .NET install. In Control Panel >> Programs and Features >> look for the Microsoft .NET Framework entry, likley version 3.5 >> select Change/Uninstall >> you will get the option to remove or repair >> select Repair and follow on screen prompts >> reboot afterwards >> try MailWasher...
User avatar
Pierre
Knowledgeable Kea
Location: Australia - North of the "Ditch".
Posts: 1073
Joined: Thu Jul 24, 2008 4:57 pm

Re: Cannot create instance...

Sun Aug 01, 2010 7:01 pm

You may already have M$ .NET Framework 4 Client Profile installed. It seems to override any previous versions of .NET Framework. I am running W7 Premium 64 bit and it came installed. Just a hint.
IF IT AIN'T BROKE - DON'T FIX IT

I am only a ßeta Tester and getting older as well.
tashkerm
Mystified Moa
Posts: 6
Joined: Sun Aug 01, 2010 9:58 am

Re: Cannot create instance...

Mon Aug 16, 2010 7:41 am

Damned computers (tm). Tried repairing the .net 4 client profile. No joy. Uninstalled/reinstalled MW. No joy. Went on vacation. Joy.

The current situation is: boot computer. Try launching MW2010. Error message. Launch again. Error message. Do some work, surf the net. Launch MW again. Works. Can close down and restart MW until next boot when it all happens again. WTF, mate? This behavior is consistent for some days now.

Cache? GAC issues? Have half a mind to try gacutil to get the Xceed DLLs into the GAC. I have enough experience to know that some things are not easily explained. Another thing is that this machine is my own development box, so there are even more unknowables.

Well, MW 10.5x still works and they both coexist. Sigh.
ru
rusticdog

Re: Cannot create instance...

Mon Aug 16, 2010 1:19 pm

In your C:\Users\[username]\AppData\Roaming\Firetrust\MailWasher there will be an error.log file, if you can send us this to [email protected].

Though no doubt you'll make more sense of it than I would, but the programmer will hopefully have some ideas
tashkerm
Mystified Moa
Posts: 6
Joined: Sun Aug 01, 2010 9:58 am

Re: Cannot create instance...

Thu Aug 19, 2010 6:33 am

Mea culpa. Mea maxima culpa.

Error log is the clue.

Run a startup program I wrote, kills selected cookies, flash cookies, clears tmp directory. Oops. Under certain circumstances, it removes the directory pointed to by %tmp and %temp. And oops, MW uses that and dies a horrible death if it can't find it. After computer booted for a while, other programs recreate that directory, MW runs fine. Explains all. Fixed my program, all is well.

My bad. Error log good.
ru
rusticdog

Re: Cannot create instance...

Thu Aug 19, 2010 7:09 am

We use the temp folder ? .... :scratch
tashkerm
Mystified Moa
Posts: 6
Joined: Sun Aug 01, 2010 9:58 am

Re: Cannot create instance...

Sat Aug 21, 2010 7:21 am

Actually I don't think MW does per se, but as the problem was related to creating an instance of the Xceed grid control, it might attempt to set something up in temp directory during initialization. Computers are dark and mysterious beasts.

Return to “MailWasher Pro 7”