473,385 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

System.NotSupportedException: Collection is read-only

Hello,
I have the following problem. I have a page which works fine. But
sometimes I see the following error in error log:
-- Message: System.Web.HttpUnhandledException: Exception of type
System.Web.HttpUnhandledException was thrown. --->
System.NotSupportedException: Collection is read-only.
at System.Collections.Specialized.NameValueCollection .Add(String
name, String value)
at System.Web.HttpValueCollection.FillFromEncodedByte s(Byte[] bytes,
Encoding encoding)
at System.Web.HttpRequest.FillInQueryStringCollection ()
at System.Web.HttpRequest.get_QueryString()
at System.Web.UI.Page.GetCollectionBasedOnMethod()
at System.Web.UI.Page.DeterminePostBackMode()
at System.Web.UI.Page.ProcessRequestMain()
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain()
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at
System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication+IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step,
Boolean& completedSynchronously)
I see that a code tries to write to read-only collection. But the
question is why ? It's not my code ... it happens only sometimes... .
Any ideas ?

Thanks.

Regards,
Fero

Dec 21 '05 #1
0 2243

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Norm Dotti | last post by:
I'm running an app through auto-deployment ( ex. http://localhost/SampleSolution/SampleProjMain/bin/Main.exe ). I'd like to display a list of loaded assemblies, so I'm stepping through an array of...
1
by: stone1977 | last post by:
In my code I call following procedure. I use the Compact Framework. string path= System.IO.Directory.GetCurrentDirectory(); I get an expcepiton: 'System.NotSupportedException' occurred in...
4
by: Joakim Englund | last post by:
Hi, I've been working on a C# Compact Framwork project for quiet some time now and suddenly run into a problem that when I add a Control to a Form, i.e. a TextBox or a Button, I get a...
0
by: Meetali Goel | last post by:
Hi all, I can't determine why I keep getting "NotSupportedException" when g.MeasureString() is called in the following code (.NET CE). I have spent several hours but I cant seem to find the...
1
by: Stephanie Stowe | last post by:
Hi. I am trying to read information out of the IIS metabase (v5.1). Observe the following code: using System; using System.DirectoryServices; using System.Reflection; namespace ADSI1 {...
0
by: rein.petersen | last post by:
Hi All, I've been struggling for a way to retrieve custom attributes I have set (SetCustomAttributes) on a class through a TypeBuilder but can't seem to get around : "NotSupportedException -...
2
by: Chris | last post by:
Hi, the specs for System.Array are : MustInherit Public Class Array Implements ICloneable, IList, ICollection, IEnumerable but I can't use any of the functions presented by IList in my code ...
2
by: BrentonMCA | last post by:
I am trying to create a webrequest using the create method with a URL (string or system.uri) with the prefix "http://". A "system.notsupportedexception" is raised, even though documentation tells...
2
by: purnimakarnati | last post by:
When I added a textbox and assigned the value to the textbox and added to htmltablecell while debugging I am able to see the correct assigned value but if I see the contents in the HTMLTABLE in...
3
by: wingsganesh | last post by:
Hi buddys, I have the followinf Bug......... when i run my application "NotSupportedException was un handled" in "System.Drawing.Icon" for the following designer code.... ...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.