Advertisement

08.21.2008 at 08:06AM PDT, ID: 23667069
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.4

"Operation must use an updateable query". Error,With all the appropriate permissions

Asked by GravitaZ24 in Programming for ASP.NET, Microsoft Access Database

Tags: ,

I have been on the phone with our Server people and made sure that all the ASPNET  permissions were set on the folder, and the IUSR permissions. I am at my wits end with this error.

Server Error in '/cnxland/gis' Application.
Operation must use an updateable query.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.OleDb.OleDbException: Operation must use an updateable query.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[OleDbException (0x80004005): Operation must use an updateable query.]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +267
   System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +192
   System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +48
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +106
   System.Data.OleDb.OleDbCommand.ExecuteNonQuery() +108
   System.Web.UI.WebControls.SqlDataSourceView.ExecuteDbCommand(DbCommand command, DataSourceOperation operation) +404
   System.Web.UI.WebControls.SqlDataSourceView.ExecuteInsert(IDictionary values) +447
   System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) +72
   System.Web.UI.WebControls.FormView.HandleInsert(String commandArg, Boolean causesValidation) +388
   System.Web.UI.WebControls.FormView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +602
   System.Web.UI.WebControls.FormView.OnBubbleEvent(Object source, EventArgs e) +95
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
   System.Web.UI.WebControls.FormViewRow.OnBubbleEvent(Object source, EventArgs e) +109
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
   System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433


If there are any other options I can attempt, could someone please let me know.

I have attached the code and the dbase I am usingStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Page Language="C#" %>
 
<script runat="server">
protected void FormView_ItemInserting(object sender, System.Web.UI.WebControls.FormViewInsertEventArgs e) {
        e.Values["County_Main"] = ((DropDownList)(InputForm.FindControl("ddlCounty"))).SelectedValue;
    }
</script>
 
 
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
 
<head runat="server">
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type" />
<title>Submission Form</title>
<style type="text/css">
.style1 {
	font-size: xx-large;
	text-align: center;
}
.style2 {
	font-size: medium;
	text-align: center;
}
</style>
</head>
 
<body bgcolor="gray">
 
