Using WebBusinessBindingSource


Author
Message
PeterA
PeterA
StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)
Group: Forum Members
Posts: 72, Visits: 235
I'm trying to bind a GridView control to a business object using the WebBusinessBindingSource object. I get the WBBS object added to my ASP.NET page with no problem and tell it which business object to use. However, when I bind the GridView to the WBBS, I get an ArgumentNullException (see the attached image).



Is there a property I need to change to make the GridView work with the WBBS?



Thanks!
Attachments
WBBS Error.jpg (143 views, 76.00 KB)
Replies
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Is the page using code-behind or is all of the .NET code in <script> tags?
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Oh, and is this a Web Site, or a Web Application Project?
PeterA
PeterA
StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)
Group: Forum Members
Posts: 72, Visits: 235
Ben Chase (09/27/2007)
Oh, and is this a Web Site, or a Web Application Project?




This is all being done with a code-behind and is an Web Application project.



Thanks!
PeterA
PeterA
StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)
Group: Forum Members
Posts: 72, Visits: 235
Has there been any progress on this? Is it a bug? Did I set something up wrong?



Thanks!
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
I just added some more if tests to the GetPageType() method to throw more detailed exceptions when something goes wrong.  It's part of the Extensibility DLL, but before I send you all of the new assemblies, there is one last thing we can check... can you post the <@ > page declarations from the .aspx page that is giving you the problem?  We parse those off trying to find the ApplicationBasePage type to retrieve and it looks like the parsing is failing.
PeterA
PeterA
StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)
Group: Forum Members
Posts: 72, Visits: 235


<%@ Page Language="C#" EnableTheming="true" Theme="Default" StylesheetTheme="Default" MasterPageFile="../Design/mm.Master" AutoEventWireup="true" CodeBehind="detail.aspx.cs" Inherits="Company.BusinessArea.Application.Page" Title="Page Title" %>





This the page declaration from one of the pages. The other one I tried it on is set up in the same way, just has a different CodeBehind attribute declaration.



Thanks!
PeterA
PeterA
StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)
Group: Forum Members
Posts: 72, Visits: 235
Ben Chase (10/02/2007)
I just added some more if tests to the GetPageType() method to throw more detailed exceptions when something goes wrong. It's part of the Extensibility DLL, but before I send you all of the new assemblies, there is one last thing we can check... can you post the <@ > page declarations from the .aspx page that is giving you the problem? We parse those off trying to find the ApplicationBasePage type to retrieve and it looks like the parsing is failing.




Has there been any progress on the new assemblies? Anything else I might be able to try?



Thanks!
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
OK, I've added some catches and more detailed descriptions when an unexpected condition is encountered.  I also loosened the RegEx that parses off the base page class name, so give this one a try and see if it works.  You'll need to shutdown VS, copy the DLLs to your C:\Program Files\Common Files\MicroFour\StrataFrame folder and also drag them into the C:\Windows\Assembly folder.  Then restart VS and let me know what happens.
Attachments
StrataFrame.zip (120 views, 2.00 MB)
PeterA
PeterA
StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)
Group: Forum Members
Posts: 72, Visits: 235
Well, the error still occurred, but it was much more specific. Not sure how to go about fixing it, though.



Thanks!
Attachments
WBBS Error.jpg (116 views, 45.00 KB)
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Could you email me the .aspx page and the .cs page for that page.  We're parsing the EnvDTE.CodeModel and for some reason, it doesn't thing that the class has a base class.  You can email it to support@strataframe.net.  Thanks.
PeterA
PeterA
StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)
Group: Forum Members
Posts: 72, Visits: 235
Ben Chase (10/15/2007)
Could you email me the .aspx page and the .cs page for that page. We're parsing the EnvDTE.CodeModel and for some reason, it doesn't thing that the class has a base class. You can email it to support@strataframe.net. Thanks.




Any luck tracking this down? Did you receive the files OK?



Thanks!
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
The code model had a few elements with "Not Supported" properties within that file so it was throwing an exception we weren't expecting.  I plugged the holes, so give this one a try.  Usual steps: copy to C:\Program Files\Common Files\MicroFour\StrataFrame, drag to C:\Windows\Assembly, restart VS.
Attachments
StrataFrame.zip (113 views, 257.00 KB)
PeterA
PeterA
StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)
Group: Forum Members
Posts: 72, Visits: 235
Ben Chase (10/19/2007)
The code model had a few elements with "Not Supported" properties within that file so it was throwing an exception we weren't expecting. I plugged the holes, so give this one a try. Usual steps: copy to C:\Program Files\Common Files\MicroFour\StrataFrame, drag to C:\Windows\Assembly, restart VS.




That took care of it. Thanks!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
PeterA - 18 Years Ago
StrataFrame Team - 18 Years Ago
PeterA - 18 Years Ago
StrataFrame Team - 18 Years Ago
                     Oh, and is this a Web Site, or a Web Application Project?
StrataFrame Team - 18 Years Ago
                         [quote][b]Ben Chase (09/27/2007)[/b][hr]Oh, and is this a Web Site, or...
PeterA - 18 Years Ago
                             Has there been any progress on this? Is it a bug? Did I set something...
PeterA - 18 Years Ago
                                 I just added some more if tests to the GetPageType() method to throw...
StrataFrame Team - 18 Years Ago
                                     [quote]
<%@ Page Language="C#" EnableTheming="true"...
PeterA - 18 Years Ago
                                     [quote][b]Ben Chase (10/02/2007)[/b][hr]I just added some more if...
PeterA - 18 Years Ago
                                         OK, I've added some catches and more detailed descriptions when an...
StrataFrame Team - 18 Years Ago
                                             Well, the error still occurred, but it was much more specific. Not...
PeterA - 18 Years Ago
                                                 Could you email me the .aspx page and the .cs page for that page....
StrataFrame Team - 18 Years Ago
                                                     [quote][b]Ben Chase (10/15/2007)[/b][hr]Could you email me the .aspx...
PeterA - 18 Years Ago
                                                         The code model had a few elements with "Not Supported" properties...
StrataFrame Team - 18 Years Ago
                                                             [quote][b]Ben Chase (10/19/2007)[/b][hr]The code model had a few...
PeterA - 18 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search