Red Gate forums :: View topic - DevExpress.XtraGrid.GridControl Threw an Exception
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Compare Previous Versions
SQL Compare Previous Versions forum

DevExpress.XtraGrid.GridControl Threw an Exception

Search in SQL Compare Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Go to page 1, 2  Next
Author Message
David Hayden



Joined: 15 May 2006
Posts: 3

PostPosted: Mon Jan 08, 2007 6:27 pm    Post subject: DevExpress.XtraGrid.GridControl Threw an Exception Reply with quote

I just downloaded the latest release and now cannot run SqlCompare and SqlDataCompare without getting this error.


An unhandled exception ('System.TypeInitializationException') occurred in RedGate.SqlDataCompare.UI.exe [272].

From SqlDataCompare: Additional information: The type initializer for '_122' threw an exception.

From SqlCompare: Additional information: The type initializer for 'DevExpress.XtraGrid.GridControl' threw an exception.


Note I am a DeveloperExpress Subscriber and already have the latest version of Developer Express already installed on my development machine.

Aside from a few bugs that I hoped were fixed in the new release, they worked fine before downloading the latest release.

Now I am wondering if my DevExpress stuff is still correctly installed.

How do I fix this?

Regards,

Dave
_________________
David Hayden, http://davidhayden.com/blog/dave/
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6678

PostPosted: Tue Jan 09, 2007 6:27 pm    Post subject: Reply with quote

Hello David,

The last time I saw this error occur, I believe that the problem was that the 'Times New Roman' font was not installed on the system.

http://www.red-gate.com/messageboard/viewtopic.php?t=3131

Can you please have a look at your installed fonts? Thanks!
Back to top
View user's profile Send private message
ChristianASPNET



Joined: 10 Sep 2004
Posts: 6
Location: Nashville, TN

PostPosted: Wed Jan 24, 2007 6:07 pm    Post subject: Reply with quote

I've got the same issue. I upgraded yesterday to 5.3.2 and now I'm getting a type initializer error on the DevExpress XtraGrid. Times New Roman is installed. I'm running on Vista Ultimate.
_________________
David Neal
MCSD, MCSE, MCDBA
http://www.ChristianASP.NET/
Back to top
View user's profile Send private message MSN Messenger
btompkins



Joined: 04 Jan 2007
Posts: 3

PostPosted: Fri Feb 02, 2007 3:02 pm    Post subject: Same here. Reply with quote

I'm having this same problem. Any answers?
Back to top
View user's profile Send private message AIM Address
ChristianASPNET



Joined: 10 Sep 2004
Posts: 6
Location: Nashville, TN

PostPosted: Fri Feb 02, 2007 3:13 pm    Post subject: Reply with quote

I contacted support, and after a few troubleshooting steps, here's the reply I received:

Quote:
I have been unable to find any solution as to why you are getting this error. I have contacted development about the problem, and they will let me know as soon as they have some information.

I will close this call for now, but I will let you know as soon as I hear anything.

_________________
David Neal
MCSD, MCSE, MCDBA
http://www.ChristianASP.NET/
Back to top
View user's profile Send private message MSN Messenger
Dave Mellors



Joined: 01 Feb 2007
Posts: 31

PostPosted: Fri Feb 02, 2007 6:32 pm    Post subject: Reply with quote

Thank you for posting that reply in this forum. It gives us awareness of it, provides a chance for us to respond and let's us take steps to prevent it from happening again

I wanted to let you know that the exception with DevExpress.XtraGrid.GridControl is being actively investigated by both the technical support team and our developers.

We hope to be able to provide a solution to this problem soon. The details of the solution will be posted in this forum as soon as we can and we will also contact customers directly who logged a call with us regarding this error.

Your co-operation and patience in this matter is very much appreciated and I am very sorry that the response you received from support was worded in that way.
_________________
Dave Mellors
Technical Support Engineer
Red Gate Software Ltd.
Tel US and CAN: 1-866-RED GATE
Tel World: +44 (0)870 160 0037 ext 43
Back to top
View user's profile Send private message
ChristianASPNET



Joined: 10 Sep 2004
Posts: 6
Location: Nashville, TN

PostPosted: Fri Feb 02, 2007 6:34 pm    Post subject: Reply with quote

By the way, I rebuilt my Windows XP machine and installed the latest 5.3 bundle, and also received a similar message on application startup. I uninstalled and found an old copy of the 5.2 bundle on our company network and that works.
_________________
David Neal
MCSD, MCSE, MCDBA
http://www.ChristianASP.NET/
Back to top
View user's profile Send private message MSN Messenger
Dave Mellors



Joined: 01 Feb 2007
Posts: 31

PostPosted: Fri Feb 02, 2007 6:37 pm    Post subject: Reply with quote

Thanks David, that extra information is very useful.

I will make sure everyone involved in providing the resolution is aware of it.
_________________
Dave Mellors
Technical Support Engineer
Red Gate Software Ltd.
Tel US and CAN: 1-866-RED GATE
Tel World: +44 (0)870 160 0037 ext 43
Back to top
View user's profile Send private message
ChristianASPNET



