Difficult to do data binding


Author
Message
Chan
Chan
Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

I am facing difficulty to do data binding. Sometime, VS just couldn't find the businessobjects declared in ApplicationBasePage. Sometime, VS prompted error "OutOfRangeException" when I try to specify WebBBS.BusinessObjectName or during opening the web project.



I ever tried to recompile, reopen the project in order to overcome this problem. Sometime it helps but sometime it doesn't.



May I know what could it cause? I need 30 mins in order to specify a single WEBBBS which is very frustrated.



Please advice



Thank you
Trent Taylor
Trent Taylor
StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
I have never experienced or even heard of this type of behavior.  I am also entirely uncertain as to how this is occuring and where the error is appearing.  Can you give steps or provide a sample that shows how to reproduce?  Thanks.
Chan
Chan
Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

It happened to all of the machines we are using (eval).



What we did is just created BO which stored in Business library project, then in applicatiobbasepage we have the following





private _myBO = new MyBO();

public MyBO MyBO

{

get { return _myBO; }

set { _myBO = value; }

}



private _myXBO= new MyXBO();

public MyXBO MyXBO

{

get { return _myXBO; }

set { _myXBO= value; }

}





After that we compile webapplication and also Business Library project. Drop webBBS on aspx, try to specify webBBS.BusinessObjectName. Sometime BOs are listed sometime not. Sometime I would hit error outofRangeException.



After many tries of recompile, problem might be gone.

Tried to restart VS, open the solution then will hit error nullexception.
Trent Taylor
Trent Taylor
StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Can't reproduce.  You are welcome to post a sample that fails in your environment and I will see if it happens on my side and try to reproduce, but the steps that you are providing did not work.  Also, we have fixed the WBBS issue that you were fighting.  So be sure to download that update through the Posted Releases section of the forum.
Chan
Chan
Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

I have attached screenshot of the error.

While open project, I hit error_NullReference.jpg. It was working fine when I try to change BusinessObjectName or datasource for aspxgridview. Then I recompile the solutions then I hit error_Indexoutofrange when try to select businessobjectname. I restarted VS, I hit error_nullreference again, but error_indexoutofrange gone.







Dustin Taylor
Dustin Taylor
StrataFrame Team Member (488 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
Thanks for posting the sample, we were able to get to the bottom of it. It was throwing a null reference if there was no active page when testing for the page type. The issue is resolved in the (just posted) latest release of the 1.6.6 beta. Cool

http://forum.strataframe.net/Topic15687-22-1.aspx

Chan
Chan
Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

Very sorry to inform that, the error still happen, but this time is just "Exception" but same stacktrace. And we found that, if we have *.aspx pre-opened while project load this error will occured (exception & NullReferenceException).



I will test this again using another machine later.



Thank you
Trent Taylor
Trent Taylor
StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Let us know because it all works using the sample you provided on this side.  If you have any additional information then please let us know.  Thanks.
Chan
Chan
Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

I have retest it using personal machine and it works. I will restest it at office tomorrow.

However, the IndexOutOfRangeException issue is still happen. I got to restart VS in order to solve it.



1. Open Project

2. Try to change WebBBS.BusinessObjectName using VS property grid.

3. If no error happen, recompile solution

4. Repeat step 2, error IndexOutOfRange occured.



Thank you
Chan
Chan
Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)Advanced StrataFrame User (609 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

I have attached same project. When open it, I will hit Exception error.



Please rectify. Thank you
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