.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

MaxStringContentLength property on the XmlDictionaryReaderQuotas object

Posted By:      Posted Date: October 23, 2010    Points: 0   Category :ASP.Net

Hello All,

I am getting below error, any idea why this error come?

The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/IMainService:BusinessObj. The InnerException message was 'There was an error deserializing the object of type System.String. The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 226, position 30.'.  Please see InnerException for more details.

View Complete Post

More Related Resource Links

Jscript error: Object does not support property or method


 Hi, i have little knowledge on javascript but i need to use this code get from somewhere for a jquery to work.

I face this "Jscript runtime error: Object does not support property or method" whenever im trying to run this page.

In my experience, im get this error msg 9 out of 10 times i use javascript in my system.

Im using Microsoft Visual web developer 2008, i wonder if this is related to my problem, i not sure there is anything i need to add as reference or update anything.

But anyway, in short, i just couldn't use javascript code when using this development tool because of this sort of error.

Anyway, it happen that last time i tried use the same type of jquery code in another project and it seems to work well without an error.

But now when im try to use it again in this recent project i created, it come out with this error and i have no idea how to solve it even look through google and this forum.

It doesn't really seems like its the code problem itself although im not sure, because any javascript code just couldn't work.

So below is my code that i need to use.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script>
<script type="text/javascript" src=&quo

Object or Property is not supported in IE8 - javascript error



I am using following code line in my web app through external javascript file.






both these methods are working fine in IE6 but failing in IE8 with a error: "Object or Property is not supported".


any solution would be appreciated!



Getting "wrong" data out of a microsoft.sqlserver.management.smo.database object property (using pow

My problem:I do something like this:$dbsvr = new-object microsoft.sqlserver.management.smo.server "servername"$dbsvr.databases | ft name,size -autosizeWhen i run this from two different PC's i get database sizes that are all the same (5.25 mb), the size of the first database listed - which is master.I started to try out a few things, and found out that when i run the same command from one of our servers it returns the correct sizes...Anyone have any idea if this a SMO issue, or maybe some package software version issue...- or what?

Error "Object reference not set" when I try to set a Navigation Property

I'm using Entity Framework. The following code throws a runtime error "System.NullReferenceException: Object reference not set to an instance of an object." The line before the error, it looks like newControl is in fact instantiated.My model has a Control entity and a ControlType entity. Control includes the Navigation Property "ControlType." I'm trying to set ControlType.Type = 2.SurveyFormControlsModel.Control newControl = new SurveyFormControlsModel.Control(); newControl = CreateControl(childTokenName, ControlTypeEnum.TextBox); newControl.ControlType.Type = 2; // <<--ERROR HERE context.Controls.AddObject(newControl);                                SurveyFormControlsModel.Control newControl = new SurveyFormControlsModel.Control();                                 if (listItems.Count == 0)                                 {                                     newControl = CreateControl(childTokenName, ControlTypeEnum.TextBox);                    &

Object does not support this property or method....

This is a pretty straightforward piece of code. Why am I getting this error on line 5 char1?<script type="text/javascript"> function resubmit() { var recip = document.getElementById("web_recip"); var ind=recip.indexof("?resubmit"); if (ind>0){ recip=recip.replace("?resubmit",""); var resub=document.getElementById("resub"); resub.value="Y"; } } </script>  

DataTemplate binding based on object property


I have a collection of objects that I'm giving visual representation in my UI through DataTemplates. Each object has a string property "field". 

Is it possible for my UI to exclude specific objects in my collection from being shown based on the "field" property if it contains a string "foo"? 



An object reference is required for the nonstatic field, method, or property 'object.GetType()'


I'm getting this error, what i'm missing?

error: An object reference is required for the nonstatic field, method, or property 'object.GetType()'


static public void RegisterScriptMethod(System.Web.UI.Page page, string methodName, string methodBody)


StringBuilder sb = new StringBuilder();


"<script language='javascript'>");


"function " + methodName + " {" + methodBody + "}");



//page.RegisterClientScriptBlock(methodName, sb.ToString());

jquery.tmpl error - object does not support this property


trying a sample from the jquery template plugin. Getting an error:

Microsoft JScript runtime error: Object doesn't support this property or method

    $.tmpl(tmpl, dataObject)

what do I need to run the templating plugin?

here are my script includes ( I added the jquery.tmpl.js file as an existing item to the scripts folder of my MVC project )

    <script type="text/javascript" 

<script src="~/Scripts/jquery.tmpl.js" type="text/javascript"></script>


DataBinding not updating underlying business object when changing control property from code


I have a custom data form control that in code generates databindings between the selected custom business object (LLBL) and the various controls on the screen. Everything works in that I set the DataContext to the selected business object and the data appears in the GUI. If the user changes anything on screen, the data is getting updated into the business object.

