문제

I am writing an n-layer app/site and in my Common class library I need to call on NetSqlAzMan Web reference but that cannot be imported into a class library, only into a website type project. One way to get around it is to make my Common layer a site but that just doesn't seem right. How to properly implement that? I am using VS2010 Pro

도움이 되었습니까?

해결책

Sounds like the project type of your class library is Client Profile instead of a normal one.

Client profile class libraries are not allowed to reference System.Web

If you change the target platform to ".NET Framework 4" you should be able to reference System.Web

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top