Using WebBusinessBindingSource


Author
Message
PeterA
PeterA
StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 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 (110 views, 76.00 KB)
StrataFrame Team
S
StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Working with the VSTypeReslutionService can cause some problems... sometimes you have to build the project and reload VS before the DLLs within the IDE are refreshed for use.  So, once you set the business object, save the files, build the project, and reload Visual Studio.
PeterA
PeterA
StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)
Group: Forum Members
Posts: 72, Visits: 235
I added the WBBS to the page, set the business object on the WBBS, saved the page, closed and re-opened VS. Same problem (and that error pops up multiple times).



I then tried setting the DataSourceID property on the gridview, saved the page, closed and re-opened VS. Still occurred after that, too.



Anything else I can try?



Thanks!
StrataFrame Team
S
StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K 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 (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K 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 (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 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 (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 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 (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K 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 (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 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 (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 reputation)StrataFrame Novice (76 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!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search