Problem with namespace

HuaMin Chen
HuaMin Chen used Ask the Experts™
on
Hi,
How to resolve these problems?
Error	15	The type or namespace name 'ASP' could not be found in the global namespace (are you missing an assembly reference?)	C:\App2\Start\Default.aspx.designer.cs	76	27	Start
Error	16	The type or namespace name 'ASP' could not be found in the global namespace (are you missing an assembly reference?)	C:\App2\Start\Default.aspx.designer.cs	85	27	Start
Error	17	The type or namespace name 'ASP' could not be found in the global namespace (are you missing an assembly reference?)	C:\App2\Start\Default.aspx.designer.cs	112	27	Start

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Manoj PatilSr. Software Engineer
Commented:
Hey, what is your project build version ?
Show your .aspx file code.

If this error occurs, then the most common way to resolve it is adding a reference like below.

If you are using VS.NET:
1.  Right click on the References folder on your project.
2.  Select Add Reference.
3.  Select the .NET tab (or select the Browse button if it is not a .NET Framework assembly).
4.  Double-click the assembly containing the namespace in the error message.
5.  Press the OK button.
HuaMin ChenProblem resolver

Author

Commented:
What should be the reference to choose? Thanks
Manoj PatilSr. Software Engineer

Commented:
Show the screenshot of your References in Solution Explorer.
Also send the Default.aspx.designer.cs page.
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

HuaMin ChenProblem resolver

Author

Commented:
Sorry, after I added these
<ASPP:PopupPanel HeaderText="This is Header" ID="pup" 
          runat="server" OnCloseWindowClick="MycloseWindow">
    <PopupWindow runat="server">
        <ASPP:PopupWindow ID="PopupWindow1" 
        Visible="false" runat="server">
            <asp:Label ID="lbl" runat="server">ssssssssss</asp:Label>
            <br />
            <asp:TextBox ID="txt" AutoPostBack="true" 
            runat="server"></asp:TextBox>
        </ASPP:PopupWindow>
        <ASPP:PopupWindow ID="PopupWindow2" runat="server">
            <div align="center" style="width: 500px; height: 300px">
                <asp:Label ID="Label1" runat="server">nnnnn</asp:Label>
                <br />
                <asp:TextBox ID="TextBox1" AutoPostBack="true" 
                runat="server"></asp:TextBox>
                <asp:Button ID="in" runat="server" Text="sss" />
                <asp:TextBox ID="TextBox2" AutoPostBack="true" 
                runat="server"></asp:TextBox>
            </div>
        </ASPP:PopupWindow>
    </PopupWindow>
</ASPP:PopupPanel>

Open in new window

to the Web-page, I then got the problem. Why?
HuaMin ChenProblem resolver

Author

Commented:
Before this, everything is fine.
Top Expert 2016

Commented:
it's not aspp but asp you shouldn't mix classic asp with asp.net
HuaMin ChenProblem resolver

Author

Commented:
It is ASP.NET, right?
Sr. Software Engineer
Commented:
I think you are using third party control and forgot to add a reference.
Just add a attached DLL (uploaded as a .txt file. Just change the extension to .dll) in your project  and add a below line in your .aspx page

ASP.Web.UI.PopupControl.txt
<%@ Register Assembly="ASP.Web.UI.PopupControl"  Namespace="ASP.Web.UI.PopupControl"   TagPrefix="ASPP" %>

Open in new window

HuaMin ChenProblem resolver

Author

Commented:
Thanks.

I've added that dll file into Reference of the project like
https://app.box.com/s/j808pqjlhgtfl5qvlzf8g6y2gmg6ii4d

but I've still got this

Server Error in '/Start3' Application.

Parser Error 
  Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

 Parser Error Message: Could not load file or assembly 'ASP.Web.UI.PopupControl' or one of its dependencies. The system cannot find the file specified.

Source Error: 



Line 1:  <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Start._Default" %>
Line 2:  <%@ Register Assembly="ASP.Web.UI.PopupControl" 
Line 3:      Namespace="ASP.Web.UI.PopupControl"
Line 4:      TagPrefix="ASPP" %>  
  

 Source File:  /Start3/Default.aspx    Line:  2 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'ASP.Web.UI.PopupControl' could not be loaded.



WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

  


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34249  

Open in new window


why?
Manoj PatilSr. Software Engineer

Commented:
Have you added a reference in the project ?

Currently your app.box.com link is not accessible for me.  What you have sent ?
HuaMin ChenProblem resolver

Author

Commented:
Here is the same file
tt487.png
In above, I did already added the DLL file but I'm still getting the problem after having done this.
Manoj PatilSr. Software Engineer

Commented:
Is it possible for you to share your project sample ?
HuaMin ChenProblem resolver

Author

Commented:
Can I have your email address? Thanks.
Manoj PatilSr. Software Engineer

Commented:
Its my pleasure to be in touch with you. But sharing an email addresses is not allowed here.
And I think, you can not send DLL files in mail
You upload it on app.box.com  and send a link.
HuaMin ChenProblem resolver

Author

Commented:
Can you please refer to this

https://app.box.com/s/2orckj9zohsq8xpn55ukx098u429r243

? Thanks
Manoj PatilSr. Software Engineer

Commented:
Hi,

I have seen your sample project. But I didn't get any error or warning.
It runs directly without any error.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial