Click here to Skip to main content
15,897,226 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I m using Noogen.validation.dll in desktop application.after adding reference it shows error as "The type or namespace name 'Noogen' could not be found (are you missing a using directive or an assembly reference?)" so what to do now?

also i have added Noogen.validation.dll reference.
I m using visual studio 2010
Dot net framework 4 client profile.
also following warning also gets.

The referenced assembly "Noogen.Validation" could not be resolved because it has a dependency on "System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.
Posted

1 solution

It looks like a wrong target framework. Isn't the error message apparent? If not, do the following: open the project properties, first tab, "Application", locate "Target framework" and change the target framework. Probably, it is set to ".NET Framework 4 Client Profile". Change it to ".NET Framework 4".

—SA
 
Share this answer
 
Comments
sachin Veer 18-Jan-15 1:05am    
hi,
I m using Noogen.validation.dll in desktop application.
I have no any errors at compile time or execution time but problem that the validation rules applied are not getting working. even though validation method called thr button click event.following is below code used to call.
private void buttonEdit_Click(object sender, EventArgs e)
{
this.validationProvider1.ValidationMessages(
!this.validationProvider1.Validate());
}
i dont want to use custom validation.
please provide me quick help..
Sergey Alexandrovich Kryukov 18-Jan-15 1:31am    
All right, first, this is a separate and unrelated problem, second, you did not provide the information useful for helping you.
—SA
sachin Veer 18-Jan-15 1:44am    
hi,
The problem regarding Noogen.Validation error are you missing a using directive or an assembly reference?. has been solved as per your solution. Now while applying rules thr the provider after executing the application it is not working:
Sergey Alexandrovich Kryukov 18-Jan-15 7:59am    
Perhaps you need to ask a separate question and show a comprehensive code sample, explain what is "not working" exactly, starting from what would you expect, and so on.
—SA
sachin Veer 19-Jan-15 5:08am    
Hi,
I worked with problems and solved by writing code for rules which were generating automatically.
Thank You.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900