Click here to Skip to main content
15,868,016 members
Home / Discussions / C#
   

C#

 
AnswerRe: Trackbar 0.5 SmallChange Pin
Pete O'Hanlon5-Mar-13 2:39
subeditorPete O'Hanlon5-Mar-13 2:39 
AnswerRe: Trackbar 0.5 SmallChange Pin
Keith Barrow5-Mar-13 3:08
professionalKeith Barrow5-Mar-13 3:08 
QuestionUnity Application Block Error Pin
Bill Warner5-Mar-13 2:03
Bill Warner5-Mar-13 2:03 
AnswerRe: Unity Application Block Error Pin
Keith Barrow5-Mar-13 2:23
professionalKeith Barrow5-Mar-13 2:23 
GeneralRe: Unity Application Block Error Pin
Bill Warner5-Mar-13 3:07
Bill Warner5-Mar-13 3:07 
GeneralRe: Unity Application Block Error Pin
Keith Barrow5-Mar-13 3:26
professionalKeith Barrow5-Mar-13 3:26 
GeneralRe: Unity Application Block Error Pin
Bill Warner5-Mar-13 3:56
Bill Warner5-Mar-13 3:56 
GeneralRe: Unity Application Block Error Pin
Keith Barrow5-Mar-13 4:38
professionalKeith Barrow5-Mar-13 4:38 
Not the tag name should be "register", not "type" I assume this is a copy and paste error (I did this in my last post - apologies).
Type definitions have a standard format in .net:


"TypeName, [Assembly], [OtherStuff]"

I usually fully-qualify the typename (i.e. prefix it with the namespace), I don't think this is strictly necessary if the type is in the executing namespace. The stuff in "[]" is optional, you only need [assembly] if the type is not in the executing assembly IIRC (I always specify it any way) though the other stuff isn't relevant right now, for completeness you can specify something like:
"System.Diagnostics.TextWriterTraceListener, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"

Defines TextWriterTraceListener type in namespace System.Diagnostics. The Assembly containing the defined type is System.dll, st version 1.0.3300.0 having the neutral culture and can be verified with the supplied public key (to verify it is genuine). This definition format can apply to both your type attribute and <creadode>mapTo attribute.
Reading from your code you need to check:
Interface:
Frankenstein.Laboratory.Interfaces.dll (from the second part of the type) exists in the bin directory
Frankenstein.Laboratory.Interfaces.dll Contains an interface ILabTest in namespace Frankenstein.Laboratory.Interfaces (from the first part of type).
Mapped To Type:
Frankenstein.Laboratory.DTO.LabTest.dll (from the second part of the mapTo) exists in the bin directory
Frankenstein.Laboratory.DTO.LabTest.dll Contains an class AddNewLabTest in namespace Frankenstein.Laboratory.DTO.LabTest (from the first part of mapTo).AddNewLabTest must implement the above interface.
General:
The projects or dlls containing your mapped types need to be referenced in the project

The name is really just an identifier. Strictly you don't need it as you can use a default mapping.

What you have looks right, but without the actual project in front of me it is hard to tell. You might want to look at this article, which sets up a basic mapping step by step: http://netpl.blogspot.co.uk/2011/11/unity-application-block-is-lightweight.html[^]

GeneralRe: Unity Application Block Error Pin
Bill Warner5-Mar-13 4:55
Bill Warner5-Mar-13 4:55 
GeneralRe: Unity Application Block Error Pin
Keith Barrow5-Mar-13 5:04
professionalKeith Barrow5-Mar-13 5:04 
GeneralRe: Unity Application Block Error Pin
Bill Warner5-Mar-13 5:32
Bill Warner5-Mar-13 5:32 
GeneralRe: Unity Application Block Error [Modified] Pin
Keith Barrow5-Mar-13 5:59
professionalKeith Barrow5-Mar-13 5:59 
GeneralRe: Unity Application Block Error [Modified] Pin
Bill Warner5-Mar-13 6:18
Bill Warner5-Mar-13 6:18 
GeneralRe: Unity Application Block Error [Modified] Pin
Keith Barrow5-Mar-13 6:19
professionalKeith Barrow5-Mar-13 6:19 
QuestionC# Basics Pin
nabeel6345-Mar-13 0:44
nabeel6345-Mar-13 0:44 
AnswerRe: C# Basics Pin
Ingo5-Mar-13 1:00
Ingo5-Mar-13 1:00 
AnswerRe: C# Basics Pin
Sachin k Rajput 5-Mar-13 1:25
Sachin k Rajput 5-Mar-13 1:25 
GeneralRe: C# Basics Pin
nabeel6345-Mar-13 18:29
nabeel6345-Mar-13 18:29 
QuestionUpload file using webclient Pin
vanikanc4-Mar-13 7:47
vanikanc4-Mar-13 7:47 
QuestionRe: Upload file using webclient Pin
Eddy Vluggen4-Mar-13 8:44
professionalEddy Vluggen4-Mar-13 8:44 
AnswerRe: Upload file using webclient Pin
vanikanc4-Mar-13 9:50
vanikanc4-Mar-13 9:50 
GeneralRe: Upload file using webclient Pin
Eddy Vluggen4-Mar-13 10:46
professionalEddy Vluggen4-Mar-13 10:46 
AnswerRe: Upload file using webclient Pin
Keith Barrow4-Mar-13 23:49
professionalKeith Barrow4-Mar-13 23:49 
QuestionHow to capture url of the selected browser? Pin
micman4-Mar-13 6:37
micman4-Mar-13 6:37 
AnswerRe: How to capture url of the selected browser? Pin
Dave Kreskowiak4-Mar-13 8:20
mveDave Kreskowiak4-Mar-13 8:20 

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.