[英]Why does my type not load in ASP.Net site?
I need to make a few changes in an C# ASP.Net web site. 我需要在C#ASP.Net网站上进行一些更改。
I know C# and .net 3.5 but with this I am not very familiar. 我知道C#和.net 3.5但是我对此并不熟悉。
When I run this program I get this error: 当我运行此程序时,我收到此错误:
Cannot load type FredCK.FCKeditorV2.Uploader
at the line: 在线:
<%@ Page language="c#" Trace="false" Inherits="FredCK.FCKeditorV2.Uploader" AutoEventWireup="false" %>
I tried to put the FredCK.FCKeditorV2.dll in the Bin folder but nothing changed. 我试图将FredCK.FCKeditorV2.dll放在Bin文件夹中,但没有任何改变。
What could I do to solve this? 我该怎么做才能解决这个问题?
Make sure that the assembly containing this class is referenced in your project and added to the <assemblies>
section in your web.config (don't forget to adjust the version and PubliKeyToken to match those of your assembly): 确保在项目中引用包含此类的程序集并将其添加到web.config中的<assemblies>
部分(不要忘记调整版本和PubliKeyToken以匹配程序集的那些):
<assemblies>
...
<add assembly="FredCK.FCKeditorV2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=XXXX" />
</assemblies>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.