<p class="style1">LAND ANALYSIS DATABSE SUBMISSION FORM</p>
<p class="style2"><a href="DatabaseResults.aspx">RESULTS</a></p>
<form id="form1" runat="server" style="border-style: groove; border-width: medium; z-index: auto; width: 1205px; height: 869px; position: relative; top: 15px; left: -3px">
	<div>
	<asp:FormView id="InputForm" runat="server" AllowPaging="True" CellPadding="4" DataKeyNames="ID" DataSourceID="AccessDataSource1" DefaultMode="Insert" ForeColor="#333333" Width="361px" BorderStyle="Groove" HorizontalAlign="Center">
		<FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
		<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
		<EditItemTemplate>
			ID:
			<asp:label id="IDLabel1" runat="server" Text='<%# Eval("ID") %>' />
			<br />
			Rank:
			<asp:textbox id="RankTextBox" runat="server" Text='<%# Bind("Rank") %>' />
			<br />
			Mapper:
			<asp:textbox id="MapperTextBox" runat="server" Text='<%# Bind("Mapper") %>' />
			<br />
			State:
			<asp:textbox id="StateTextBox" runat="server" Text='<%# Bind("State") %>' />
			<br />
			County:
			<asp:textbox id="CountyTextBox" runat="server" Text='<%# Bind("County") %>' />
			<br />
			GIS_Ref:
			<asp:textbox id="GIS_RefTextBox" runat="server" Text='<%# Bind("GIS_Ref") %>' />
			<br />
			Agmnt_No:
			<asp:textbox id="Agmnt_NoTextBox" runat="server" Text='<%# Bind("Agmnt_No") %>' />
			<br />
			Tract_Nos:
			<asp:textbox id="Tract_NosTextBox" runat="server" Text='<%# Bind("Tract_Nos") %>' />
			<br />
			Control_Stmnt:
			<asp:textbox id="Control_StmntTextBox" runat="server" Text='<%# Bind("Control_Stmnt") %>' />
			<br />
			Problem:
			<asp:textbox id="ProblemTextBox" runat="server" Text='<%# Bind("Problem") %>' />
			<br />
			Resolution:
			<asp:textbox id="ResolutionTextBox" runat="server" Text='<%# Bind("Resolution") %>' />
			<br />
			Date_Ini:
			<asp:textbox id="Date_IniTextBox" runat="server" Text='<%# Bind("Date_Ini") %>' />
			<br />
			Date_Resolved:
			<asp:textbox id="Date_ResolvedTextBox" runat="server" Text='<%# Bind("Date_Resolved") %>' />
			<br />
			Date_update:
			<asp:textbox id="Date_updateTextBox" runat="server" Text='<%# Bind("Date_update") %>' />
			<br />
			<asp:linkbutton id="UpdateButton" runat="server" CausesValidation="True" CommandName="Update" Text="Update" />
			&nbsp;<asp:linkbutton id="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" />
		</EditItemTemplate>
		<InsertItemTemplate>
			<strong>Rank (Importance):</strong>
			<asp:dropdownlist id="ddlRank" runat="server" DataSourceID="AccessDataSource2" DataTextField="Rank" DataValueField="Rank" SelectedValue='<%# Bind("Rank_Main") %>'>
			</asp:dropdownlist>
			<asp:accessdatasource ID="AccessDataSource2" runat="server" DataFile="../fpdb/LADbase.mdb" SelectCommand="SELECT [Rank] FROM [Rank]">
			</asp:accessdatasource>
			<br />
			<br />
			<strong>GIS Mapper (Initials):</strong>
			<asp:dropdownlist id="ddlMapper" runat="server" DataSourceID="AccessDataSource3" DataTextField="Mapper" DataValueField="Mapper" SelectedValue='<%# Bind("Mapper_Main") %>'>
			</asp:dropdownlist>
			<asp:accessdatasource ID="AccessDataSource3" runat="server" DataFile="../fpdb/LADbase.mdb" SelectCommand="SELECT [Mapper] FROM [Mapper]">
			</asp:accessdatasource>
			<br />
			<br />
			<strong>State:</strong>
                        <asp:dropdownlist id="ddlState" runat="server" 
                        AutoPostBack="True" 
                        DataSourceID="AccessDataSource4" 
                        DataTextField="State" 
                        DataValueField="State" 
                        SelectedValue='<%# Bind("State_Main") %>'>
                        </asp:dropdownlist>
 <asp:accessdatasource ID="AccessDataSource4" runat="server" 
                            DataFile="../fpdb/LADbase.mdb" 
                            SelectCommand="SELECT [State] FROM [State]">
                        </asp:accessdatasource>
                        <br />
                        <br />
                        <strong>County:</strong>
                        <asp:dropdownlist id="ddlCounty" runat="server" 
                        AutoPostBack="True" 
                        DataSourceID="AccessDataSource5" 
                        DataTextField="C_Name" 
                        DataValueField="C_Name">
                        </asp:dropdownlist>                        
 <asp:accessdatasource ID="AccessDataSource5" runat="server" 
                            DataFile="../fpdb/LADbase.mdb" 
                            SelectCommand="SELECT [C_Name] FROM [COUNTIES] WHERE [State] = @State ">
                  <SelectParameters>
                   <asp:ControlParameter ControlID="ddlState" Name="State" 
                                    PropertyName="SelectedValue" Type="string"
                                    />                                   
					</SelectParameters>
                  </asp:accessdatasource>             
			<br />
			<br />
			<strong>GIS Reference:</strong>
			<asp:textbox id="GIS_RefTextBox" runat="server" Text='<%# Bind("GIS_Ref") %>' />
			<br />
			<br />
			<strong>Agreement Number:</strong>
			<asp:textbox id="Agmnt_NoTextBox" runat="server" Text='<%# Bind("Agmnt_No") %>' />
			<br />
			<br />
			<strong>Tract Numbers:</strong>
			<asp:textbox id="Tract_NosTextBox" runat="server" Text='<%# Bind("Tract_Nos") %>' />
			<br />
			<br />
			<strong>Control Statement:</strong>
			<asp:textbox id="Control_StmntTextBox" runat="server" Text='<%# Bind("Control_Stmnt") %>' />
			<br />
			<br />
			<strong>Problem:<br />
			</strong>&nbsp;<asp:textbox id="ProblemTextBox" runat="server" Text='<%# Bind("Problem") %>' Height="116px" TextMode="MultiLine" Width="400px" />
			<br />
			<br />
			<strong>Resolution:<br />
			</strong>&nbsp;<asp:textbox id="ResolutionTextBox" runat="server" Text='<%# Bind("Resolution") %>' Height="116px" TextMode="MultiLine" Width="400px" />
			<br />
			<br />
			<strong>Date Problem Initiated:</strong>
			<asp:textbox id="Date_IniTextBox" runat="server" Text='<%# Bind("Date_Ini") %>' />
			<br />
			<br />
			<strong>Date Problem Resolved:</strong>
			<asp:textbox id="Date_ResolvedTextBox" runat="server" Text='<%# Bind("Date_Resolved") %>' />
			<br />
			<br />
			<strong>Date Map Updated:</strong>
			<asp:textbox id="Date_updateTextBox" runat="server" Text='<%# Bind("Date_update") %>' />
			<br />
			<br />
			<asp:button id="InsertButton" runat="server" CommandName="Insert" Text="Insert" />
			&nbsp;<asp:button id="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" />
		   
		   
 
		</InsertItemTemplate>
		<ItemTemplate>
			ID:
			<asp:label id="IDLabel" runat="server" Text='<%# Eval("ID") %>' />
			<br />
			Rank:
			<asp:label id="RankLabel" runat="server" Text='<%# Bind("Rank") %>' />
			<br />
			Mapper:
			<asp:label id="MapperLabel" runat="server" Text='<%# Bind("Mapper") %>' />
			<br />
			State:
			<asp:label id="StateLabel" runat="server" Text='<%# Bind("State") %>' />
			<br />
			County:
			<asp:label id="CountyLabel" runat="server" Text='<%# Bind("County") %>' />
			<br />
			GIS_Ref:
			<asp:label id="GIS_RefLabel" runat="server" Text='<%# Bind("GIS_Ref") %>' />
			<br />
			Agmnt_No:
			<asp:label id="Agmnt_NoLabel" runat="server" Text='<%# Bind("Agmnt_No") %>' />
			<br />
			Tract_Nos:
			<asp:label id="Tract_NosLabel" runat="server" Text='<%# Bind("Tract_Nos") %>' />
			<br />
			Control_Stmnt:
			<asp:label id="Control_StmntLabel" runat="server" Text='<%# Bind("Control_Stmnt") %>' />
			<br />
			Problem:
			<asp:label id="ProblemLabel" runat="server" Text='<%# Bind("Problem") %>' />
			<br />
			Resolution:
			<asp:label id="ResolutionLabel" runat="server" Text='<%# Bind("Resolution") %>' />
			<br />
			Date_Ini:
			<asp:label id="Date_IniLabel" runat="server" Text='<%# Bind("Date_Ini") %>' />
			<br />
			Date_Resolved:
			<asp:label id="Date_ResolvedLabel" runat="server" Text='<%# Bind("Date_Resolved") %>' />
			<br />
			Date_update:
			<asp:label id="Date_updateLabel" runat="server" Text='<%# Bind("Date_update") %>' />
			<br />
			<asp:linkbutton id="EditButton" runat="server" CausesValidation="False" CommandName="Edit" Text="Edit" />
			&nbsp;<asp:linkbutton id="DeleteButton" runat="server" CausesValidation="False" CommandName="Delete" Text="Delete" />
			&nbsp;<asp:linkbutton id="NewButton" runat="server" CausesValidation="False" CommandName="New" Text="New" />
		</ItemTemplate>
		<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
		<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
		<EditRowStyle BackColor="#999999" />
	</asp:FormView>
	</div>
	<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="../fpdb/LADbase.mdb" DeleteCommand="DELETE FROM [MainLATable] WHERE [ID] = ?" InsertCommand="INSERT INTO [MainLATable] ([Rank], [Mapper], [State], [County], [GIS_Ref], [Agmnt_No], [Tract_Nos], [Control_Stmnt], [Problem], [Resolution], [Date_Ini], [Date_Resolved], [Date_update]) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)" OldValuesParameterFormatString="original_{0}" SelectCommand="SELECT * FROM [MainLATable]" UpdateCommand="UPDATE [MainLATable] SET [Rank] = ?, [Mapper] = ?, [State] = ?, [County] = ?, [GIS_Ref] = ?, [Agmnt_No] = ?, [Tract_Nos] = ?, [Control_Stmnt] = ?, [Problem] = ?, [Resolution] = ?, [Date_Ini] = ?, [Date_Resolved] = ?, [Date_update] = ? WHERE [ID] = ?">
		<DeleteParameters>
			<asp:parameter Name="original_ID" Type="Int32" />
		</DeleteParameters>
		<UpdateParameters>
			<asp:parameter Name="Rank" Type="String" />
			<asp:parameter Name="Mapper" Type="String" />
			<asp:parameter Name="State" Type="String" />
			<asp:parameter Name="County" Type="String" />
			<asp:parameter Name="GIS_Ref" Type="String" />
			<asp:parameter Name="Agmnt_No" Type="String" />
			<asp:parameter Name="Tract_Nos" Type="String" />
			<asp:parameter Name="Control_Stmnt" Type="String" />
			<asp:parameter Name="Problem" Type="String" />
			<asp:parameter Name="Resolution" Type="String" />
			<asp:parameter Name="Date_Ini" Type="String" />
			<asp:parameter Name="Date_Resolved" Type="String" />
			<asp:parameter Name="Date_update" Type="String" />
			<asp:parameter Name="original_ID" Type="Int32" />
		</UpdateParameters>
		<InsertParameters>
			<asp:parameter Name="Rank" Type="String" />
			<asp:parameter Name="Mapper" Type="String" />
			<asp:parameter Name="State" Type="String" />
			<asp:parameter Name="County" Type="String" />
			<asp:parameter Name="GIS_Ref" Type="String" />
			<asp:parameter Name="Agmnt_No" Type="String" />
			<asp:parameter Name="Tract_Nos" Type="String" />
			<asp:parameter Name="Control_Stmnt" Type="String" />
			<asp:parameter Name="Problem" Type="String" />
			<asp:parameter Name="Resolution" Type="String" />
			<asp:parameter Name="Date_Ini" Type="String" />
			<asp:parameter Name="Date_Resolved" Type="String" />
			<asp:parameter Name="Date_update" Type="String" />
		</InsertParameters>
	</asp:AccessDataSource>
</form>
 
</body>
 
</html>
Attachments:
 
databse
 
[+][-]08.21.2008 at 09:12AM PDT, ID: 22281095

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.21.2008 at 09:18AM PDT, ID: 22281154

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.21.2008 at 10:25AM PDT, ID: 22281971

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.21.2008 at 10:29AM PDT, ID: 22282027

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.21.2008 at 10:33AM PDT, ID: 22282078

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.21.2008 at 10:35AM PDT, ID: 22282088

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.21.2008 at 10:36AM PDT, ID: 22282104

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.21.2008 at 11:14AM PDT, ID: 22282555

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.21.2008 at 11:24AM PDT, ID: 22282675

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.21.2008 at 11:32AM PDT, ID: 22282770

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.21.2008 at 12:12PM PDT, ID: 22283284

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Programming for ASP.NET, Microsoft Access Database
Tags: Access, ASP.NET
Sign Up Now!
Solution Provided By: Rrooter
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628