English 中文(简体)
SoapExceptions error: The property Name is read-only and cannot be modified or deleted. (SSRS)
原标题:

I have created a Windows Application based UI using C# to enable users to manage the items of the Reporting Server. One of the functionalities I have implemented was to right-click on the name of the folder (in the UI TreeView hierarchy) and choose the Rename option from the menu, which will then call the ReportingServices2005.SetProperties function. I added the Property of the "Name" and "Value" to the array and passed that as a parameter in this function. And I get a lengthy error message, but it s really only saying:

System.Web.Services.Protocols.SoapExceptions: The property Name is read-only and cannot be modified or deleted --> Microsoft.ReportingServices.Diagnostics.Utilities.ReadOnlyPropertyException: ...

I ve set the MessageBox.Show() within the code to display TreeView.SelectedNodes.Nodes.IsReadOnly and it shows False . So I don t think anything s set up to be read-only. I could also go to the Reporting Manager itself and rename there with no problem. Is the Name one of the properties that I am not going to be able to edit from the User Interface application? Other properties such as Hidden or Description were editable. I appreciate your replies in advance.

问题回答

I think the reason you cannot rename this property during runtime, is because the value is actually stored in your RDLC file. In order to actually modify this value, you would need to modify the RDLC file in memory - and reload it in your reportViewer control.





相关问题
Bring window to foreground after Mutex fails

I was wondering if someone can tell me what would be the best way to bring my application to the foreground if a mutex was not able to be created for a new instance. E.g.: Application X is running ...

How to start WinForm app minimized to tray?

I ve successfully created an app that minimizes to the tray using a NotifyIcon. When the form is manually closed it is successfully hidden from the desktop, taskbar, and alt-tab. The problem occurs ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

Handle DataTable.DataRow cell change event

I have a DataTable that has several DataColumns and DataRow. Now i would like to handle an event when cell of this DataRow is changed. How to do this in c#?

Apparent Memory Leak in DataGridView

How do you force a DataGridView to release its reference to a bound DataSet? We have a rather large dataset being displayed in a DataGridView and noticed that resources were not being freed after the ...

ALT Key Shortcuts Hidden

I am using VS2008 and creating forms. By default, the underscore of the character in a textbox when using an ampersand is not shown when I run the application. ex. "&Goto Here" is not ...

WPF-XAML window in Winforms Application

I have a Winforms application coded in VS C# 2008 and want to insert a WPF window into the window pane of Winforms application. Could you explain me how this is done.

热门标签