c# - Failure to load type in ASP.NET? -


I have the same directory, an SSCX file and an ascx.cs file which is defined inside the C # class

This is the code in my .ascx file

  <% @ Control language = "C #" AutoEventWireup = "true" CodeBehind = "Test.ascx .cs "Inherits =" SITE.UI.Controls.Test "%>   

And this is the code in test.ascx.cs:

  using the system; Using System.Web.UI; Namespace SITE.UI.Controls {public partial class test: system. Web.UI.UserControl {}}   

However, whenever I try to create and create a site, I always get this error: <1> Error 1 type 'SITE.UI.Controls.Test' could not be loaded '

I'm sure I should do something wrong, but I can not find more than an hour of threshing Am .

Go to Web Project Properties - & gt; Create settings and change the output path to bin

If it does not work, check the post. Here are a lot of solutions for this problem.

I know when it is fixed or not :)

Comments