Showing posts with label error. Show all posts
Showing posts with label error. Show all posts

Wednesday, March 28, 2012

Continuing problem - "Access is denied" client error

I have struggled with this problem for a couple of months now with no solution yet.

I am migrating an existing web site to a newer user-friendly web using AJAX and the AJAX Toolkit controls. I am using a couple of the tab controls on a couple of pages, including the default page. I am using VB 2005 along with SQL Server 2005. The production server is running IIS 5.1 (and yes, I have installed AJAX and the toolkit on it and yes, the dll files are in the bin directory).

Everything works fine on the development machine, but after copying the files to the production server and then viewing the site in IE (6 or 7) on any machine, there are "Access is Denied" errors when trying to use one of the tab controls.

I have searched the internet and did come across and article about this error, but it pertains to using IFRAME and I am not using any. I have uninstalled and reinstalled IIS on the production server, I have uninstalled and reinstalled both AJAX and the toolkit.

I am at a loss - is there anything that I am overlooking? I would like to have this newer website up and running by June 1, however if there is still these errors, I will have to revert back to the older non-AJAX enabled site.

Thanks for any information.

Anybody?

Here is a thought too and I don't know if this has anything to do with it, but my site is run locally at home using a static IP address. The URL is registered through Yahoo Small Business.

Would that have anything to do with it for any reason?


And to add to it, the error points tohttp://<the ip address>/thewebpage

Contacts sample Atlas application error

When I try to run the site locally, I get aConfiguration Error .

Server Error in '/Contacts' Application.

Parser Error Message:Could not load type 'Microsoft.Web.Services.WebResourceCompressionModule'. (c:\inetpub\wwwroot\contacts\web.config line 62)

Line 62 is:<add name="WebResourceCompression" type="Microsoft.Web.Services.WebResourceCompressionModule"/>

Also, I see this error in Visual Studio: Error 1 Type 'Microsoft.Web.UI.Controls.AutoCompleteProperties' does not have a public property named 'MinimumPrefixLength'. c:\inetpub\wwwroot\Contacts\DefaultFull.aspx 93

What do I need to modify here? Aren't these samples supposed to run without any tweaking?

Ooops...

Never mind. I just had to install the new March CTP of Atlas. I guess my installed version was a bit older.


Hi pmarangoni

The contacts\readme.txt has the following step to install and run the sample

ASP.NET 'Atlas' Contacts Sample


Setup
=====
Copy the following file:

C:\Program Files\Microsoft ASP.NET\Atlas\v2.0.50727\Microsoft.Web.Atlas.dll

to the Bin folder in the folder where you have the Contacts sample files.


Running the Sample
==================
1. Open Visual Studio

2. Open the Contacts project by following these steps:

a. In the "File" menu, click "Open Website."
b. In the "Open Web Site" dialog box, click the "File System" tab.
c. Navigate to the folder where you have the Contacts sample files, and
then click "Open".

3. Run the Default.aspx page.

4. Navigate in the GridView control.

Notice that paging or sorting does not require a postback.

5. Drag the "Add new contact" panel to a different location on the page.

6. Enter a new contact.

Note that the box provides auto-complete behavior.


Hi jhawk,

I've tried following the instructions on most of the samples, including the Contacts sample.I haven't gotten any Atlas sample to work. Some of them won't even compile because of javascript errors. Others have runtime javascript errors.

As far as Contacts go, "Default.aspx" doesn't use any Atlas. You have to run "DefaultFull.aspx". However, when I try to run the "DefaultFull.aspx" page, I get a runtime javascript error: "invalid argument".

I think the samples need some more careful review.

Monday, March 26, 2012

ConfirmButtonExtender inside templatefield inside gridview gives an error but works fine

Inside a gridview i have a button to delete a record (button 3). There is a ConfirmButtonExtender to prevent a administator from deleting the wrong record.

This works fine, but the page gives an error (IE6 in the statusbar). Also some TextBoxWatermarkExtenders placed after the gridview only work after a postback. When I take out the ConfirmButtonExtender it works fine. I can't place the ConfirmButtonExtender outside the gridview because it doesn;t find button3 than.

Anyone? By the way: the ConfirmButtonExtender does work like it's supposed to!

... <asp:TemplateField Visible="False" ShowHeader="False"> <ItemStyle Width="35px" HorizontalAlign="Left"></ItemStyle> <ItemTemplate> <asp:Button ID="Button3" runat="server" Style="background-attachment: fixed; background-color: transparent; background-image: url(http://blabla.gif); background-repeat:no-repeat ; border-top-width: thin; border-left-width: thin; border-left-color: moccasin; border-bottom-width: thin; border-bottom-color: moccasin; border-top-color: moccasin; border-right-width: thin; border-right-color: moccasin;" Width="32px" tooltip="Verwijder WV (definitief!!!!!)" CommandArgument='<%# eval("Kop1AlgVpNummer")%>' Height="30px" OnCommand="Button3_Command" BorderColor="#FFE0C0" BorderStyle="None" /> <ajaxToolkit:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" TargetControlID="Button3" ConfirmText="Zeker weten?"></ajaxToolkit:ConfirmButtonExtender> </ItemTemplate> </asp:TemplateField>...

