Click here to Skip to main content
15,888,302 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can my "secondary form" still be enabled when a modal MessageBox is shown from the "main form"? Pin
OriginalGriff16-Jan-19 2:49
mveOriginalGriff16-Jan-19 2:49 
GeneralRe: How can my "secondary form" still be enabled when a modal MessageBox is shown from the "main form"? Pin
Pete O'Hanlon16-Jan-19 2:50
mvePete O'Hanlon16-Jan-19 2:50 
AnswerRe: How can my "secondary form" still be enabled when a modal MessageBox is shown from the "main form"? Pin
Luc Pattyn16-Jan-19 3:15
sitebuilderLuc Pattyn16-Jan-19 3:15 
GeneralRe: How can my "secondary form" still be enabled when a modal MessageBox is shown from the "main form"? Pin
BillWoodruff16-Jan-19 21:43
professionalBillWoodruff16-Jan-19 21:43 
GeneralRe: How can my "secondary form" still be enabled when a modal MessageBox is shown from the "main form"? Pin
Luc Pattyn22-Jan-19 7:29
sitebuilderLuc Pattyn22-Jan-19 7:29 
AnswerRe: How can my "secondary form" still be enabled when a modal MessageBox is shown from the "main form"? Pin
BillWoodruff16-Jan-19 22:42
professionalBillWoodruff16-Jan-19 22:42 
GeneralRe: How can my "secondary form" still be enabled when a modal MessageBox is shown from the "main form"? Pin
arnold_w23-Jan-19 21:33
arnold_w23-Jan-19 21:33 
QuestionMEF Exception Pin
Kevin Marois15-Jan-19 7:45
professionalKevin Marois15-Jan-19 7:45 
I have a large app that has been working for a while. I'm adding a new service class to it that is loaded as a MEF plugin. The service class loads some plugins that are NOT MEF plugins. I'm using relfection for those assemblies.

I'm getting this runtime exception on startup:
Cannot cast the underlying exported value of type 
'Microsoft.Practices.Prism.MefExtensions.Regions.Behaviors.MefDelayedRegionCreationBehavior (ContractName="Microsoft.Practices.Prism.Regions.Behaviors.DelayedRegionCreationBehavior")' 
to type 
'Microsoft.Practices.Prism.Regions.Behaviors.DelayedRegionCreationBehavior'.

I can step through all of my code and everything runs, but after my class is contructed I get the error. If I comment out the part of my class that loads my assemblies, everything works fine. My assemblies don't error at all, and I can't see how externally loaded assemblies could cause some MEF problem.

I don't know MEF that well. I've Googled this a few different ways with no luck. Anyone know what this means?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: MEF Exception Pin
Nathan Minier16-Jan-19 1:30
professionalNathan Minier16-Jan-19 1:30 
QuestionAccess Db in DataGridView Pin
User 1367511413-Jan-19 7:27
User 1367511413-Jan-19 7:27 
AnswerRe: Access Db in DataGridView Pin
Dave Kreskowiak13-Jan-19 12:03
mveDave Kreskowiak13-Jan-19 12:03 
GeneralRe: Access Db in DataGridView Pin
User 1367511413-Jan-19 22:24
User 1367511413-Jan-19 22:24 
GeneralRe: Access Db in DataGridView Pin
Dave Kreskowiak14-Jan-19 2:46
mveDave Kreskowiak14-Jan-19 2:46 
AnswerRe: Access Db in DataGridView Pin
OriginalGriff13-Jan-19 22:15
mveOriginalGriff13-Jan-19 22:15 
QuestionFind Subnet Mask Pin
Richard Andrew x6412-Jan-19 8:50
professionalRichard Andrew x6412-Jan-19 8:50 
AnswerRe: Find Subnet Mask Pin
Luc Pattyn12-Jan-19 16:35
sitebuilderLuc Pattyn12-Jan-19 16:35 
GeneralRe: Find Subnet Mask Pin
Richard Andrew x6413-Jan-19 4:22
professionalRichard Andrew x6413-Jan-19 4:22 
Questionimport data Pin
Member 1358870012-Jan-19 3:15
Member 1358870012-Jan-19 3:15 
AnswerRe: import data Pin
Richard MacCutchan12-Jan-19 3:37
mveRichard MacCutchan12-Jan-19 3:37 
AnswerRe: import data Pin
Victor Nijegorodov12-Jan-19 5:01
Victor Nijegorodov12-Jan-19 5:01 
AnswerRe: import data Pin
OriginalGriff12-Jan-19 5:30
mveOriginalGriff12-Jan-19 5:30 
AnswerRe: import data Pin
mtoha13-Jan-19 17:44
professionalmtoha13-Jan-19 17:44 
QuestionSmtpclient "One of the streams has already been used and can't be reset to the origin." Pin
jkirkerx10-Jan-19 11:49
professionaljkirkerx10-Jan-19 11:49 
AnswerRe: Smtpclient "One of the streams has already been used and can't be reset to the origin." Pin
jkirkerx10-Jan-19 11:57
professionaljkirkerx10-Jan-19 11:57 
SuggestionRe: Smtpclient "One of the streams has already been used and can't be reset to the origin." Pin
Richard Deeming11-Jan-19 1:50
mveRichard Deeming11-Jan-19 1:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.