StrataFrame Forum
Back
Login
Login
Home
»
.NET Forums
»
General .NET Discussion
»
TypeConverter issue
TypeConverter issue
Post Reply
Like
1
TypeConverter issue
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Greg McGuffey
Greg McGuffey
posted 14 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 2K,
Visits: 6.6K
I have an attempt at a type converter. I have it all hooked up and it is getting called. When I step through it, there are no errors, but when I type text into the property, I get a "Property is invalid" message with details something like:
Cannot Convert object of type 'TopMostNode' to type 'TopMostNode'
Huh? What could be causing this? On StackOverflow somebody suggested that I have two versions of the same assembly loaded, but I have no idea how to figure this out. The references say that it is using the same assembly (just the debug version). And since I haven't changed the version info on the assembly since I started messing with this, not sure how it would know that it was a "different" assembly. Any ideas?
Reply
Like
1
Trent Taylor
Trent Taylor
posted 14 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
Most likely this is happening in your ConvertFrom or ConvertTo OR you are fighting multiple assemblies for the same version. If you have an issue converting one type to another and they are the same object, this always points to another assembly or reference being on disk, in the GAC, or something along those lines. I have fought this more than once and it challenges my self control
I know that this what you are fighting if it is giving your a "MyType" to "MyType" exception. Double check the reference paths and if it all looks good, check everything in, delete it from your local work environment, get it all back from source control, rebuild all, and try again.
Reply
Like
1
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
1
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search