473,788 Members | 2,814 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.myP ath' cannot be converted to
'DXP.Shared.myP ath'. 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 2709
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.myP ath' cannot be converted to
'DXP.Shared.myP ath'. 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.myP ath' 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.goo glegroups.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.myP ath' cannot be converted to
'DXP.Shared.myP ath'. 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
4439
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 the table datingnew the value of the ident field.
1
2493
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 True. I then have an if statement to determine what to write to the screen depending on blnNoData. As long as the if statement is true (doesn't have to go to the else clause), the code runs fine. Otherwise, a type mismatch error is returned. In...
1
2295
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 verify the syntax, and that my .net code is ok - the type mismatch is happening at: DataGrid1.DataSource = myCommand.ExecuteReader(CommandBehavior.CloseConnection) Thanks in advance,
7
15822
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 have a page that allows users to type in the info (actually a calendar pop-up allows me to make sure they do it in the correct format), into a textbox. When this page gets called up again, I want to prefill the box with the existing data, in case...
4
11967
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 14 (STDCOST). ---End Error Msg--- The STDCOST is set to decimal (28,14) and is a formatted in Access as a number, single with 14 decimal. I don't know why I would be getting a Type
3
2916
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 347: 'response.Write(sql2)
1
2818
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 an HTML file. When I execute the EXE, which is only the form, and click the button, I get a "Type Mismatch" error on this line in the form: mailobj.SaveOutlookMessage() Any suggestions on why I'm getting the type mismatch error? --Form code
6
6000
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 class has stuff initialized by calling a sub SetClass that wants some Word specific objects passed-in. If the user mistakingly uses the wrong object, say, uses an Excel object
19
21573
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 date is more than 10 months out. The query runs fine, but I when I put the criteria of >10 I get 'Data Type mismatch' error. The code below is the original query. I have since put all the datediff bit in code, with all variables declared as date,...
0
10366
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10173
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9967
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5399
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3674
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.