Joined: 10 Sep 2004
Posts: 6
Location: Nashville, TN

PostPosted: Fri Feb 02, 2007 6:42 pm    Post subject: Reply with quote

Hey guys... on a hunch I decided to reinstall 5.3 on my XP machine. This time it works. The difference is one of two things:

1) I didn't have .NET Framework 1.1 installed before, but this time I do

2) I didn't have any saved projects to display before, but this time I do

Hope this helps!
_________________
David Neal
MCSD, MCSE, MCDBA
http://www.ChristianASP.NET/
Back to top
View user's profile Send private message MSN Messenger
Dave Mellors



Joined: 01 Feb 2007
Posts: 31

PostPosted: Fri Feb 02, 2007 6:55 pm    Post subject: Reply with quote

Good news about your XP machine!

Not sure I understand why those two things should make a difference but I'm glad it worked for you. It will be interesting to see what the rest of the team make of it.

Would you be able to install 5.2 on your Vista PC and see if that works?
_________________
Dave Mellors
Technical Support Engineer
Red Gate Software Ltd.
Tel US and CAN: 1-866-RED GATE
Tel World: +44 (0)870 160 0037 ext 43
Back to top
View user's profile Send private message
ChristianASPNET



Joined: 10 Sep 2004
Posts: 6
Location: Nashville, TN

PostPosted: Fri Feb 02, 2007 7:33 pm    Post subject: Reply with quote

SQL Bundle 5.2 has the same issue on Vista.

The (lack of the) .NET Framework 1.1 is the issue. I bravely installed the .NET Framework 1.1 on my Vista machine and now SQL Compare and Data Compare are working!
_________________
David Neal
MCSD, MCSE, MCDBA
http://www.ChristianASP.NET/
Back to top
View user's profile Send private message MSN Messenger
Dave Mellors



Joined: 01 Feb 2007
Posts: 31

PostPosted: Fri Feb 02, 2007 9:13 pm    Post subject: Reply with quote

David,
I'm glad you have managed to sort the problem out and are now working!

Interestingly, my own Vista installation doesn't have .Net Framework 1.1 installed and I don't get the error and the vast majority of our customers do not seem to experience this problem either and I know some of them are Vista users.

We will be investigating this issue further to fully understand why this should make a difference and issue an official solution. I am certain the information you have given here, has speeded the process up no end.

Thank you so much for all of your help, it really is appreciated!
_________________
Dave Mellors
Technical Support Engineer
Red Gate Software Ltd.
Tel US and CAN: 1-866-RED GATE
Tel World: +44 (0)870 160 0037 ext 43
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6678

PostPosted: Sat Feb 03, 2007 12:35 pm    Post subject: Reply with quote

I disassembled the UI assembly, and found that _122 seems to have a lot of methods relating to 'licensing' I wonder if the error relates to a failure to get a licence for the third-party components?

SQL Data Compare is built against .NET Framework 1.1, so maybe what had happened is that when XtraGrid component got called, it found a version built for .NET 2.0 (perhaps in your GAC?) and loaded this version instead of the one that shipped with Data Compare and this had caused a licensing issue.

This is my assumption. What we really need is for one of our developers to have a proper look at it.
Back to top
View user's profile Send private message
joltcoder



Joined: 12 Feb 2007
Posts: 3
Location: Redmond, WA

PostPosted: Mon Feb 12, 2007 8:20 pm    Post subject: DevExpress errors Reply with quote

I noticed that my Red-Gate tools were loading the DevExpress binaries from the GAC and not from the application directory. Both assembly copies were version 6.3.1.0; I'm not sure if and why there is a difference internally between the DevExpress assemblies loaded in the GAC and those installed with Red-Gate products but once I removed the 6.3.1.0 assemblies from the GAC all of the applications in the Red-Gate suite that were having problems work perfectly.
Please note that this is by design as the .NET Framework will search the GAC for an assembly (By strong name and version) and if it located it will be used... if it isn't located in the GAC; the framework will begin probing (as defined at http://msdn2.microsoft.com/en-us/library/yx7xezcf.aspx) and will locate the correct assembly in the app or probing path.
I've never seen this cause a problem in the past as one would assume that two binaries with the same strong name and version should be identical... but I didn't dig any deeper.

hth,
bR
_________________
bR
MS Blog : http://blogs.msdn.com/brianreisman
Personal: http://brianreisman.com
Back to top
View user's profile Send private message MSN Messenger
James Moore



Joined: 21 Nov 2005
Posts: 245

PostPosted: Mon Feb 12, 2007 11:58 pm    Post subject: Reply with quote

Thanks for the heads up Brian,

We will get someone to look into this and try and understand what's going on.

- James
_________________
James Moore
Head of DBA Tools
Red Gate Software Ltd
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Go to page 1, 2  Next
Page 1 of 2

 
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 © 2001, 2005 phpBB Group