Quantcast
Channel: Configuration & Scripting
Viewing all articles
Browse latest Browse all 780

Compiler Error Message: CS0246: The type or namespace name 'IHSHeaderFunctions' could not be found (are you missing a using directive or an assembly reference?)

$
0
0

I've just been volunteered to get get our old (v basic) intranet site up.  The website is running, but unable to browse to it.  Bear in mind I have had zero exposure to any coding thus far.

It's IIS  on Win2003 SP2

Extract from default.aspx  The line in bold is generating the error listed in the subject.  After a bit of searching, it makes reference to DLLs - it wasn't that specialist. 

---

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%

IHSHeaderFunctions IHSHF = new IHSHeaderFunctions();

    Response.Write(IHSHF.outputHeader("Home Page", User.Identity.Name.Split(new char[] { '\\' })[1]));
 %>
 
<center><h3>CIT Home Page</h3>
<br />

---

<div class="expandable">Show Detailed Compiler Output:</div> <div id="compilerOutputDiv" sizset="false" sizcache008193564559855737="2970 115 51">
c:\windows\system32\inetsrv> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.DirectoryServices\2.0.0.0__b03f5f7f11d50a3a\System.DirectoryServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\1037d5f6\1548fe50\App_Web_emvilcdl.dll" /D:DEBUG /debug+ /optimize- /win32res:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\1037d5f6\1548fe50\emvilcdl.res" /w:4 /nowarn:1659;1699;1701  "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\1037d5f6\1548fe50\App_Web_emvilcdl.0.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\1037d5f6\1548fe50\App_Web_emvilcdl.1.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\1037d5f6\1548fe50\App_Web_emvilcdl.2.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\1037d5f6\1548fe50\App_Web_emvilcdl.3.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\1037d5f6\1548fe50\App_Web_emvilcdl.4.cs"


Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.3053
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

e:\IHS Scripts\zzznofile.aspx(4,5): error CS0246: The type or namespace name 'IHSHeaderFunctions' could not be found (are you missing a using directive or an assembly reference?)
e:\IHS Scripts\zzznofile.aspx(4,36): error CS0246: The type or namespace name 'IHSHeaderFunctions' could not be found (are you missing a using directive or an assembly reference?)
e:\IHS Scripts\Default.aspx(7,1): error CS0246: The type or namespace name 'IHSHeaderFunctions' could not be found (are you missing a using directive or an assembly reference?)
e:\IHS Scripts\Default.aspx(7,32): error CS0246: The type or namespace name 'IHSHeaderFunctions' 
</div>

Contents of zzznofile from above

%@ Page Language="C#" AutoEventWireup="true" CodeFile="zzznofile.aspx.cs" Inherits="zzznofile" %>

<%
    IHSHeaderFunctions IHSHF = new IHSHeaderFunctions();

    Response.Write(IHSHF.outputHeader("User Management", User.Identity.Name.Split(new char[] { '\\' })[1]));
 %>
 
 <center>
 <h3>Page Does not Exist</h3>
<br />
<table>
<tr><td>
<h5>This page has not been built yet. Please try again soon. </h5>
</td></tr>
</table>

 </center>
 <br />
 

 
 
 
 <%
    Response.Write(IHSHF.outputFooter());
 %>

Any ideas/comments/suggestions gratefully received

Thanks

Richard


Viewing all articles
Browse latest Browse all 780

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>