2

enter image description here Hi, I am a newbie in C# and visual studio. As Figure1 shown, I am trying to use the classes from other project in similar solution.

For example: I try to write "Using LibraryMS.Framework" at UserDto.cs from "LibraryMS.MasterSetup".

And I get the following error message:

"the type or namespace name 'framework' does not exist in the namespace 'LibraryMS' (are you missing an assembly reference?)"

Does anyone know how can I solve this? Also, do you have any good ASP.net website development online tutorial?

Visual studio version: 2010 .Net Framework 4.0

Thank you.

4
  • Did you reference this LibraryMS.Framework from your LibraryMSMS.Web project? Commented Nov 23, 2016 at 8:07
  • Hi, Welcome to C# :) , Unfortunately, that kind of error can't be explained more than that , especially when it comes to custom libraries, all you can get is check in your reference node in Solution section. So an example for you to start is : 1. Check if you have added the reference in references section; 2. Start using it. As for tutorials I think out there are plenty of websites and books (Professional ASP.NET MVC 5 for ex.), and original asp.net website Commented Nov 23, 2016 at 8:07
  • google.com/… Commented Nov 23, 2016 at 8:08
  • Dear Ermir Beqiraj and Tân Nguyễn thanks for the advice, the problem is still there even I add in the LibraryMS.Framework dll. I will keep troubleshoot the problem :) Commented Nov 24, 2016 at 3:57

2 Answers 2

4

Its asking you if you missed an assembly reference. So check the references in your class library for LibraryMS.Framework. If you can't find the reference then you can always add it by hitting "Add Reference" then under Reference Manager, click Project and select the class library which you would like to add.

Sign up to request clarification or add additional context in comments.

2 Comments

Dear dotCoder, I have tried and include the "Library.Framework" dll in "Library.MasterSetup" as well but the problem still there. I will try to solve it as I can. Thank you :)
Hmmm.. That doesn't make sense though
2

Along these two days, finally I have find out what is going on. The root case is because I am using ASP.NET Empty Web Application instead of using ASP.NET Server Control. Thank you guys. :) now I feel that Programming is a fun thing. Many thx!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.