Seems to work fine for me (the error on postback's just due to the way I create the data):

<%@. Page Language="C#" AutoEventWireup="true" Title="Controls in a Repeater Tests" %><script runat="server"> protected void Page_Load(object sender, EventArgs e) { System.Data.DataTable table = new System.Data.DataTable(); table.Columns.Add(new System.Data.DataColumn("Value", typeof(string))); foreach (string value in "one,two,three,four,five".Split(',')) { System.Data.DataRow row = table.NewRow(); row["Value"] = value; table.Rows.Add(row); } Repeater1.DataSource = new System.Data.DataView(table); Repeater1.DataBind(); }</script><%@. Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head id="Head1" runat="server"> <title>Sample Page</title></head><body> <form id="form1" runat="server"> <asp:ScriptManager ID="SM" runat="server" /> <asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> <asp:Button ID="Button" runat="server" Text='<%# Eval("Value")%>' /> <ajaxToolkit:ConfirmButtonExtender ID="CBE" runat="server" TargetControlID="Button" ConfirmText='<%# Eval("Value")+" - Really?"%>' /> <hr /> </ItemTemplate> </asp:Repeater> </form></body></html>

Mmmm, maybe I should add that my gridview is inside an updatepanel also? Yours' is in a repeater......

Or should I paste the complete code?


 OK, here is the complete code: 
1<%@. Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="overzicht.aspx.vb" Inherits="_overzicht" %>2<%@. MasterType virtualpath="~/Masterpage.master" %>34<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">5 <asp:ScriptManager runat="server" id="SC1"></asp:ScriptManager>6 <div>7 <asp:UpdatePanel ID="UpdatePanel1" runat="server">8 <ContentTemplate>9 <em><span style="FONT-SIZE: 8pt; COLOR: #006600">10 <asp:Label ID="Label8" runat="server" Font-Size="8pt" Text="Status:"></asp:Label><br/>11 <asp:DropDownList style="FONT-SIZE: 8pt; FONT-FAMILY: 'Lucida Sans'" id="ddl_snel" runat="server" Width="49px" Height="19px" AutoPostBack="True" OnSelectedIndexChanged="ddl_snel_SelectedIndexChanged">12 <asp:ListItem ><=3</asp:ListItem>13 <asp:ListItem >=3</asp:ListItem>14 <asp:ListItem >=2</asp:ListItem>15 <asp:ListItem >=1</asp:ListItem>16 <asp:ListItem >=0</asp:ListItem>17 </asp:DropDownList></span></em>18<br/>19 <asp:GridView id="GridView_s" runat="server" Width="56px" AllowPaging="True" ShowHeader="False" PageSize="30" HorizontalAlign="Left" Height="600px" GridLines="None" DataSourceID="SqlDataSource_s" DataKeyNames="Kop1AlgVpnummer" AutoGenerateColumns="False" Font-Size="8pt" Font-Strikeout="False">20 <Columns>21 <asp:TemplateField>22 <ItemTemplate>23 <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("Kop1AlgVpNummer", "~/MemberPaginas/details.aspx?WVnummer={0}")%>'24 Text='<%# Eval("Kop1AlgVpnummer", "{0}")%>' ToolTip='<%# Eval("titel")%>'></asp:HyperLink>25 </ItemTemplate>26 </asp:TemplateField>27 </Columns>28 <PagerSettings Mode="NextPreviousFirstLast" />29 <RowStyle HorizontalAlign="Left" VerticalAlign="Top" Font-Italic="True" Font-Size="8pt" ForeColor="Maroon" />30 <PagerStyle Font-Size="7pt" Font-Overline="False" />31 </asp:GridView>32<asp:SqlDataSource ID="SqlDataSource_s" runat="server" ConnectionString="<%$ ConnectionStrings:WV-ConnectionString%>"33 SelectCommand="SELECT Kop1AlgVpnummer, titel FROM DATA WHERE (status <= 3) ORDER BY Kop1AlgVpnummer DESC">34</asp:SqlDataSource>3536 </ContentTemplate>37 </asp:UpdatePanel>38 </div>39</asp:Content>4041<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">42 <div style="FONT-SIZE: 8pt"><br />43 <asp:UpdatePanel runat="server" id="up2">44 <ContentTemplate>45 <asp:Button style="LEFT: 0px; POSITION: relative; TOP: -21px" id="Button6" runat="server" Text="print overzicht (PDF)" Font-Size="8pt" Font-Bold="True" Width="132px" ForeColor="#FF0000" BackColor="#0000C0" ToolTip="Print huidige overzicht..."></asp:Button>46 <asp:Button style="LEFT: 94px; CURSOR: hand; POSITION: relative; TOP: -21px" id="Button4" runat="server" Text="Mijn WV's" Font-Size="8pt" Font-Bold="True" BorderStyle="Ridge" ForeColor="#0000C0" BackColor="#FFC080" ToolTip="Laat alleen 'mijn WV's' zien" Height="19px" BorderColor="#FF8000"></asp:Button>47 <asp:Button style="LEFT: 495px; CURSOR: hand; FONT-FAMILY: 'Lucida Sans'; POSITION: relative; TOP: -21px" id="Button2" runat="server" Text="Reset filters" Font-Size="8pt" Font-Bold="True" BorderStyle="Ridge" Width="123px" ForeColor="#0000C0" BackColor="#FFC080" ToolTip="Reset alle filters en geef het toaal overzicht weer" BorderColor="#FF8000"></asp:Button>  48 <asp:Button style="BORDER-TOP-WIDTH: thin; BORDER-LEFT-WIDTH: thin; BORDER-LEFT-COLOR: moccasin; BACKGROUND-ATTACHMENT: fixed; LEFT: 183px; BACKGROUND-IMAGE: url(http://eb-service/WV/MemberPaginas/images/vraagteken.gif); BORDER-BOTTOM-WIDTH: thin; BORDER-BOTTOM-COLOR: moccasin; CURSOR: hand; BORDER-TOP-COLOR: moccasin; BACKGROUND-REPEAT: no-repeat; POSITION: relative; TOP: -17px; BACKGROUND-COLOR: transparent; BORDER-RIGHT-WIDTH: thin; BORDER-RIGHT-COLOR: moccasin" id="Button_help4" runat="server" Font-Size="8pt" BorderStyle="None" Width="21px" Height="24px" BorderColor="#FFE0C0" tooltip="info..."></asp:Button>49 <asp:Button style="BORDER-TOP-WIDTH: thin; BORDER-LEFT-WIDTH: thin; BORDER-LEFT-COLOR: moccasin; BACKGROUND-ATTACHMENT: fixed; LEFT: -240px; BACKGROUND-IMAGE: url(http://eb-service/WV/MemberPaginas/images/vraagteken.gif); BORDER-BOTTOM-WIDTH: thin; BORDER-BOTTOM-COLOR: moccasin; CURSOR: hand; BORDER-TOP-COLOR: moccasin; BACKGROUND-REPEAT: no-repeat; POSITION: relative; TOP: -18px; BACKGROUND-COLOR: transparent; BORDER-RIGHT-WIDTH: thin; BORDER-RIGHT-COLOR: moccasin" id="Button_help5" runat="server" Font-Size="8pt" BorderStyle="None" Width="21px" Height="24px" BorderColor="#FFE0C0" tooltip="info..."></asp:Button>50 <asp:Button style="BORDER-TOP-WIDTH: thin; BORDER-LEFT-WIDTH: thin; BORDER-LEFT-COLOR: moccasin; BACKGROUND-ATTACHMENT: fixed; LEFT: 106px; BACKGROUND-IMAGE: url(http://eb-service/WV/MemberPaginas/images/vraagteken.gif); BORDER-BOTTOM-WIDTH: thin; BORDER-BOTTOM-COLOR: moccasin; CURSOR: hand; BORDER-TOP-COLOR: moccasin; BACKGROUND-REPEAT: no-repeat; POSITION: relative; TOP: 20px; BACKGROUND-COLOR: transparent; BORDER-RIGHT-WIDTH: thin; BORDER-RIGHT-COLOR: moccasin" id="Button_help6" runat="server" Font-Size="8pt" BorderStyle="None" Width="21px" Height="24px" BorderColor="#FFE0C0" tooltip="info..."></asp:Button> <BR />51 <asp:DropDownList style="LEFT: 1px; CURSOR: hand; POSITION: relative; TOP: -7px" id="DDL_nummer" runat="server" Font-Size="9pt" Width="87px" ToolTip="Filter: geeft alleen de geselecteerde WV weer" AutoPostBack="True" DataSourceID="SqlDataSource2" AppendDataBoundItems="True" DataTextField="Kop1AlgVpnummer" DataValueField="Kop1AlgVpnummer">52 <asp:ListItem Value="0">geen filter</asp:ListItem>53 </asp:DropDownList>54 <asp:DropDownList style="LEFT: 18px; CURSOR: hand; POSITION: relative; TOP: -7px" id="DDL_aanvrager" runat="server" Font-Size="8pt" Width="133px" ToolTip="Filter: geeft alleen de WV's met de geselecteerde aanvrager weer" AutoPostBack="True" DataSourceID="SqlDataSource3" AppendDataBoundItems="True" DataTextField="Achternaam" DataValueField="asp_naam">55 <asp:ListItem Selected="True" Value="0">geen filter</asp:ListItem>56 </asp:DropDownList>57 <asp:TextBox style="LEFT: 50px; CURSOR: text; POSITION: relative; TOP: -9px" id="LokatieTextBox" runat="server" Font-Size="8pt" Width="112px" ToolTip="Filter: geeft alleen de WV's weer waarin zoekterm voor komt (veld: locatie)"></asp:TextBox>58 <asp:Button style="BORDER-TOP-WIDTH: thin; BORDER-LEFT-WIDTH: thin; BORDER-LEFT-COLOR: background; BACKGROUND: url(http://eb-service/WV/MemberPaginas/images/oogjes.gif) yellow fixed repeat-y center center; LEFT: 118px; BORDER-BOTTOM-WIDTH: thin; BORDER-BOTTOM-COLOR: background; OVERFLOW: hidden; CURSOR: hand; BORDER-TOP-COLOR: background; POSITION: relative; TOP: -4px; BORDER-RIGHT-WIDTH: thin; BORDER-RIGHT-COLOR: background" id="zoek1Button" onclick="zoek1" runat="server" Width="38px" Height="21px" tooltip="Zoek!"></asp:Button>59 <asp:Button style="LEFT: 7px; CURSOR: hand; POSITION: relative; TOP: -9px" id="Button1" runat="server" Text="reset" Font-Size="7pt" Font-Bold="True" ForeColor="#FF0000" ToolTip="Reset locatiefilter + overzicht"></asp:Button>60 <asp:TextBox style="LEFT: 123px; CURSOR: text; POSITION: relative; TOP: -8px" id="RedenTextBox" runat="server" Font-Size="8pt" Width="139px" ToolTip="Filter: geeft alleen de WV's weer waarin zoekterm voor komt (veld: Werk/reden)"></asp:TextBox>61 <asp:Button style="LEFT: 121px; CURSOR: hand; POSITION: relative; TOP: -9px" id="Button8" runat="server" Text="reset" Font-Size="7pt" Font-Bold="True" ForeColor="#FF0000" ToolTip="Reset werk/reden-filter + overzicht"></asp:Button>62 <asp:Label style="LEFT: -190px; POSITION: relative; TOP: 22px; TEXT-ALIGN: right" id="AantalLabel" runat="server" Font-Size="12pt" Font-Bold="True" Width="151px" ForeColor="#FF0033" BackColor="#0000CC"></asp:Label>63 <asp:DropDownList style="LEFT: -313px; CURSOR: hand; POSITION: relative; TOP: -40px" id="JaarDropDownList" runat="server" Font-Size="9pt" Width="84px" ForeColor="Yellow" BackColor="Red" ToolTip="Filter: geeft alleen de WV's met het geselecteerde jaar weer" AutoPostBack="True">64 <asp:ListItem Value="0">Geen filter</asp:ListItem>65 <asp:ListItem Value="1">2006</asp:ListItem>66 <asp:ListItem Value="2">2007</asp:ListItem>67 </asp:DropDownList>68 <asp:DropDownList style="LEFT: 61px; CURSOR: hand; POSITION: relative; TOP: -5px" id="DDL_status" runat="server" Font-Size="9pt" Width="56px" ToolTip="Filter: geeft alleen de WV's met de geselecteerde status weer" AutoPostBack="True">69 <asp:ListItem Value="0">= 0</asp:ListItem>70 <asp:ListItem Value="1">= 1</asp:ListItem>71 <asp:ListItem Value="2"><= 1</asp:ListItem>72 <asp:ListItem Value="3">= 2</asp:ListItem>73 <asp:ListItem Value="4"><= 2</asp:ListItem>74 <asp:ListItem Value="5">= 3</asp:ListItem>75 <asp:ListItem Value="6"><= 3</asp:ListItem>76 <asp:ListItem Value="7">= 4</asp:ListItem>77 <asp:ListItem Value="8"><= 4</asp:ListItem>78 <asp:ListItem Value="9">= 5</asp:ListItem>79 <asp:ListItem Value="10"><= 5</asp:ListItem>80 </asp:DropDownList>81 <asp:Button style="BORDER-TOP-WIDTH: thin; BORDER-LEFT-WIDTH: thin; BORDER-LEFT-COLOR: moccasin; BACKGROUND-ATTACHMENT: fixed; LEFT: 60px; BACKGROUND-IMAGE: url(http://eb-service/WV/MemberPaginas/images/vraagteken.gif); BORDER-BOTTOM-WIDTH: thin; BORDER-BOTTOM-COLOR: moccasin; CURSOR: hand; BORDER-TOP-COLOR: moccasin; BACKGROUND-REPEAT: no-repeat; POSITION: relative; TOP: -5px; BACKGROUND-COLOR: transparent; BORDER-RIGHT-WIDTH: thin; BORDER-RIGHT-COLOR: moccasin" id="Button_help" runat="server" Font-Size="8pt" BorderStyle="None" Width="21px" Height="24px" BorderColor="#FFE0C0" tooltip="info..."></asp:Button>82 <asp:Button style="BORDER-TOP-WIDTH: thin; BORDER-LEFT-WIDTH: thin; BORDER-LEFT-COLOR: moccasin; BACKGROUND-ATTACHMENT: fixed; LEFT: -690px; BACKGROUND-IMAGE: url(http://eb-service/WV/MemberPaginas/images/vraagteken.gif); BORDER-BOTTOM-WIDTH: thin; BORDER-BOTTOM-COLOR: moccasin; CURSOR: hand; BORDER-TOP-COLOR: moccasin; BACKGROUND-REPEAT: no-repeat; POSITION: relative; TOP: -5px; BACKGROUND-COLOR: transparent; BORDER-RIGHT-WIDTH: thin; BORDER-RIGHT-COLOR: moccasin" id="Button_help2" runat="server" Font-Size="8pt" BorderStyle="None" Width="21px" Height="23px" BorderColor="#FFE0C0" tooltip="info..."></asp:Button>83 <asp:Button style="BORDER-TOP-WIDTH: thin; BORDER-LEFT-WIDTH: thin; BORDER-LEFT-COLOR: moccasin; BACKGROUND-ATTACHMENT: fixed; LEFT: -866px; BACKGROUND-IMAGE: url(http://eb-service/WV/MemberPaginas/images/vraagteken.gif); BORDER-BOTTOM-WIDTH: thin; BORDER-BOTTOM-COLOR: moccasin; CURSOR: hand; BORDER-TOP-COLOR: moccasin; BACKGROUND-REPEAT: no-repeat; POSITION: relative; TOP: -6px; BACKGROUND-COLOR: transparent; BORDER-RIGHT-WIDTH: thin; BORDER-RIGHT-COLOR: moccasin" id="Button_help3" runat="server" Font-Size="8pt" BorderStyle="None" Width="21px" Height="24px" BorderColor="#FFE0C0" tooltip="info..."></asp:Button>84 <asp:GridView id="GridView1" runat="server" BorderWidth="1px" BorderStyle="Groove" Width="1000px" ForeColor="Black" BackColor="PapayaWhip" AutoGenerateColumns="False" DataKeyNames="Kop1AlgVpnummer" PageSize="8" AllowPaging="True" BorderColor="Tan" AllowSorting="True" CellPadding="2" EmptyDataText="Geen data!" OnPageIndexChanging="GridView1_PageIndexChanging" OnSorting="GridView1_Sorting">85 <PagerSettings PageButtonCount="30" Mode="NumericFirstLast"></PagerSettings>86 <FooterStyle BackColor="Tan"></FooterStyle>87 <Columns>88 <asp:TemplateField SortExpression="Kop1AlgVpnummer" HeaderText="WV:">89 <ItemStyle BackColor="SandyBrown" Width="60px" HorizontalAlign="Center" Font-Bold="True"></ItemStyle>90 <ItemTemplate>91 <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("Kop1AlgVpnummer", "details.aspx?WVnummer={0}")%>'92 Text='<%# Eval("Kop1AlgVpnummer")%>' ToolTip='<%# Eval("titel")%>'></asp:HyperLink>93 <br />94 <asp:Button ID="Button7" runat="server" CommandArgument='<%# Eval("Kop1AlgVpnummer")%>'95 Font-Bold="True" Font-Size="7pt" ForeColor="Red" Height="15px" OnCommand="pdf_maak"96 Style="font-family: 'Lucida Sans'" Text="PDF" Width="30px" />97 </ItemTemplate>98 </asp:TemplateField>99 <asp:TemplateField SortExpression="Kop1VpPlus" HeaderText="WV-Plus">100 <ItemStyle Width="40px" HorizontalAlign="Center"></ItemStyle>101 <ItemTemplate>102 <asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Bind("Kop1VpPlus")%>' Enabled="false" />103 </ItemTemplate>104 </asp:TemplateField>105 <asp:TemplateField SortExpression="Kop1AanvraagNaam" HeaderText="Aanvrager">106 <ItemStyle Width="95px" HorizontalAlign="Left"></ItemStyle>107 <ItemTemplate>108 <asp:Label ID="Label2" runat="server" Text='<%# Bind("Kop1AanvraagNaam")%>'></asp:Label>109 </ItemTemplate>110 </asp:TemplateField>111 <asp:TemplateField SortExpression="Kop1AanvraagDatum" HeaderText="Aanvraag-datum">112 <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>113 <ItemTemplate>114 <asp:Label ID="Label3" runat="server" Text='<%# Bind("Kop1AanvraagDatum", "{0:d}")%>'></asp:Label><br />115 </ItemTemplate>116 </asp:TemplateField>117 <asp:TemplateField SortExpression="Kop1AlgLocatie" HeaderText="Locatie">118 <ItemStyle Width="130px" HorizontalAlign="Left"></ItemStyle>119 <ItemTemplate>120 <asp:Label ID="Label4" runat="server" Text='<%# Bind("Kop1AlgLocatie")%>'></asp:Label>121 </ItemTemplate>122 </asp:TemplateField>123 <asp:TemplateField HeaderText="Werk / Reden">124 <ItemStyle Height="60px" Wrap="True" HorizontalAlign="Left" VerticalAlign="Top"></ItemStyle>125 <ItemTemplate>126 <asp:Panel ID="Panel2" runat="server" Height="60px" ScrollBars="Vertical">127 <asp:Label ID="Label5" runat="server" Height="60px" Text='<%# Bind("Kop2WerkReden")%>'></asp:Label>128 </asp:Panel>129 </ItemTemplate>130 </asp:TemplateField>131 <asp:TemplateField SortExpression="Kop1UitvAanvangsdatum1" HeaderText="Aanvangs-datum">132 <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>133 <ItemTemplate>134 <asp:Label ID="Label1" runat="server" Text='<%# Eval("Kop1UitvAanvangsdatum1", "{0:d}")%>' ToolTip="aanvangsdatum"></asp:Label> <br />135 <asp:Label ID="Label7" runat="server" Style="font-size: 8pt; color: blue; font-style: italic;136 background-color: yellow" Text='<%# Eval("Kop1UitvEinddatum1", "{0:d}")%>' ToolTip="einddatum"></asp:Label>137 </ItemTemplate>138 </asp:TemplateField>139 <asp:TemplateField SortExpression="status" HeaderText="Status">140 <ItemStyle Width="40px" HorizontalAlign="Center"></ItemStyle>141 <ItemTemplate>142 <asp:Label ID="Label6" runat="server" Text='<%# Bind("status")%>'></asp:Label>143 </ItemTemplate>144 </asp:TemplateField>145 <asp:TemplateField Visible="False" ShowHeader="False">146 <ItemStyle Width="35px" HorizontalAlign="Left"></ItemStyle>147 <ItemTemplate>148 <asp:Button ID="Button3" runat="server" Style="background-attachment: fixed; background-color: transparent;149 background-image: url(http://eb-service/WV/MemberPaginas/images/delete.gif); background-repeat:no-repeat ; border-top-width: thin; border-left-width: thin; border-left-color: moccasin; border-bottom-width: thin; border-bottom-color: moccasin; border-top-color: moccasin; border-right-width: thin; border-right-color: moccasin;"150 Width="32px" tooltip="Verwijder WV (definitief!!!!!)" CommandArgument='<%# eval("Kop1AlgVpNummer")%>' Height="30px" OnCommand="Button3_Command" BorderColor="#FFE0C0" BorderStyle="None" />151 <ajaxToolkit:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" TargetControlID="Button3" ConfirmText="Zeker weten?"></ajaxToolkit:ConfirmButtonExtender>152 </ItemTemplate>153 </asp:TemplateField>154 </Columns>155156 <RowStyle Font-Size="11pt" Font-Overline="False"></RowStyle>157 <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite"></SelectedRowStyle>158 <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" Font-Size="10pt" Font-Bold="True" Font-Strikeout="False"></PagerStyle>159 <HeaderStyle BackColor="Tan" Font-Size="12pt" Font-Overline="False" Font-Bold="True"></HeaderStyle>160 <AlternatingRowStyle BackColor="Moccasin" Font-Size="11pt" Font-Strikeout="False"></AlternatingRowStyle>161 </asp:GridView>162 <asp:Button style="LEFT: 950px; CURSOR: hand; POSITION: absolute; TOP: 68px" id="Button5" runat="server" Text="delete" Font-Size="8pt" Font-Bold="True" BorderStyle="Ridge" ForeColor="#0000C0" BackColor="#FFC080" ToolTip="laat kolom 'verwijderen' zien (alleen beheerders)" Height="19px" BorderColor="#FF8000"></asp:Button>163164 <asp:Panel id="Panel1" runat="server" Width="1000px" HorizontalAlign="Center" Direction="LeftToRight">165 <asp:SqlDataSource id="SqlDataSource2" runat="server" SelectCommand="SELECT [Kop1AlgVpnummer] FROM [DATA] ORDER BY [Kop1AlgVpnummer] DESC" ConnectionString="<%$ ConnectionStrings:WV-ConnectionString%>">166 </asp:SqlDataSource>167 <asp:SqlDataSource id="SqlDataSource3" runat="server" SelectCommand="SELECT [achternaam], [asp_naam] FROM [emailadressen] WHERE ([achternaam] IS NOT NULL) ORDER BY [achternaam]" ConnectionString="<%$ ConnectionStrings:WV-ConnectionString%>">168 </asp:SqlDataSource>169170 <asp:UpdateProgress id="UpdateProgress1" runat="server">171 <ProgressTemplate>172 <div style="left: 280px; position: absolute; top: 400px">173 <img alt="" src="../MemberPaginas/images/progressbar_long_green.gif" height="40px" width="500px" />174 </div>175 </ProgressTemplate>176 </asp:UpdateProgress>177178 <ajaxToolkit:TextBoxWatermarkExtender id="TextBoxWatermarkExtender1" watermarkText="Filter: werk/reden" runat="server" WatermarkCssClass="watermerk" TargetControlID="RedenTextBox"></ajaxToolkit:TextBoxWatermarkExtender>179 <ajaxToolkit:TextBoxWatermarkExtender id="TextBoxWatermarkExtender2" watermarkText="Filter: locatie" runat="server" WatermarkCssClass="watermerk" TargetControlID="LokatieTextBox"></ajaxToolkit:TextBoxWatermarkExtender>180 <asp:Panel style="BORDER-RIGHT: green thin solid; BORDER-TOP: green thin solid; DISPLAY: none; BORDER-LEFT: green thin solid; COLOR: blue; BORDER-BOTTOM: green thin solid; BACKGROUND-COLOR: yellow; TEXT-ALIGN: left; backcolor: gray; forecolor: blue" id="Panel10" runat="server" Font-Size="10pt" Width="350px"><P><SPAN style="TEXT-DECORATION: underline">Met dit filter kunt u het overzicht filteren aan de hand van de gewenste status:</SPAN></P>0: aangevraagd<BR />1: niet akkoord<BR />2: akkoord, nog niet actief<BR />3: actief<BR />4: verlopen<BR />5: beeindigd<BR /><BR />Het is mogelijk om alleen te filteren op WV's met een bepaalde status (=), of op WV's met een bepaalde status en kleiner (<=).<BR /><BR />Dit filter staat standaard op alleen actieve WV's ingesteld (status = 3).<BR /><BR />Let op, dit filter werkt samen met de andere filters!<BR /><BR /><DIV style="TEXT-ALIGN: center"><asp:Button id="OkButton" runat="server" Text="OK"></asp:Button></DIV></asp:Panel>181 <asp:Panel style="BORDER-RIGHT: green thin solid; BORDER-TOP: green thin solid; DISPLAY: none; BORDER-LEFT: green thin solid; COLOR: blue; BORDER-BOTTOM: green thin solid; BACKGROUND-COLOR: yellow; TEXT-ALIGN: left; backcolor: gray; forecolor: blue" id="Panel11" runat="server" Font-Size="10pt" Width="350px"><P><SPAN style="TEXT-DECORATION: underline">Met dit filter kunt u het overzicht filteren op aanvrager.</SPAN></P>Selecteer een naam in de keuzelijst en het overzicht geeft alle WV's weer van die persoon.<BR /><BR />Let op, dit filter werkt samen met de andere filters!<BR /><BR /><DIV style="TEXT-ALIGN: center"><asp:Button id="OkButton2" runat="server" Text="OK"></asp:Button></DIV></asp:Panel>182 <asp:Panel style="BORDER-RIGHT: green thin solid; BORDER-TOP: green thin solid; DISPLAY: none; BORDER-LEFT: green thin solid; COLOR: blue; BORDER-BOTTOM: green thin solid; BACKGROUND-COLOR: yellow; TEXT-ALIGN: left; backcolor: gray; forecolor: blue" id="Panel12" runat="server" Font-Size="10pt" Width="350px"><P><SPAN style="TEXT-DECORATION: underline">Met dit filter kunt u direct een WV selecteren.</SPAN></P>Selecteer een WV in de keuzelijst (alle WV's) en het overzicht geeft alleen die WV weer.<BR /><BR />Let op, dit filter werkt niet samen met de andere filters!<BR /><BR /><DIV style="TEXT-ALIGN: center"><asp:Button id="OkButton3" runat="server" Text="OK"></asp:Button></DIV></asp:Panel>183 <asp:Panel style="BORDER-RIGHT: green thin solid; BORDER-TOP: green thin solid; DISPLAY: none; BORDER-LEFT: green thin solid; COLOR: blue; BORDER-BOTTOM: green thin solid; BACKGROUND-COLOR: yellow; TEXT-ALIGN: left; backcolor: gray; forecolor: blue" id="Panel13" runat="server" Font-Size="10pt" Width="350px"><P><SPAN style="TEXT-DECORATION: underline">Met dit filter kunt u het overzicht filteren op jaar.</SPAN></P>Selecteer een jaar in de keuzelijst en het overzicht geeft alleen WV's weer die op dat jaar betrekking hebben.<BR /><BR />Dit filter staat standaard op het huidige jaar.<BR /><BR />Let op, dit filter werkt samen met de andere filters!<BR /><BR /><DIV style="TEXT-ALIGN: center"><asp:Button id="OkButton4" runat="server" Text="OK"></asp:Button></DIV></asp:Panel>184 <asp:Panel style="BORDER-RIGHT: green thin solid; BORDER-TOP: green thin solid; DISPLAY: none; BORDER-LEFT: green thin solid; COLOR: blue; BORDER-BOTTOM: green thin solid; BACKGROUND-COLOR: yellow; TEXT-ALIGN: left; backcolor: gray; forecolor: blue" id="Panel14" runat="server" Font-Size="10pt" Width="350px"><P><SPAN style="TEXT-DECORATION: underline">Exporteer hiermee het overzicht naar PDF.</SPAN></P>Met deze knop kunt u het huidige overzicht naar een zgn. PDF-bestand exporteren. <BR /><BR /><DIV style="TEXT-ALIGN: center"><asp:Button id="OkButton5" runat="server" Text="OK"></asp:Button></DIV></asp:Panel>185 <asp:Panel style="BORDER-RIGHT: green thin solid; BORDER-TOP: green thin solid; DISPLAY: none; BORDER-LEFT: green thin solid; COLOR: blue; BORDER-BOTTOM: green thin solid; BACKGROUND-COLOR: yellow; TEXT-ALIGN: left; backcolor: gray; forecolor: blue" id="Panel15" runat="server" Font-Size="10pt" Width="350px"><P><SPAN style="TEXT-DECORATION: underline">Voer zoekopdracht uit.</SPAN></P>Met deze knop kunt u het overzicht filteren met de gewenste zoekopties.<BR /><BR />Er zijn meerdere zoekopties aanwezig: de zoekopdracht start automatisch bij het kiezen van een item in keuzelijsten, maar niet bij de tekst-filters (locatie en werk/reden). <BR /><BR />Kies ook deze knop om uw zoekopdracht opnieuw uit te voeren en/of het overzicht te verversen.<BR /><BR /><DIV style="TEXT-ALIGN: center"><asp:Button id="OkButton6" runat="server" Text="OK"></asp:Button></DIV></asp:Panel>186 <ajaxToolkit:ModalPopupExtender id="ModalPopupExtender" runat="server" TargetControlID="Button_help" OkControlID="OkButton" DropShadow="true" BackgroundCssClass="modalBackground" PopupControlID="Panel10"></ajaxToolkit:ModalPopupExtender>187 <ajaxToolkit:ModalPopupExtender id="ModalPopupExtender1" runat="server" TargetControlID="Button_help2" OkControlID="OkButton2" DropShadow="true" BackgroundCssClass="modalBackground" PopupControlID="Panel11"></ajaxToolkit:ModalPopupExtender>188 <ajaxToolkit:ModalPopupExtender id="ModalPopupExtender2" runat="server" TargetControlID="Button_help3" OkControlID="OkButton3" DropShadow="true" BackgroundCssClass="modalBackground" PopupControlID="Panel12"></ajaxToolkit:ModalPopupExtender>189 <ajaxToolkit:ModalPopupExtender id="ModalPopupExtender3" runat="server" TargetControlID="Button_help4" OkControlID="OkButton4" DropShadow="true" BackgroundCssClass="modalBackground" PopupControlID="Panel13"></ajaxToolkit:ModalPopupExtender>190 <ajaxToolkit:ModalPopupExtender id="ModalPopupExtender4" runat="server" TargetControlID="Button_help5" OkControlID="OkButton5" DropShadow="true" BackgroundCssClass="modalBackground" PopupControlID="Panel14"></ajaxToolkit:ModalPopupExtender>191 <ajaxToolkit:ModalPopupExtender id="ModalPopupExtender5" runat="server" TargetControlID="Button_help6" OkControlID="OkButton6" DropShadow="true" BackgroundCssClass="modalBackground" PopupControlID="Panel15"></ajaxToolkit:ModalPopupExtender>192 <asp:Label id="naamLabel" runat="server" Font-Size="6pt" Visible="False"></asp:Label>193 </asp:Panel>194 </ContentTemplate>195 </asp:UpdatePanel>196 </div>197</asp:Content>

Are you sure you need to use the Confirm button? If all you want is for a confirm box to popup with a message, you can try just using the OnClientClick of the button itself. It would look like

onclientclick="return confirm('Zeker weten?')"

so your button will be...

<asp:Button ID="Button3" runat="server" Style="background-attachment: fixed; background-color: transparent;
background-image: url(http://blabla.gif); background-repeat:no-repeat ; border-top-width: thin; border-left-width: thin; border-left-color: moccasin; border-bottom-width: thin; border-bottom-color: moccasin; border-top-color: moccasin; border-right-width: thin; border-right-color: moccasin;"
Width="32px" tooltip="Verwijder WV (definitief!!!!!)" CommandArgument='<%# eval("Kop1AlgVpNummer")%>' Height="30px" OnCommand="Button3_Command" BorderColor="#FFE0C0" BorderStyle="None"onclientclick="return confirm('Zeker weten?')" />

I do this all the time in gridview delete buttons. It works just like the confirm button.

-Alan


Good tip, I'll try this tomorrow. Maybe i didn't think of this because of my limited knowledge of javascript...

This works fine, the error is gone.

You could, however, ask yourself why the error is produced...

ConfirmButtonExtender error when in ItemTemplate

I cannot get the ConfirmButtonExtender to work in a DataList ItemTemplate. I get the infamous error can't find control id (of the target control of course).

I checked all the normal causes and I don't see what is wrong. They are both in the item template, hence the same naming container.

Here is a sample of what I have:

 <asp:DataList ID="relList" runat="server" BorderColor="#5377A9" BorderStyle="Double" Width="100%" ExtractTemplateRows="True" OnItemCreated="relList_ItemCreated"> <ItemTemplate> <asp:Table ID="tblSubFMEAs" runat="server"> <asp:TableRow ID="SubFMEARow" runat="server"> <asp:TableCell ID="SubFMEANameCell" runat="server" Width="80%"> <div style="padding:2px; vertical-align: middle; text-indent: 10px;"> <asp:linkbutton ID="nameLabel" runat="server" Text='<%# GetLinkLabelText(Container)%>' CommandName="Edit" /><br /> </div> </asp:TableCell> <asp:TableCell ID="RemSubFMEACell" runat="server" Width="20%" HorizontalAlign="Right"> <div style="padding:2px; vertical-align: middle; direction: rtl; text-indent: 10px;"> <asp:LinkButton ID="RemoveSubFMEA" runat="server" Text="Remove" CommandName="Remove" /> <cc1:ConfirmButtonExtender ID="confirmRem" runat="server" TargetControlID="RemoveSubFEMA" /> </div> </asp:TableCell> </asp:TableRow> </asp:Table> </ItemTemplate> <FooterTemplate> <asp:Table ID="tblSubFMEAsFooter" runat="server"> <asp:TableRow ID="SubFMEAFooterRow" runat="server"> <asp:TableCell ID="FooterCell" runat="server"> <img alt=" " src="images/dot.gif" height="1" /> </asp:TableCell> </asp:TableRow> </asp:Table> </FooterTemplate> </asp:DataList>

Hi CHolt,

there are two issues...

1. The ConfirmButtonExtender cant put in the <ItemTemplate> , you need to move it out of DataList. Otherwise you error on Design View

2. Once you move it out of DataList, you will getThe TargetControlID of 'confirmRem' is not valid. A control with ID 'RemoveSubFMEA' could not be found.

This is because the DataList created after ConfirmButtonExtender generated. So it can not find the TargetControlID. To walkwround it you may add ConfirmButtonExtender by code. Add it on page_Load

Hope this help


On thing that confuses me about your solution is that the button will be repeated. How is the extender going to work with multiple targets?

I would think that this is the most common use of the confirmbuttonextender to have a confirm dialog on the delete "button" of a row in a datalist or gridview. Is there any examples out there that have this working?

Thanks

confirmbuttonextender error

I have a page with a user control in it. The user control has a 'delete' button which has a confirmbuttonextender attached to it.

I keep getting this error on the page:

[HttpException (0x80004005): The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).]
System.Web.UI.ControlCollection.Add(Control child) +233
Microsoft.AtlasControlExtender.ScriptControlWrapper.Page_PreRenderComplete(Object sender, EventArgs e) +110
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +75
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6198

My user control has code blocks to allow dynamically setting of css classes which is required.

Regards,

Andy.

Hi Andy,

Could you provide more information on the problem? The best would be a complete code sample demonstrating the problem you're having. I'm not able to figure out what's going on with just the above.

Thanks,
Ted

Hi Ted,

I have put the required code on our web server at:

http://www.apex-networks.com/files/UserControls.zip

They are all ascx files, and are used in the following heirarchy:

UserMaint.ascx contains one SiteApplicationGridViewCollection.ascx which dynamically creates as many SiteApplicationGridView.ascx as required.

At the moment there is no ConfirmButtonExtender on the delete button in UserMaint.ascx but if you add one you get the error.

Hope this helps.

Andy.

Saturday, March 24, 2012

Configuration Error: Could not load type..........

Hi all,

I have an issue with an AJAX.NET enabled web site that i have written. This site was completed and worked fine on our dev server, but then the dev server was rebuilt, and then the fun began. I have reloaded the site onto the newly setup server, installed AJAX.NET (the current version, which i also developed the site under). But the site will not load and i keep getting the follow error

Parser Error Message:Could not load type 'System.Web.UI.Compatibility.CompareValidator' from assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

Source Error:

Line 51: </controls>Line 52: <tagMapping>Line 53: <add tagType="System.Web.UI.WebControls.CompareValidator" mappedTagType="System.Web.UI.Compatibility.CompareValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>Line 54: <add tagType="System.Web.UI.WebControls.CustomValidator" mappedTagType="System.Web.UI.Compatibility.CustomValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>Line 55: <add tagType="System.Web.UI.WebControls.RangeValidator" mappedTagType="System.Web.UI.Compatibility.RangeValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

I have tried uninstalling and reinstalling AJAX.NET, Moving the 2 AJAX dll's into the projects BIN directory, and also manually putting the 2 AJAX dlls into the GAC, and nothing has made a bit of difference, and so im posting on here......

any help would be greatly appreciated!
Rob Earlam

The validators were removed from the latest release. The default Web.config that comes with the RTM release no longer has the validators in the <tagMapping> element.

Here is a pointer to a blog post that describes how you can download the compatibility validators:http://weblogs.asp.net/scottgu/archive/2007/01/25/links-to-asp-net-ajax-1-0-resources-and-answers-to-some-common-questions.aspx

Hope this helps,

Scott


All is working fine now

Thanks Alot
Rob


I am working on a team project.

On Other system they haven't got this error.

On my system I have commented the following lines in the web.config {locally}

<!--

<tagMapping>

<add tagType="System.Web.UI.WebControls.CompareValidator" mappedTagType="System.Web.UI.Compatibility.CompareValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<add tagType="System.Web.UI.WebControls.CustomValidator" mappedTagType="System.Web.UI.Compatibility.CustomValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<add tagType="System.Web.UI.WebControls.RangeValidator" mappedTagType="System.Web.UI.Compatibility.RangeValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<add tagType="System.Web.UI.WebControls.RegularExpressionValidator" mappedTagType="System.Web.UI.Compatibility.RegularExpressionValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<add tagType="System.Web.UI.WebControls.RequiredFieldValidator" mappedTagType="System.Web.UI.Compatibility.RequiredFieldValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<add tagType="System.Web.UI.WebControls.ValidationSummary" mappedTagType="System.Web.UI.Compatibility.ValidationSummary, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

</tagMapping> kamran

-->

Then I can't get this error.{I don't know why this error appear on my system and doesn't on other systems}

If i comment these line in my project which all team developer work what could be the result ?

What Should I do ?


Found that on other system there were old ajax installation were installed

So I uninstalled the latest ajax extension and install the old one.

Then as on other system enable the lines above then my application start working on my system.

Now What Should I do .Can I install the new extension on all systems and comments these lines on other system as well.

{I am asking it as Could it lead to some problems or not}

Configuration Error! The element buildProviders cannot be defined below the application le

What's the problem. I will go crazy. Please help me. I'e searched fot lots of forums, there are other people too asking that question, facing that problem but nobody gave them proper solution. Please help .Thank you all .

Server Error in '/' Application.

Configuration Error

Description:Anerror occurred during the processing of a configuration file requiredto service this request. Please review the specific error details belowand modify your configuration file appropriately.

Parser Error Message:The element 'buildProviders' cannot be defined below the application level.

Source Error:

Line 60: -->
Line 61: <compilation debug="true">
Line 62: <buildProviders>
Line 63: <add extension=".asbx" type="Microsoft.Web.Services.BridgeBuildProvider"/>
Line 64: </buildProviders>

hello.

make sure your web app is configured to use asp.net 2.0 (in IIS).


Even i am facing the same problem. its is running with .net2.0 only. but still same error is coming. what else could be the reason for this?
Are you attempting to add this element in a web.config that is in a folder of your web application? If your app starts at a root, say /theweb, then the web.config with these entries needs to be at that root level.

Hello, I have the same problem but here is my question...

I already have a website running 1.1 extensions on a server host. I wanted to play with 2.0 so I created a "virtual directory" and gave it 2.0 extensions (using a control panel provided by the host). Everything worked fine inside that folder. Until I added AJAX website to that folder I started getting the error. Can i enable this folder as an app? Since this folder is a subfolder of another app in the root, will this hurt the root app?

I hope I am making sense as all this is new to me.

Thanks
Skimo

Configuration Error System.Web.Extensions

Configuration Error

Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message:Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (D:\Web_Sites\Arctic\aid-0173\web.config line 39)

Source Error:

Line 37: </httpHandlers>Line 38: <httpModules>Line 39: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>Line 40: Line 41: </httpModules>

Here is the error we are getting? The application works fine on our local computers, what is causing this? Please, don't tell us we have to have our IT department install anything on the servers either.

I am about to answer my own post in record time!

I have the solution for you!

Get the following dlls from

C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025

AJAXExtensionsToolbox.dll

System.Web.Extensions.dll

System.Web.Extensions.Design.dll

Once you have done that make sure you have the following files in your bin.

They came with the new install of AJAX.

Also we have to make sure that in our web.config under assemblies the PublicKeyToken portion is all Caps!

Good

PublicKeyToken=31BF3856AD364E35

Bad

PublicKeyToken=31bf3856ad364e35

We did this and are up and running now on our production server!

If you can run in full trust, then you can copy the binaries to the /bin directory.

Otherwise, yes, you will need to have the IT department install on the servers. (This is very much preferred... it allows for things like security patches to get to you via Windows Update.)


Thank you so much! Your suggestion solved my problem.

Configuration Error - Unrecoginzed Type

I built an Atlas site on my local machine then moved it out to the server and this is the error I receive. Any ideas?

Configuration Error

Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message:Unrecognized attribute 'type'.

Source Error:

Line 13: -->
Line 14: <configSections>
Line 15: <sectionGroup name="microsoft.web" type="Microsoft.Web.Configuration.MicrosoftWebSectionGroup">
Line 16: <section name="converters" type="Microsoft.Web.Configuration.ConvertersSection" requirePermission="false"/>
Line 17: <section name="webServices" type="Microsoft.Web.Configuration.WebServicesSection" requirePermission="false"/>

hello.

since you must surelly have the atlas dll in the bin folder, i must ask if you have configured IIS to run asp.net 2.0


Hi Luis:

Would you please see you can help with the following, I have EXACTLY the same problems as Ianem, and do not know what to do next.

Ianem posted:

“I installed atlas on my dev machine and everything works great. When I try
to get it working on the server, I get this error when building the page:
"Request for the permission of type 'System.Web.AspNetHostingPermission,
System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
failed"on the line where I have the ScriptManager tag. I set everything up
the same as I did on my dev machine, but nothing works. I added the
reference to the atlas dll in /bin. I registered the assembly on the page.
I installed atlas on the server. Does anyone know what I can do? Thanks.”

I had Microsoft.Web.Atlas.dll in the “bin” and evenScriptLibrary folder in the root of the project as MorningZ suggested, and yes it is configured IIS to run asp.net 2.0 but there is no different at all. Still get the same error messages.

Any suggestion and help is greatly appreciated!!!

Thanks.


I am receiving the same error. And, yes, IIS is running ASP.NET 2.0.

Does anyone have an answer for this issue? Thanks in advance!

...Jim...


hello.

this last error is different from the 1st one. in this case, we're speaking about a permissions problem, which normally occurs due to the fact that the bridgemodule is active. if this is the case, deactivate it or change the permission level of your app (through the <trust> element)


OK, Pardon my ignorance!

Note to self: Verify and THEN answer. I didn't have the site set to run ASP.NET 2.0. It's working now. Thanks!

...Jim...

Configuration Error - install or VISTA problem?

I have just installed the Ajax toolkit and have tried to add an AJAX Update panel to a Content page. I get the below error. Was I suppossed to add something to my WebConfig file? PublicKetTokens were edited for security (was that necessary?)

Configuration Error

Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message:Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=xcxxcxcxcxcxcxcx' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 20: <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=fdfddfdfdfddfd"/>Line 21: <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=wewewewewewewewe"/>Line 22: <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=xcxcxcxcxxxcxcx"/></assemblies>Line 23: </compilation>Line 24: <pages>


Source File:E:\xxx\xxxx_com\web\web.config Line:22

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=xcxcxcxcxcxcxcxc' could not be loaded.

WRN: Assembly binding logging is turned OFF.To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.Note: There is some performance penalty associated with assembly bind failure logging.To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Just discovered that the below statement was added to my configuration file, I think when I may have added a ScriptManager to one of my MasterPages. When I remove it the website starts working. With it in, the website does not pull up at all. (edited PublicKeyToken)

<

addassembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=vvbvbvbvbvvbvbbvb"/>

Configuration Error - buildProviders

Hello!

I've just installed VWD 2005 Express and Atlas. So, I created a new "Atlas" web site, created a label, but when I tested the page I've got a "Configuration Error"Crying ??

I've used all the default settings...

Here is the whole error:

Configuration Error

Description:Anerror occurred during the processing of a configuration file requiredto service this request. Please review the specific error details belowand modify your configuration file appropriately.

Parser Error Message:The element 'buildProviders' cannot be defined below the application level.

Source Error:

Line 63: -->
Line 64: <compilation debug="false">
Line 65: <buildProviders>
Line 66: <add extension=".asbx" type="Microsoft.Web.Services.BridgeBuildProvider" />
Line 67: </buildProviders>


Source File: c:\inetpub\wwwroot\teste\web.config Line: 65

I'm a newbie on ASP.NET, so I can't realize what's wrong. And I'm very surprised, cause I've used all the default configurations...

And yes, I've associated the ".asbx" extension in IIS on the instalation of "Atlas"...

I'm usingWin XP Pro

bye,
thx 4 all
An observation:

This error occur when I open the browser and type "http://localhost/teste"
But when I press Ctrl+F5 in VWD it worksTongue Tied

Configuration Error

To any one that can help, here is my situation--

I am completely new to AJAX. No one I know uses it or knows how to. I am using Visual Studio for ASP.net and C#.

The error that is given to me is:

Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message:Could not load file or assembly 'System.Web.Extensions, Version=XX, Culture=neutral, PublicKeyToken=XX' or one of its dependencies. The system cannot find the file specified. (C:\Documents and Settings\Project\web.config line XX)

I am completely unsure of even where to start. If someone could give me a starting point I would be much obliged. Thanks.

-Adam

Copy the web.config which comes with the Asp.net Ajax Installation. Visit http://ajax.asp.net/docs to get started.

Configuration Error

I have uploaded my asp.net/ajaxenabled site up to a server and I get this error:

Parser Error Message:Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

I have checked my c:\windows\assembly folder and the web extensions are there as matching versions. Does anyone have any idea what I need to do to fix this?

thanks,

wdg

Does the server have AJAX extension installed? Microsoft set up AJAX so the files need to reside in the Global Assembly Cache, rather than just being placed in your application's /bin/ folder, which means you/system admin/web host need to install the extensions with the same installer you used to get access to them on your machine.

CONFIGRUE ISA SERVER FOR AJAX

I have a web app that i publihed via ISA Server. The problem is that im loosing the ajax behavior an getting the " error 'sys' is not defined ".

This only happens if i access via internet, and works fine if accesed via intranet.

The question is, what needs to be configured on ISA Server?? I havent found any documentation.

Thanks.

Hi,

It seems the request for javascript or javascript response is blocked by the ISA server.
Please refer tothis for how to set it.
The url for AJAX script looks like?/localhost/ScriptResource.axd.

Thanks a lot Raymod.

Could you please be more specific on what i have to do ?. Im really having a hard time on getting this to run, specially because i

dont have direct access to the ISA server so cant do much testing.

Thanks.


My suggestion is that you contact your company's IT department who has access to it to have it solved.
It's hard for me to give specific actions you need to perform, and I'm not an expert on it too.

Config error browsing AJAX Offline Docs

Hi All

I have installed ASP.NET AJAX Extensions 1.0 and have setup the Web Project to view the docs offline.

When I try to browse the web app I get the following configuration error:

Parser Error Message:Unrecognized attribute 'type'.

Line 4: <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

I have set the app up in IIS 5.0 to use ASP.NET 2.0 and I have made sure that the System.Web.Extensions is in the windows assembly.

Any ideas please?

Cheers

John

Make sure you have Asp.net Ajax Installed.


I added the reference System.Web.Extensions to fix the error you are receiving!


Thanks Ron

I'll try that

John

Wednesday, March 21, 2012

Compression does not work with UpdatePanel

Hi!

I'm using HttpModule for comression. Everything is well but client-side AJAX does not decompress response (after aynchronous request): error: "The message received from the server control could not be parsed."

Question 1: can I make AJAX to decompress asynch. responses ?

Question 2: can I make AJAX to decompress asynch.requests ?

<httpModules>

<addname="ScriptModule"type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<addname="CompressionModule"type="WebSite.CompressionModule" />

</httpModules>

#region Using

using System;

using System.Web;

using System.IO;

using System.IO.Compression;

#endregion

namespace WebSite

{

///<summary>

/// Compresses the output using standard gzip/deflate.

///</summary>

publicclass CompressionModule : IHttpModule

{

publicvoid Init(HttpApplication context)

{

context.BeginRequest +=newEventHandler(context_BeginRequest);

}

privatevoid context_BeginRequest(object sender,EventArgs e)

{

HttpApplication app = (HttpApplication)sender;

if (app.Request.Url.ToString().ToLower().IndexOf("aspx") < 0)return;

string encodings = app.Request.Headers.Get("Accept-Encoding");

if (encodings ==null)return;Stream baseStream = app.Response.Filter;

encodings = encodings.ToLower();

if (encodings.Contains("gzip"))

{

app.Response.Filter =new GZipStream(baseStream,

CompressionMode.Compress);

app.Response.AppendHeader("Content-Encoding","gzip");

}

elseif (encodings.Contains("deflate"))

{

app.Response.Filter =new DeflateStream(baseStream,

CompressionMode.Compress);

app.Response.AppendHeader("Content-Encoding","deflate");

}

}

publicvoid Dispose()

{

}

}

Thank you for any help.

Andriy Zhornyk

Hi Andriy Zhornyk,

the best and practicable solution is to exclude the ajax related resources from your compression module. On the board ar some discussions about compression wirh ajax. AFAIK the most come to the same result, exclude the ajax resources from compression. In my compression module i do it win my configuration like this.

<HttpCompress compressionType="GZip"><ExcludedPathCollection><clear/><add path="WebResource.axd"/><add path="ScriptResource.axd"/><add path="*._AppService.axd"/></ExcludedPathCollection><ExcludedMimeTypeCollection><clear/><add mime="image/jpeg"/><add mime="image/gif"/><add mime="image/png"/><add mime="image/ico"/><add mime="application/binary"/></ExcludedMimeTypeCollection><ExcludedVariableCollection><clear/><add servervariable="http_x_microsoftajax"/></ExcludedVariableCollection></HttpCompress>

hope that help a little to find the right decision.


Thank you, but it's interesting for me to compress/decomress async postback data.

Is there such possibolity in MS Ajax?


That would be pretty difficult. The AJAX framework needs to be able to parse out the pipe delimited partial postback response. If it were compressed, you'd have to extend the PageRequestManager to handle that somehow.


I appreciate your answer but decompression on client is not impossible.

Have you seen "TeamPlain" solution from devBiz acquired by MS ? (web site for TFS:http://www.devbiz.com/downloads/TeamPlain-Web-2.0-RC.msi)

They managed to do it! Of course they didn't use MS Ajax but they compressed\decompressed async postbacks. The same thing I'm waiting from MS AJAX team. Because ZGipped page is very important for my customers' users with slow dialup internet...

I've been investigating MS AJAX Web.Extension source code and I think it's real to add compression\decompression features.

Is there anyone who managed this not simple task besides smart guys from devBiz?


If i understand you right is the way to go: compress(server) -> decompress(client). On callback: compress(client) -> decompress(server).

Well, i dont know enough over the architecture of the UpdatePanel to say it's possible or not. But from my point ist the only way to go a direct implementation in the UpdatPanel control or, if possible, create an adapter.

Anyway, maybe one from the ajax extension dev team is able to enlighten us about the possibility of this way.


I've faced similar situation , i am using update panel and http compression. My workarund is to not compress/decompress async postback. I just adding some additional checking like this :
if(Context.Request.Params["HTTP_X_MICROSOFTAJAX"] == null)
{
DoCompress();
}

regards ,
yose r

Composite Control and CalendarExtender error

I'm trying to create a server control that wraps up a TextBox, calendar Image, and a AJAX 1.0 CalendarExtender. Here is a section of the code:

protected override void CreateChildControls() {txtDate.Width = 75;Controls.Add(txtDate);imgCal.ImageUrl= _iconURL;imgCal.ImageAlign= ImageAlign.AbsMiddle;Controls.Add(imgCal);calEx.PopupButtonID= imgCal.UniqueID;calEx.TargetControlID= txtDate.UniqueID;Controls.Add(calEx);}

Here is the runtime error I am getting:

"'_behaviors' is null or not an object"

Any ideas?

Looks like there is a little information about adding the behaviors here:

http://forums.asp.net/thread/1293293.aspx#13

But this leeds me to believe I need a client script on every page I plan to have this control. Which isn't really acceptable.

Is there a way to wrap it up in one compiled control?


Did you have any luck doing this? I'm in the process of doing the exact same thing.

Also, I'm having problems finding the Calendar Extender control to dynamically add it. I'm sure I'm missing something. I've tried adding references to the AjaxControlToolkit and the AJAXExtensionsToolbox, but no luck in finding it. I do see the AjaxControlToolkit namespace and several controls under it, just no Calendar.

Thanks In Advance!


Firgured out the problem... somehow the older version of the AjaxControlTool.dll got in there.

I got it working great!

Compilation error UpdatePanel in Repeater

Hi,

I have a repeater with ItemTemplate and AlternativeTemplate. Within the repeater there is a Table. Inside of one of the <td> I have UpdatePanel, so in the ItemTemplate there is an UpdatePanel1 and there is another one in the AlternativeTemplate with the same ID name, I thought this won't have any conflict since we can put two controls with same ID as long as they are in the different Template. But I got this error :

Description:Anerror occurred during the compilation of a resource required to servicethis request. Please review the following specific error details andmodify your source code appropriately.

Compiler Error Message:CS0102: The type 'NamespaceName' already contains a definition for 'A_ControlName'

any help would be great.

thanks

I had a very similar problem - had a datalist where each itemtemplate contained an updatepanel.Inside the itemtemplate was a control called "selDriver", and on the main page there was also a control called "selDriver" - this was never a problem until the updatepanel was added in, and then it broke the compilation.I had to change the control's name in the main page to something different (which in retrospect I should have done anyway!) so I suspect you are experiencing something similar.Good luck!

Try to do with different name for both controls

compilation error comes, if "ASPAJAXExtSetup.msi" is not installed

hello,

whts the cause when AJAX-enabled application complied such a machine, where "ASPAJAXExtSetup.msi" is not installed....error is "enable to load assembly....cause very much clear due to not installation of "ASPAJAXExtSetup.msi"...

but, it is necessary to install such ...msi or we can add some "dlls" in application as we are doing previously in case of "Atlas".

wht we have to do....suggest me.....

Ajmal

you need

v1.061025 System.Web.Extensions.dll

v1.061025 System.Web.Extensions.Design.dll

i think you also need both of them in GAC


thnx dude....

but, it not need to install above dll's in GAC

Ajmal


hi

For GAC, be honestly i am not sure whether you need msi to do it or not

You can try drage system.web.extensions. dll and system.web.extensions.design.dll to C:\WINDOWS\assembly

then try run your ajax web page

Compilation Error : Error importing module Tools.netmodule

Hello,

Since I installed the AJAX Control Toolkit, by running the VSI, I get the following error with every application I try to run. I've tried everything in my power to uninstall it but I can't find where it installed. Perhaps it did not complete properly. I've reinstalled the .NET framework 2.0 but this did not correct the problem.

To be able to run at least once, I've had to copy the "Tools.netmodule" file that came in the binaries folder of the AJAX Control Toolkit and paste this file in the folder described below ('c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\6f7173d6\de0dfef4\assembly\dl3\371db7e0\003e4f98_695cc701\) then it seems to work for one run. I have to do this everytime. How can I fix this error?

Please help! Error below:

Compilation Error

Description:An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message:CS0009: Metadata file 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\6f7173d6\de0dfef4\assembly\dl3\371db7e0\003e4f98_695cc701\Tools.DLL' could not be opened -- 'Error importing module 'Tools.netmodule' of assembly 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\6f7173d6\de0dfef4\assembly\dl3\371db7e0\003e4f98_695cc701\Tools.DLL' -- The system cannot find the file specified. '

Source Error:

[No relevant source lines]

Try to remove the "Temporary ASP.NET Files" folder