May 11, 2010 03:41 PM|WayneFulcher|LINK
I hope this is not considered a double post but I posted a message some weeks back in the Ajax section and got no responses at all. Old thread
After much reading and research I think I have determined this has nothing to do specifically with the Ajax controls.
You can get more details from reading the other post but here is the short of what I am doing:
I am using VS2010. My Live website that I am having problems with was created during the "release candidate" version of VS2010. I have since upgraded to the live release of VS2010. I am targeting .NET 4.0 for both my live website application as well as my
testing website application.
I created a custom control that inherits from the Ajax HTML editor. (SimpleEditor.cs)
Then I created a brand new website to test my control with. I added SimpleEditor.cs to the App_Code folder (which seems to be in dispute if I should put it there or not) then I registered the control on my default.aspx page and added the control. Ran the
test website and it works like a charm, no problems.
So then I added it to my App_Code folder in my Live website project, registered it at the top of the .aspx page and added the control exactly the same as in the test web project. But I get the folllowing error when I run this in Live:
Compiler Error Message: CS0433: The type 'CustomAjaxControls.SimpleEditor' exists in both 'c:\Documents and Settings\whf\Local Settings\Temp\Temporary ASP.NET Files\root\3667b7fb\64e994aa\App_Code.l4xfenyu.dll' and 'c:\Documents and Settings\whf\Local
Settings\Temp\Temporary ASP.NET Files\root\3667b7fb\64e994aa\assembly\dl3\69409895\b10c2573_3cf1ca01\SecureWebsite.DLL'
I have tried moving SimpleEditor.cs to the root folder of my live project but then I get the following error:
Parser Error Message: Unknown server tag 'cac:SimpleEditor'.
Here is the top portion of my SimpleEditor.cs file:
public class SimpleEditor : AjaxControlToolkit.HTMLEditor.Editor
protected override void FillBottomToolbar()
And here is what I put in my .aspx page:
<%@ Register Namespace="CustomAjaxControls" TagPrefix="cac" %>
later in my code
<cac:SimpleEditor runat="server" Width="100%" Height="60px" />
I have read a million things about assembly info in the web.config file, etc.. problem is most of that information is years old referring to VS2005 and .net 2.0 so I have no idea which of that is still relavent. Here is where I am lost like I said I added this
to a brand new test app and it worked fine. So after reading here are some things I started realizing was different from my test app than my live app.
1. I read where pages that were in sub folders had issues linking in the control so I created a subfolder on my test app and create a page in the sub folder then added the control and it still worked fine. Since my orginal useage in my Live App was in a
sub folder, I create a new page in the root of my live app and added the control and I still got the error.
2. Next I read something about using "Master Pages" so in my live app I create a brand new page that does not use a master page and I still get the errors.
I also closed VS2010 and removed the 'c:\Documents and Settings\whf\Local Settings\Temp\Temporary ASP.NET Files folder and restarted VS2010, still get the errors.
I have exhausted all ideas and now I just dont know what else to do. Can someone please help me? My Live web app has many pages and subfolders or else I would start a new website and pull each page over one at a time until I got the error then I might be
able to figure it out. But that would that a lot of work.