简体   繁体   中英

ASP.Net / C# - missing an assembly reference

在此处输入图片说明 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.

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.

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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM