[Mono-dev] ObjectDataSourceView/Type problem

Breno brenopiva at yahoo.com.br
Thu Jul 27 10:11:51 EDT 2006


Hi everyone,
   
  I am having a problem with the TypeName property of ObjectDataSource it is been used bound to a DropDownList and works fine under MS.NET, but when I try to run under Mono I get the folowing error:
   
  System.InvalidOperationException: Type not found: EnderecoHelper
  at System.Web.UI.WebControls.ObjectDataSourceView.get_ObjectType () [0x00000] 
  at System.Web.UI.WebControls.ObjectDataSourceView.GetObjectMethod (System.String methodName, IOrderedDictionary parameters) [0x00000] 
  at System.Web.UI.WebControls.ObjectDataSourceView.InvokeSelect (System.String methodName, IOrderedDictionary paramValues) [0x00000] 
  at System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect (System.Web.UI.DataSourceSelectArguments arguments) [0x00000] 
  at System.Web.UI.DataSourceView.Select (System.Web.UI.DataSourceSelectArguments selectArgs, System.Web.UI.DataSourceViewSelectCallback callBack) [0x00000] 
  at System.Web.UI.WebControls.DataBoundControl.PerformSelect () [0x00000] 
  at System.Web.UI.WebControls.ListControl.PerformSelect () [0x00000] 
  at System.Web.UI.WebControls.BaseDataBoundControl.DataBind () [0x00000] 
  at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound () [0x00000] 
  at System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender (System.EventArgs e) [0x00000] 
  at System.Web.UI.WebControls.ListControl.OnPreRender (System.EventArgs e) [0x00000] 
  at System.Web.UI.Control.PreRenderRecursiveInternal () [0x00000] 
  at System.Web.UI.Control.PreRenderRecursiveInternal () [0x00000] 
  at System.Web.UI.Control.PreRenderRecursiveInternal () [0x00000] 
  at System.Web.UI.Control.PreRenderRecursiveInternal () [0x00000] 
  at System.Web.UI.Control.PreRenderRecursiveInternal () [0x00000] 
  at System.Web.UI.Page.InternalProcessRequest () [0x00000] 
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]
   
   
  EnderecoHelper is a class that was used in App_Code in MS.NET in order to make it work in Mono I compiled it and now I have a EnderecoHelper.dll file in bin directory.
   
  Looking at the source of ObjectDataSourceView at ObjectType property, where the error occurs, we see this:
   
  Type ObjectType {
      get {
          if (objectType == null) {
              objectType = Type.GetType (TypeName);
              if (objectType == null)
                  throw new InvalidOperationException ("Type not found: "  + TypeName);
          }
      return objectType;
      }
  }
   
   
  which means that Type.GetType(EnderecoHelper) ir returning null, but that wasn't supposed to heppen. Any ideas why this is happening? Am I doing something wrong or this is a bug?
   
  Thanks in advance,
   
  Breno Piva

 		
---------------------------------
 Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060727/e9361e20/attachment.html 


More information about the Mono-devel-list mailing list