kevinmiles / dxcorecommunityplugins

Automatically exported from code.google.com/p/dxcorecommunityplugins
0 stars 0 forks source link

System.InvalidCastException type 'DevExpress.CodeRush.StructuralParser.TypeReferenceExpression' to type 'DevExpress.CodeRush.StructuralParser.ITypeElement'. #52

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Which edition of the DevExpress toolset are you using?

* CodeRush (pro)
* RefactorPro!
* DXCore

Which version of the DevExpress toolset are you using?

* 10.1.x

Which version of Studio are you using?

* VS2005, VS2008

What OS?
 *Win7 

64bit?

Which community plugin(s) are you attempting to use?

 XPO EasyFields 

What is the expected output? What do you see instead?

When generating Field class with attached file

Type: System.InvalidCastException
Message: Unable to cast object of 
type 'DevExpress.CodeRush.StructuralParser.TypeReferenceExpression' to 
type 'DevExpress.CodeRush.StructuralParser.ITypeElement'.
Source: XPO_EasyFields
Target: Boolean IsPersistedMember
(DevExpress.CodeRush.StructuralParser.IMemberElement)

Call Stack:
   at XPO_EasyFields.Helpers.XPO.XPO.IsPersistedMember(IMemberElement 
MemberElement) in 
C:\Building\dxcoreCommunityplugins\XPO_EasyFields\XPO_EasyFields\Helpers\XP
O.vb:line 122
   at 
XPO_EasyFields.Helpers.XPO.PersistentClassElement.AddMembersToFieldsClass
(ElementBuilder BobClass, Class NewFieldsClass, IEnumerable MembersList, 
String PropertyPrefix) in 
C:\Building\dxcoreCommunityplugins\XPO_EasyFields\XPO_EasyFields\Helpers\XP
O.vb:line 337
   at XPO_EasyFields.Helpers.XPO.PersistentClassElement.UpdateFieldsClass
() in 
C:\Building\dxcoreCommunityplugins\XPO_EasyFields\XPO_EasyFields\Helpers\XP
O.vb:line 254
   at XPO_EasyFields.EasyFields.XPO_EasyFields_Execute(Object Sender, 
ApplyContentEventArgs ea) in 
C:\Building\dxcoreCommunityplugins\XPO_EasyFields\XPO_EasyFields\EasyFields
.vb:line 93
   at DevExpress.CodeRush.Core.ContentProvider.OnApply
(ApplyContentEventArgs ea)

Original issue reported on code.google.com by marcofuy...@gmail.com on 3 Jun 2010 at 12:25

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by RoryBec...@gmail.com on 3 Jun 2010 at 12:28

GoogleCodeExporter commented 8 years ago
Also these files are causing the same problem

Original comment by marcofuy...@gmail.com on 26 Aug 2010 at 7:44

Attachments:

GoogleCodeExporter commented 8 years ago
Hi Marco,

Could I confirm if you are still receiving this error? 

Original comment by aussiealf@gmail.com on 5 Oct 2010 at 2:12

GoogleCodeExporter commented 8 years ago

Original comment by aussiealf@gmail.com on 5 Oct 2010 at 5:42

GoogleCodeExporter commented 8 years ago
Type: System.InvalidCastException
Message: Unable to cast object of type 
'DevExpress.CodeRush.StructuralParser.TypeReferenceExpression' to type 
'DevExpress.CodeRush.StructuralParser.ITypeElement'.
Source: XPO_EasyFields
Target: Boolean 
IsPersistedMember(DevExpress.CodeRush.StructuralParser.IMemberElement)

Call Stack:
   at XPO_EasyFields.Helpers.XPO.XPO.IsPersistedMember(IMemberElement MemberElement)
   at XPO_EasyFields.Helpers.XPO.PersistentClassElement.AddMembersToFieldsClass(ElementBuilder BobClass, Class NewFieldsClass, IEnumerable MembersList, String PropertyPrefix, String FieldPrefix)
   at XPO_EasyFields.Helpers.XPO.PersistentClassElement.UpdateFieldsClass()
   at XPO_EasyFields.EasyFields.XPO_EasyFields_Execute(Object Sender, ApplyContentEventArgs ea)
   at DevExpress.CodeRush.Core.ContentProvider.OnApply(ApplyContentEventArgs ea)

Again with the latest version, of the plugin

Original comment by marcofuy...@gmail.com on 18 Dec 2010 at 10:40

Attachments:

GoogleCodeExporter commented 8 years ago
Can be closed doesn't happen any more in new version

Original comment by marcofuy...@gmail.com on 25 Jan 2012 at 9:20