[Mono-dev] webclient error

2006-02-19 Thread Pablo Iñigo Blasco
greetings.
I have a simple aspx file with this code snipet:

System.Net.WebClient wc = new System.Net.WebClient();
string url=Request.QueryString["url"];
if(url!=null)
  byte[] buffer =wc.DownloadData(new Uri(url));
...

im using xsp2, when the string gets a not null value I get this exception:

Description: Error processing request.
Error Message: HTTP 500.

Stack Trace: System.TypeInitializationException: An exception was
thrown by the type initializer for System.Net.HttpWebRequest --->
System.Configuration.ConfigurationException: system.net/settings does
not implement System.Configuration.IConfigurationSectionHandler ()in
<0x000e1> System.Web.Configuration.ConfigurationData:CreateNewHandler
(System.String sectionName, System.Web.Configuration.SectionData
section)in <0x001d1>
System.Web.Configuration.ConfigurationData:GetHandler (System.String
sectionName)in <0x00055>
System.Web.Configuration.ConfigurationData:GetHandler (System.String
sectionName)in <0x00026>
System.Web.Configuration.ConfigurationData:GetConfigInternal
(System.String sectionName, System.Web.HttpContext context, Boolean
useLoc)in <0x00072>
System.Web.Configuration.ConfigurationData:GetConfigOptLocation
(System.String sectionName, System.Web.HttpContext context, Boolean
useLoc)in <0x00276>
System.Web.Configuration.ConfigurationData:GetConfig (System.String
sectionName, System.Web.HttpContext context)in <0x0005a>
System.Web.Configuration.WebDefaultConfig:GetConfig (System.String
sectionName, System.Web.HttpContext context)in <0x00022>
System.Web.Configuration.WebDefaultConfig:GetConfig (System.String
sectionName)in <0x0001a>
System.Configuration.ConfigurationSettings:GetConfig (System.String
sectionName)in <0x00015> System.Net.HttpWebRequest:.cctor ()--- End of
inner exception stack trace ---in <0x0> in
<0x0001c> System.Net.HttpRequestCreator:Create (System.Uri uri)in
<0x0002e> System.Net.WebRequest:Create (System.Uri requestUri)in
<0x00045> System.Net.WebClient:SetupRequest (System.Uri uri)in
<0x00010> System.Net.WebClient:SetupRequest (System.Uri uri,
System.String method)in <0x0001c> System.Net.WebClient:DownloadData
(System.Uri address, System.String method)in <0x00012>
System.Net.WebClient:DownloadData (System.Uri address)in (wrapper
remoting-invoke-with-check) System.Net.WebClient:DownloadData
(System.Uri)in <0x00140> ASP.rss_aspx:Page_Load (System.Object o,
System.EventArgs e)in (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_EventArgs
(object,System.EventArgs)in <0x00117> System.Web.UI.Control:OnLoad
(System.EventArgs e)in <0x00112> System.Web.UI.Control:LoadRecursive
()in <0x001c4> System.Web.UI.Page:InternalProcessRequest ()in
<0x000be> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext
context)

I think it is a bug, any suggestion or opinion?
it works on ms.net.
Thanks.
--
No hay viento favorable para el que no sabe donde va.
Pablo Iñigo Blasco - GeuS- www.geus.es.vg
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Bug in System.Web.UI.WebControl.DataGrid

2006-02-19 Thread Vladimir Krasnov
Hello, 

While creating item in CreateControlHierarchy, items assigned with wrong
DataSetIndex value (if paging enabled).

Test case:
/System_Web_UI_WebControls/DataGridItem/DataGridItem_DataSetIndex.aspx

Please approve the attached patch
If no one objects, I will commit.

Vladimir Krasnov



DataGrid.cs.5.patch
Description: DataGrid.cs.5.patch
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Bug in System.Web.UI.WebControl.DataGrid with no columns

2006-02-19 Thread Vladimir Krasnov

Hello,

If no columns generated, no empty table struct should be rendered.

Test case:
/System_Web_UI_WebControls/DataGrid/DataGrid_AutoGenerateColumns.aspx

Please approve the attached patch
If no one objects, I will commit.

Vladimir Krasnov



DataGrid.cs.4.patch
Description: DataGrid.cs.4.patch
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Regressions in generics runtime support

2006-02-19 Thread Kamil Skalski
Hi!

I noticed a few refactorings of generics support in mono recently.
Unfortunately there appeared some regressions.

First one comes from patch
http://lists.ximian.com/pipermail/mono-patches/2006-February/070865.html

It causes following assertion when bootstraping Nemerle compiler:

COMPILE [stage1] Nemerle.Compiler.dll

** ERROR **: file icall.c: line 1891
(ves_icall_MonoType_GetGenericArguments): assertion failed: ((t->type
!= MONO_TYPE_VAR && t->type != MONO_TYPE_MVAR) ||
t->data.generic_param->owner)

