473,320 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Resolving Type mismatch, HOW


Hi

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.....

TIA

Søren
Sep 22 '06 #1
2 2679
Søren M. Olesen wrote:
Hi

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.....
You haven't duplicated the code for the myPath type in your project
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.

Sep 22 '06 #2
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" <du******@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
Søren M. Olesen wrote:
Hi

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.....
You haven't duplicated the code for the myPath type in your project
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.
Sep 26 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Arun Wadhawan | last post by:
Hello MY SQL Server is causing me this problem : Microsoft VBScript runtime error '800a000d' Type mismatch: 'ident' >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> I am getting from...
1
by: LJgrnl | last post by:
I've got a type mismatch error that's driving me nutty. Variable blnNoData has the initial value False. If a recordset comes back empty (both .EOF and ..BOF are true) then blnNoData is set to...
1
by: Mark | last post by:
Hi - I tried this in VS.Net, and also in the Web Matrix code below: - but I am getting a type mismatch error. The sql statement runs perfectly from within the Access Query Designer. Can anyone...
7
by: middletree | last post by:
I've been messing with this for hours, and have been to various sites, including Aaron's site, and am truly stumped. The short version: in SQL Server, the 4 fields in question are datetime. I...
4
by: Mike | last post by:
I am getting a type mismatch error when I do a bulk insert. ---Begin Error Msg--- Server: Msg 4864, Level 16, State 1, Line 1 Bulk insert data conversion error (type mismatch) for row 1, column...
3
by: amitbadgi | last post by:
I am getting teh following error while converting an asp application to asp.net, Exception Details: System.Runtime.InteropServices.COMException: Type mismatch. Source Error: Line...
1
by: Brett | last post by:
I have a form that calls a method within a DLL. By clicking a button on the form, the DLL is instantiated and the SaveOutlookMessage() method invoked. The DLL code copies messages from Outlook to...
6
by: Howard Kaikow | last post by:
I'm doing a VB 6 project in which I am trying to protect against type mismatch errors. Is the process any different in VB .NET? Here's what I'm doing in VB 6. I have an ActiveX DLL. The...
19
by: Lysander | last post by:
I have written a query that takes three integers representing day,month and year, forms a date from them and compares this date to the date the record was entered and returns any records where the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.