0

i am developing an asp.net web application project.i have add a dll file with add reference command but i get error when i have said it Using namespace_name.

Note : i tried as Asp.Net Web site.But problem is continue.i checked framework version.

C# :

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DenemePc; <-- dll file

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
}

ERROR:

'DenemePc' The type or namespace name could be found (are you missing a using directive or assembly reference?)

1
  • 1
    Could you please post the error you get ? Commented Aug 2, 2012 at 11:24

1 Answer 1

3

I believe I have answered a similar question ASP.NET => Compiler Error Message: CS0246: The type or namespace name 'HtmlAgilityPack'

Please set the Copy Local property to True on the Referenced DLL of DenemePc

This will copy the dll to the output directory of your application

Sign up to request clarification or add additional context in comments.

6 Comments

How i set Copy Local True?i look properties.There isn't Copy Local Property.
I have found this property.It check true but i still get same error.
Error;'DenemePc' The type or namespace name could be found (are you missing a using directive or assembly reference?) Error code is CS0246.
@Bombula are you setting the Copy Local as True on DenemePc dll ?
Are all the permissions for the methods in your dll compatible with the methods calling them? If you are using "protected" instead of "public", that might be the cause.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.