(this problems seems present also in current svn version)

Later it got even worse, since with current svn, mono states there is
some invalid IL in Nemerle.Compiler. Though from what I can see this
might be related to Paolo's changes in IL verification.

Here is the tarball to reproduce the problems:

http://nemerle.org/download/snapshots/nemerle-0.9.2.99.6127.tar.gz

Hm, probably I should open a bug for this, as IL and generics problems
are probably not related. What is your opinion?

--
Kamil Skalski
http://nazgul.omega.pl
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Bug in WebControls.Style

2006-02-19 Thread Vladimir Krasnov
Hello,

The first patch fixes style of birder to solid if it is not set, but has
border width.

The second patch fixes incorrect comparison of unit when it has zero
value.

Test case:
/System_Web_UI_WebControls/WebControl/WebControl_Style_Border.aspx

Please approve the attached patch
If no one objects, I will commit.

Vladimir Krasnov



Style.cs.1.patch
Description: Style.cs.1.patch


Style.cs.2.patch
Description: Style.cs.2.patch
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Bug in WebControls.FontInfo

2006-02-19 Thread Vladimir Krasnov
Hello,

The first patch fixes CopyFrom method of FontInfo class. This method
should not reset the received fontinfo if it is the same instance.

Test case:
/System_Web_UI_WebControls/TableStyle/TableStyle_MergeWith_S.aspx

Second patch fixes FontInfo.ToString() where only font size specified.

Test case:
/System_Web_UI_WebControls/WebControl/WebControl_Font.aspx

Please approve the attached patch
If no one objects, I will commit.

Vladimir Krasnov



FontInfo.cs.1.patch
Description: FontInfo.cs.1.patch


FontInfo.cs.2.patch
Description: FontInfo.cs.2.patch
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Bug in WebControls.DataGridPagerStyle

2006-02-19 Thread Vladimir Krasnov
Hello,

Little typo bug in PrevPageText property.

Test case:
/System_Web_UI_WebControls/DataGridPagerStyle/DataGridPagerStyle_PrevPag
eText.aspx

Please approve the attached patch
If no one objects, I will commit.

Vladimir Krasnov



DataGridPagerStyle.cs.patch
Description: DataGridPagerStyle.cs.patch
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Bug in System.Web.UI.WebControls.DataGrid in InitializeNumericPager

2006-02-19 Thread Vladimir Krasnov
Hello,

In numeric pager, page number that is not link (current page), should be
a label.

Test case URL:
/System_Web_UI_WebControls/DataGrid/DataGrid_AllowCustomPaging.aspx

Please approve the attached patch
If no one objects, I will commit.

Vladimir Krasnov



DataGrid.cs.3.patch
Description: DataGrid.cs.3.patch
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Bug in System.Web.UI.WebControl.DataList in PrepareControlHierarchy

2006-02-19 Thread Vladimir Krasnov
Hello,

This bug is similar to my previous post.

While applying styles to a list items, there is a bug while processing
Separator, if separatorStyle is not specified, style of regular item
should be applied.


Test case URL:
/System_Web_UI_WebControls/DataList/DataList_SeparatorStyle.aspx

Also attached a better fix to the bug from my previous post.

Please approve the attached patch
If no one objects, I will commit.

Vladimir Krasnov



DataList.cs.7.patch
Description: DataList.cs.7.patch


DataList.cs.6.patch
Description: DataList.cs.6.patch
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Bug in System.Web.UI.WebControl.DataList in

2006-02-19 Thread Vladimir Krasnov
Hello,

While applying styles to a list items, there is a bug while processing
EditItem, if editItemStyle is not specified, style of regular item
should be applied.

Test case URL:
/System_Web_UI_WebControls/DataList/DataList_ItemStyle.aspx

Please approve the attached patch
If no one objects, I will commit.

Vladimir Krasnov



DataList.cs.6.patch
Description: DataList.cs.6.patch
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Bug in System.Web.UI.WebControl.DataList in PrepareControlHierarchy

2006-02-19 Thread Vladimir Krasnov
Hello,

Using Style instead of TableItemStyle causes loosing of table specified
styles, like align and valign.

/System_Web_UI_WebControls/DataList/DataList_AlternatingItemStyle.aspx

Please approve the attached patch
If no one objects, I will commit.

Vladimir Krasnov



DataList.cs.5.patch
Description: DataList.cs.5.patch
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Bug in System.Web.UI.WebControls.DataGrid columsautogeneration

2006-02-19 Thread Vladimir Krasnov
Sorry, I forgot the patch file

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vladimir
Krasnov
Sent: Sunday, February 19, 2006 3:14 PM
To: mono-devel-list@lists.ximian.com
Subject: [Mono-dev] Bug in System.Web.UI.WebControls.DataGrid
columsautogeneration

Hello,

