System.Web.UI.dll is missing

  • Thread starter Thread starter Magnus Mårtensson
  • Start date Start date
M

Magnus Mårtensson

Hi!

I just installed MS .NET Framework v1.1.4322. Then I tried to build a
control just to test. Since I use among others HtmlTextWriter I need to
import System.Web.UI like so:

Imports System.Web.UI

It does not work! I get the Configuration Error: "The located assembly's
manifest definition with name 'CustomControls' does not match the assembly
reference". Now I have a look in the
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config folder on my machine and
notice I am missing
System.Web.UI.dll. How can this be? There are a whole lot of other system
..dlls like System.dll, System.Web.dll, System.Web.Forms.dll and so on. Oh,
and shouldn't there be a System.Web.Security.dll? I don't have that!

In the file Machine.config there is no "add assembly" for either
System.Web.UI, or System.Web.Security. These are the once I have:

<add assembly="System
<add assembly="System.Web
<add assembly="System.Data
<add assembly="System.Web.Services
<add assembly="System.Xml
<add assembly="System.Drawing
<add assembly="System.EnterpriseServices
<add assembly="System.Web.Mobile

Is my installation of MS .NET Framework v1.1.4322 faulty? Or is something
else wrong?

Regards,

/Magnus
 
There has never been a System.Web.UI.dll assembly. The System.Web.UI
namespace is compiled into the System.Web.dll assembly. Start up ILDASM and
load System.Web.dll and you will see it contains:

System.Web
System.Web.Caching
System.Web.Compilation
System.Web.Configuration
System.Web.Handlers
System.Web.Hosting
System.Web.Mail
System.Web.Security
System.Web.SessionState
System.Web.UI
System.Web.Util

The exception tells you there is a problem with CustomControls, which is
most likely a namespace you grabbed from some sample code. There may also be
a problem with the reference to the System.Web.dll assembly, but I do not
get that from the error.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Author: ADO.NET and XML: ASP.NET on the Edge

****************************************************************************
****
Think Outside the Box!
****************************************************************************
****
 
Back
Top