entity framework 4 - Visual Studio 2010 Windows Forms Designer Problems -
isn't crazy error?
i when trying open form containing usercontrols assebly , using entity framework , sql ce on visual studio designer.
object of type namespace.t[] cannot converted type namespace.t[]!!!
call stack:
at system.runtimetype.trychangetype(object value, binder binder, cultureinfo culture, boolean needsspecialcast) @ system.runtimetype.checkvalue(object value, binder binder, cultureinfo culture, bindingflags invokeattr) @ system.reflection.rtfieldinfo.internalsetvalue(object obj, object value, bindingflags invokeattr, binder binder, cultureinfo culture, boolean dovisibilitycheck, boolean docheckconsistency) @ system.runtime.serialization.formatterservices.serializationsetvalue(memberinfo fi, object target, object value) @ system.runtime.serialization.objectmanager.completeobject(objectholder holder, boolean bobjectfullycomplete) @ system.runtime.serialization.objectmanager.donewlyregisteredobjectfixups(objectholder holder) @ system.runtime.serialization.objectmanager.registerobject(object obj, int64 objectid, serializationinfo info, int64 idofcontainingobj, memberinfo member, int32[] arrayindex) @ system.runtime.serialization.formatters.binary.objectreader.registerobject(object obj, parserecord pr, parserecord objectpr, boolean bisstring) @ system.runtime.serialization.formatters.binary.objectreader.parseobjectend(parserecord pr) @ system.runtime.serialization.formatters.binary.objectreader.parse(parserecord pr) @ system.runtime.serialization.formatters.binary.__binaryparser.run() @ system.runtime.serialization.formatters.binary.objectreader.deserialize(headerhandler handler, __binaryparser serparser, boolean fcheck, boolean iscrossappdomain, imethodcallmessage methodcallmessage) @ system.runtime.serialization.formatters.binary.binaryformatter.deserialize(stream serializationstream, headerhandler handler, boolean fcheck, boolean iscrossappdomain, imethodcallmessage methodcallmessage) @ system.runtime.serialization.formatters.binary.binaryformatter.deserialize(stream serializationstream) @ system.resources.resxdatanode.generateobjectfromdatanodeinfo(datanodeinfo datanodeinfo, ityperesolutionservice typeresolver) @ system.resources.resxdatanode.getvalue(ityperesolutionservice typeresolver) @ system.resources.resxresourcereader.parsedatanode(xmltextreader reader, boolean ismetadata) @ system.resources.resxresourcereader.parsexml(xmltextreader reader)
but same name type exactly!
the project builds , runs ok!!!
ok deleted .resx file of form , 2 other errors thought have passed.
1st "the specified named connection, not intended used entityclient provider, or not valid"
call stack:
at system.data.entityclient.entityconnection.changeconnectionstring(string newconnectionstring) @ system.data.entityclient.entityconnection..ctor(string connectionstring) @ system.data.objects.objectcontext.createentityconnection(string connectionstring) @ system.data.objects.objectcontext..ctor(string connectionstring, string defaultcontainername) @ djpro.settings.model.settingsentities..ctor() in d:\visual studio projects\djproautomation\djpro.settings.model\settingsselftrackmodel.context.cs:line 33 @ djpro.data.access.settingsdataoperations.getconfiguration() in d:\visual studio projects\djproautomation\djpro.data.access\settingsdataoperations.cs:line 33 @ djpro.studio.controls.deckcontrol..ctor() in d:\visual studio projects\djproautomation\djpro.deck.controls\deckcontrol.cs:line 51
2nd control have on library saying.
"the variable deckcontrol1 either undeclared or never assigned"
call stack:
at system.componentmodel.design.serialization.codedomserializerbase.error(idesignerserializationmanager manager, string exceptiontext, string helplink) @ system.componentmodel.design.serialization.codedomserializerbase.deserializeexpression(idesignerserializationmanager manager, string name, codeexpression expression) @ system.componentmodel.design.serialization.codedomserializerbase.deserializeexpression(idesignerserializationmanager manager, string name, codeexpression expression) @ system.componentmodel.design.serialization.codedomserializerbase.deserializestatement(idesignerserializationmanager manager, codestatement statement)
then restored backup resx file , im going first problem.
so strange errors, seems fine in entity data model libraries , app.config has necessary connection strings. deckcontrol1 usercontrol seems fine library have created , opens ok.
i think gets me crazy enough , stops development.
any idea?
it looks have version conflict between assembly used generate resx , referenced assembly.
try removing reference, re-adding project reference, , regenerating resx.
Comments
Post a Comment