Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
TypeLoadException on changing version number in weak-typed assembly
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Dima
18y
2k
1
Reply
Hi All!
I have the following problem using CF 1.0 SP3:
I have an (.exe) that uses a set of private assemblies (weak-typed); each private assembly is compiled with auto-generation of version number (ex: 1.1.*); when I change source code of p.a. and I rebuild it:
- if new version of p.a. has the same major.minor.revision (only build number changes) then smart app run fines
- if new version of p.a. has different major.minor.revision then smart app fails and throws an
TypeLoadException
.
Important is that I do not use one solution for all assemblies and EXE, so I use an assembly pool to reference them.
The same scenario on Full .NET Framework runs fine!!!! And, actually, version number should not be considered for weak-typed assemblies.
How to avoid the problem without rebuilding all dependant assemblies ?
Thanks in advance!
Best regards.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
How to create a Pie Chart using .Net Compact Framework
Invoking PPC Emulator