Reputation: 145
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?)
Upvotes: 0
Views: 2627
Reputation: 11201
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
Upvotes: 3