I'm glad to see I'm not the only one getting this error. I am using the latest version of AJAX, ASP.NET AJAX 1.0v, with Visual Studion 2005. I do not have any problems while I am under my development machine. I get the error after I publish the web site. I am using 1and1.com as my host and I do not know what the trust level is with them. I will have to look into that. Once the web site is published, the error only occurs with pages that have the Script Manager added to it. Pages that are not "AJAX" enabled do not experience any problems
I thought there may be a conflict between the reference I had to the system.web.extensions.dll and the system.web.extensions.dll that I have in the "bin" folder of the site. I removed the reference and ran the site under the development machine and had no problems. I published it and again had the same error message.
At this point I thought I would try some proven code. I created a striped down web site that contained one page with the following code from http://ajax.asp.net/docs/mref/T_System_Web_UI_ScriptManager.aspx. The code can be found towards the bottom of the page under Examples titled Enabling Partial-Page Updates.
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
Sub DropDownSelection_Change(ByVal Sender As Object, ByVal E As EventArgs)
Calendar1.DayStyle.BackColor = _
System.Drawing.Color.FromName(ColorList.SelectedItem.Value)
End Sub
Protected Sub Calendar1_SelectionChanged(ByVal Sender As Object, ByVal E As EventArgs)
SelectedDate.Text = Calendar1.SelectedDate.ToString()
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>UpdatePanel Example</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1"
runat="server" />
<asp:UpdatePanel ID="UpdatePanel1"
runat="server">
<ContentTemplate>
<asp:Calendar ID="Calendar1"
ShowTitle="True"
OnSelectionChanged="Calendar1_SelectionChanged"
runat="server" />
<div>
Background:
<br />
<asp:DropDownList ID="ColorList"
AutoPostBack="True"
OnSelectedIndexChanged="DropDownSelection_Change"
runat="server">
<asp:ListItem Selected="True" Value="White">
White </asp:ListItem>
<asp:ListItem Value="Silver">
Silver </asp:ListItem>
<asp:ListItem Value="DarkGray">
Dark Gray </asp:ListItem>
<asp:ListItem Value="Khaki">
Khaki </asp:ListItem>
<asp:ListItem Value="DarkKhaki"> D
ark Khaki </asp:ListItem>
</asp:DropDownList>
</div>
<br />
Selected date:
<asp:Label ID="SelectedDate"
runat="server">None.</asp:Label>
</ContentTemplate>
</asp:UpdatePanel>
<br />
</div>
</form>
</body>
</html>
Under the development machine the code runs as expected. Once published, again, I get the same error. I agree this is a very frustrating problem and would like to know where you are getting the error, under development or after being published? If after being published, who are you using for your host?
Thanks for any help anyone may be able to give.