pratpor
pratpor

Reputation: 2104

System.Web not available

I am using Visual Studio 2013 for my Windows Phone App Development. I have to use

System.Web.UI.Page

in my code, but when I try to include it with:

using System.Web.UI;

It gives this error: The type or namespace name Web doesnot exist in namespace System

When I search for it in Object Browser, its there. How can I use it?

Upvotes: 0

Views: 1936

Answers (2)

Cyral
Cyral

Reputation: 14153

In your project, you need to add a reference to the System.Web assembly which is located under:

C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Web

Also make sure you are targeting the full .NET Framework 4.0, not the Client Profile, as it does not contain the System.Web namespace.

Upvotes: 5

Patrick Hofman
Patrick Hofman

Reputation: 157116

You have to add the assembly System.Web to your project references.

Upvotes: 4

Related Questions