However, now I have some custom logic that when the user presses a button I need to update some fields. Currently I'm setting this data directly into the controls, setting the new value into the property that is bound. However, the data is not getting pushed back into the business object.  I had this same issue building WinForm apps in that databinding only fired if the user was in the control and left it.

Does the same thing apply to WPF? How can I get ANY change on say a TextBox's Text property whether via user interaction or from C# code to push that value into the bound business object property?


ECMA Script ClientContext.ExecuteQueryAsync() give error "Object doesn't support this property or m


I am using SP2010 Client Object Model to perform some operation on sharepoint list. I added SP.js scriptlink to my sitedefination master page and write down some clientside script using client object model. But on ExecuteQueryAsync() i get error "Object doesn't support this property or method".

My Client code is as follow:


 function retrieveWebSite()

    if(SP.ClientContext!=null && SP.ClientContext!=undefined)
     alert('Current Client Context is searching');
     context = new SP.ClientContext.get_current();
     if(context !=null && context!=undefined ){
      alert('Current Client Context is found');
     web  = context.get_web();

        context.executeQueryAsync(Function.createDelegate(this,this.OnSuccess),Function.createdDelegate(this,this.OnFail)); //Here error occurred.

     function OnSuccess(sender,args){
     // alert('Web Title:' + web.get_title() + '\n ID:' + web.get_id() + '\n Created Date:' + web.get_created());

     function OnFail(sender,args){
     //alert('Fail to get list list. Error :'+ args.get_message());

Complete error message is :

Webpage error details

Microsoft JScript runtime error: Object doesn't support this property or method



When I am updating dropdown of parent window from popup it shows error JScript runtime error. But I can able to clear the dropdown. When I am adding only the problem is occuring. I have pasted the code below

var ddlVendor = window.opener.aspnetForm.document.getElementById('ctl00_DefaultContent_ddlVendor');

//Clears the state combo box contents.

for (var count = ddlVendor.options.length-1; count >-1; count--)


ddlVendor.options[count] =


var stateNodes = listNode.getElementsByTagName('Table1/UserName');

var stateIds = listNode.getElementsByTagName('Table1/Password');

Inserting Property values of class into ParamArray parameters as object()


Hi All,

Using the properties as defined in a class, how about can I put them into the ParamArray parameters argument of my function.

The code as follows:

Public Class MyObject

   Public Property Prop1 as string

   Public Property Prop2 as integer

   Public Property Prop3 as Boolean

   Public Sub  AddNewMyObject

        MsSQL_ExecuteNonQuery("StoredProc_AddNewMyObject", ________________?)

   End Sub

End Class

Protected Function MsSQL_ExecuteNonQuery(ByVal storedProc as string, ByVal ParamArray parameters as object())

'Some Code here.

End Function

Please kindly help and advice.

Thank you in advance.

Warmest Regards,


Access property of object as session variable as declarative datasource parameter value


I am storing a custom "Organisation" object as a session variable. One of the properties of  the Organisation object is "OrganisationID" (integer).

I have a DataSource that requires a parameter value to run, and I want to use a SessionParameter to populate this. In a previous version, I stored the OrganisationID directly as a session variable. In that case, I could easily access it like this:

<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    SelectCommand="spGetUserJobList" SelectCommandType="StoredProcedure">
        <asp:SessionParameter Name="OrganisationID" SessionField="OrganisationID" Type="Int32" />

However, how do I now access the OrganisationID property of an "Organisation" type session variable (called "Organisation")?

 I have tried this, which does not seem to work:

<asp:SessionParameter Name="OrganisationID" SessionField="Organisation.OrganisationID" Type="Int32" />


compare sortedlist object property changes and update value


 i have a sortedlist who values contain a Product objects. i wish to set the Quantity  property of a selected Product object                  ( from gridview) when the Quantity field changes?

how do i compare whether the product row Quantity field in the gridview is the same as the Product Quantity property  in the sortedlist and update accordingly?

note. i have converted to a list(of product) to bind to gridview. then update the sortedlist values

Accordion: object doesn't support this property or method


I have simple accordion:

$("#accordion").accordion({ autoHeight: false, active: false });


This causes the Microsoft JScript runtime error: Object doesn't support his property or method.


All other JQuery code works fine. Anyone has any idea why this is causing this error??
thanks in advance.

How to set a Sortedlist object property value


i have a sortedlist variable called :


which contains two Cartitem object and within these two objects is a further object called Product.

i wish to amend the Product object Property named Quantity


["860"] = {Cartitem}

["861"] = {Cartitem}

When i attempt to update the Cartitem object using the key value it overwrites Cartitem to Product.

Present Update

Cart(key.ToString) = product

results in 

["860"] = {Product}


How may i update a Product property without replacing Cartitem object to Product?

How Can I Set the ImageSource Property of an Image Control to a Image Object?

Basically, I have an image control and want it to display an Image object. Every example always uses a URI path, but I want to use an existing image.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend