|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Resolving Type mismatch, HOWI starting to get the following compiler error, but I really don't know how to resolve it. Value of type 'DXP.Shared.myPath' cannot be converted to 'DXP.Shared.myPath'. Type mismatch could be due to the mixing of a file reference with a project reference to assembly 'DXP.Shared'. Try replacing the file reference to 'DXP.Shared.dll' in project '2_App_Code' with a project reference to 'DXP.Shared' Both the caller and called method resides in the same project, so how can part of the project have 'DXP.Shared.dll' as a project reference and another part of the project have it as a file reference??? I don't get it...any help would be greatly appreciated..... TIA Søren Søren M. Olesen wrote:
Show quoteHide quote > Hi You haven't duplicated the code for the myPath type in your project> > I starting to get the following compiler error, but I really don't know how > to resolve it. > > > Value of type 'DXP.Shared.myPath' cannot be converted to > 'DXP.Shared.myPath'. Type mismatch could be due to the mixing of a file > reference with a project reference to assembly 'DXP.Shared'. Try replacing > the file reference to 'DXP.Shared.dll' in project '2_App_Code' with a > project reference to 'DXP.Shared' > > Both the caller and called method resides in the same project, so how can > part of the project have 'DXP.Shared.dll' as a project reference and another > part of the project have it as a file reference??? > > I don't get it...any help would be greatly appreciated..... have you? Or does your solution have more than one project in which you have duplicated the code? Can you show us the code that produces this error. Hi
It's a rather large project, so it's kind of difficult to show the code. I've tried to reproduce the problem in a smaller project, but it seems to have something to do with the complexity of the project. What I basically have is a Web project with a number of usercontrols. These usercontrols takes an argument (property) which is of type 'DXP.Shared.myPath' some of these assignments give the type mismatch error some don't, but I haven't been able to figure out the pattern. I do have a feeling though, that it is because of the new dll structure (that each folder is compiled into a .dll) that causes the problem, maybe the compiler can't figure out that it's the same type or something like that..... Regards, Søren "Chris Dunaway" <dunaw***@gmail.com> wrote in message Søren M. Olesen wrote:news:1158936327.718174.313200@b28g2000cwb.googlegroups.com... Show quoteHide quote > Hi You haven't duplicated the code for the myPath type in your project> > I starting to get the following compiler error, but I really don't know > how > to resolve it. > > > Value of type 'DXP.Shared.myPath' cannot be converted to > 'DXP.Shared.myPath'. Type mismatch could be due to the mixing of a file > reference with a project reference to assembly 'DXP.Shared'. Try replacing > the file reference to 'DXP.Shared.dll' in project '2_App_Code' with a > project reference to 'DXP.Shared' > > Both the caller and called method resides in the same project, so how can > part of the project have 'DXP.Shared.dll' as a project reference and > another > part of the project have it as a file reference??? > > I don't get it...any help would be greatly appreciated..... have you? Or does your solution have more than one project in which you have duplicated the code? Can you show us the code that produces this error. |
|||||||||||||||||||||||