I've found a bug in columns auto generation in DataGrid class.
The columns are not generated at all if the specified data source is
list of items where each item is a custom class. Is this case it should
generate column to each property of the class.

Test case URL:
/System_Web_UI_WebControls/WebControl/WebControl_Attributes.aspx

Please approve the attached patch
If no one objects, I will commit.

Vladimir Krasnov
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


DataGrid.cs.2.patch
Description: DataGrid.cs.2.patch
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Bug in System.Web.UI.WebControls.DataGrid colums autogeneration

2006-02-19 Thread Vladimir Krasnov
Hello,

I've found a bug in columns auto generation in DataGrid class.
The columns are not generated at all if the specified data source is
list of items where each item is a custom class. Is this case it should
generate column to each property of the class.

Test case URL:
/System_Web_UI_WebControls/WebControl/WebControl_Attributes.aspx

Please approve the attached patch
If no one objects, I will commit.

Vladimir Krasnov
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Bug in System.Web.UI.WebControl.DataList in InitializeItem

2006-02-19 Thread Vladimir Krasnov
Hello,

There is a bug in InitializeItem, while applying template to an item. If
item's type is SelectedItem and SelectedItemTemplate is not specified,
after rendering the item will be invisible. The same about EditItem.

Test case URL:
/System_Web_UI_WebControls/DataList/DataList_EditItemStyle.aspx
/System_Web_UI_WebControls/DataList/DataList_SelectedItemStyle.aspx

Please approve the attached patch
If no one objects, I will commit.

Vladimir Krasnov



DataList.cs.4.patch
Description: DataList.cs.4.patch
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Bug in System.Web.UI.WebControl.DataList in CreateControlStyle

2006-02-19 Thread Vladimir Krasnov
Hello,

I've found a problem while creating a TableStyle for list controls. In
the created style, CellSpacing property should be set to zero. 
This bug causes differences in visual appear of rendered table.

/System_Web_UI_WebControls/WebControl/WebControl_TableStyle_CellPadding.
aspx

Please approve the attached patch
If no one objects, I will commit.

Vladimir Krasnov


DataList.cs.3.patch
Description: DataList.cs.3.patch
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Bug in System.Web.UI.WebControl.DataList in DoItemInLoop

2006-02-19 Thread Vladimir Krasnov
Hello,

There is a bug in DoItemInLoop while creating a separator item incorrect
itemIndex given.

Test case URL:
/System_Web_UI_WebControls/DataListItem/DataListItem_ItemIndex.asp

Please approve the attached patch
If no one objects, I will commit.

Vladimir Krasnov


DataList.cs.2.patch
Description: DataList.cs.2.patch
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Changing TypeDef table

2006-02-19 Thread vijaya raghava mutharaju

  Hi,

    Can
we directly change(add) the entries in the metadata tables without
adding any entity(like a class) into the assembly (using Mono.Cecil).
Maybe just like a comment into the table. Please, can you explain the
steps for doing it or if it is not possible then the steps to do in
normal way (put in the assembly itself).
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Assembly Mono.Cecil not found while compiling

2006-02-19 Thread vijaya raghava mutharaju
   Hi,

 Thank you Robert and
Carlos. I compiled with the -pkg option and did it successfully. But
when I remove the Mono.Cecil.dll assembly from the GAC, it is still
giving complaints. I have to do both. Use -pkg option as well as keep
it in GAC. Thanks once again.

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Bug in System.Web.UI.WebControls.LinkButton

2006-02-19 Thread Vladimir Krasnov
Hello,

If validation enabled, some javasript code added, but attribute
language="javascript" is not needed.

Test case URL:
/System_Web_UI_WebControls/LinkButton/LinkButton_CausesValidation.aspx

Please approve attached patch

Vladimir Krasnov


LinkButton.cs.patch
Description: LinkButton.cs.patch
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Missing exceptions in System.Web.UI.WebControls.ListControl.TextBox

2006-02-19 Thread Vladimir Krasnov
Hello,

Value validation is missing in the following properties of TextBox
class:
Columns, MaxLength, Rows. Exceptions should be thrown in case of
incorrect values.

Test cases:
/System_Web_UI_WebControls/TextBox/TextBox_Columns.aspx
/System_Web_UI_WebControls/TextBox/TextBox_MaxLength.aspx
/System_Web_UI_WebControls/TextBox/TextBox_Rows.aspx

Please approve the attached patch
If no one objects, I will commit.

Vladimir Krasnov


TextBox.cs.2.patch
Description: TextBox.cs.2.patch
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Bug in TextBox control

2006-02-19 Thread Vladimir Krasnov
Hello,

If the Text property of TextBox control is null or empty string, value
attribute should not be rendered.

Test case URL:
/System_Web_UI/Control/Control_ClientID.aspx

Please approve the attached patch
If no one objects, I will commit.

Vladimir Krasnov


TextBox.cs.1.patch
Description: TextBox.cs.1.patch
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list