2

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

Cœur
  • 37,241
  • 25
  • 195
  • 267
sd_dracula
  • 3,796
  • 28
  • 87
  • 158

1 Answers1

4

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

Tim
  • 497
  • 3
  • 9