Getting started with ibo.net

I'm just getting started with ibo.net for imis and would like instructions for downloading the ibo for .net and installing it for use with visual studio 2005. Any real samples would be great. I'm running on win xp and have access to both sql 2000 and 2005. Please let me know if this is the right place to start. My specialties are in Sql and classic asp and javascript.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

I believe the iBO for .NET

I believe the iBO for .NET is still under ETP. If you look under the projects tab you will see it listed.

the zip file actually contains a sample application that is really good for getting your feet wet with the application.

If this is your first tour through the world of ASP.NET. The only difference between asp.net and classic asp is the first three letters. It whould probrably make sense for you to pick up a C# book or two.

you can write the code behind for asp.net using C#,J#,C++ or VB. While VB was popular for classic asp. The trend these days is more towards C#.

I hope you mean "the only

I hope you mean "the only similarity between asp.net and classic asp is the first three letters", since the differences are much larger than that. ;)

VB is still, believe it or not, the most popular .Net language, and it makes a great transition for developers used to VB6 or Classic ASP.

error when building sample

Could not create type 'iBOWS.iBONameService'
Any ideas?

Version?

Are you using the latest version (0.16)?

version 16

Just downloaded it. When I run it in debug mode, it stops on "user = CStaffUser.Login(LoginId.Text,Password.Text);" and sends ....There is no source code available for the current location. Again, I'm new to all of this.

Tom

Are you using a 10.x or 15.0

Are you using a 10.x or 15.0 database?

imis version 10.6

Tom

Look at this stack trace

After gettin the error, I copied the exception detail. Look at the line that starts StackTrace: at Asi.iBO.CStaffUser.Login.........

This line references some network drive or location (E:\TFS\devBranches) that is not anywhere on my computer or our servers. Can this be part of the problem?

===================================

System.NullReferenceException was unhandled by user code
Message="Object reference not set to an instance of an object."
Source="Asi.iBO"
StackTrace:
at Asi.iBO.CStaffUser.Login(String userId, String clearPassword) in E:\TFS\devBranches\Coleto\imis.net\Packages\iBO\Asi.iBO\CStaffUser.cs:line 673
at ibosample.Login.LoginBtn_Click(Object sender, EventArgs e) in c:\UpDates\ibo_for net_15\ibo.net\Sample\Login.aspx.cs:line 32
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)Tom

Source code location

That location is just the file the code was built from (E: happens to be my source drive); it's not causing the error, just reporting the specific source file and line of code where it happened.

Have you tried mriley's suggestion of making sure that the DLLs listed in the README file are copied from your iMIS install to the sample site's bin\ directory?

I'm not sure if we've tried the sample site against a 10.6 database; I can't think of any reason it shouldn't work, but if you can't get it working I'll get a 10.6 site set up locally and see if it works for me.

dll refresh

Do we need to add the reference again to these dlls when they change?

Tom

You shouldn't; it should

You shouldn't; it should just be bound to the name, not the version, so just dropping the DLLs in the sample site's bin folder should be sufficient.

missing dlls

ok, you are correct , not all dlls from the readme are in the bin folder. Where do I find these? I don't see them in the zip file.

Tom

From the bin\ folder of your

From the bin\ folder of your iMIS application server.

not all dlls found

OK, I moved the Asi.dll and the Asi.Lexicon.dll. I also found the log4net.dll in the install folder. Not able to find the Asi.Log4Net.dll, or the Asi.Membership.dll. Installed the two I found and the error still exists.

Tom

I'll see if I can get it

I'll see if I can get it working locally.

Still not getting through the login page.

I have been checking everything and still have same problem. I'm running sql 2005 in 2000 emulation mode. Running on local host on win xp sp2.
Using Microsoft Visual Studio 2005 express edition but have tried in full version as well. imis 10.6. I extracted the zip file and ran the web site from the sample folder. Changed the datasource to match ours. I also changed the sessionState connection strings to relect my ip address.

Another error has been there all along....Could not create type 'iBOWS.iBONameService'. and this warning......The element 'system.web' has invalid child element 'paymentGatewayService'.Tom

Fixed

I didn't have the imis.net installed on my local box. I installed and also added the sample web site below the imis.net root and the sample works.

Can't find a staff member

Now that the sample is working, I have one problem when attempting to to search for a contact. After logging in and trying to find a contact I get this...This function is only available to Staff. Please login with a Staff account. I've tried several logins and can't get it to work. Maybe we don't use this account? Where can I find this in IMIS 10.6?

A Staff account is one that

A Staff account is one that can log in to iMIS Desktop (a.k.a. Client/Server).

MANAGER, for example.

Staff account

I've tried manager, manager!sa and others, but no good. Can you tell me what table and field this would be so I can set someone up. Is it possible we don't use this type?

For 10.6, they need to be in

For 10.6, they need to be in the Users table and their password there needs to be correct. As I said, if you can log in to C/S as that person, they're a staff user and set up correctly; it would need more troubleshooting to identify what exactly is wrong (if you normally log in to C/S as MANAGER!sa, then the password in the Users table is probably incorrect -- you'll need to fix it in C/S in the File->System Setup menu).

manager now works

Thanks Eric, I changed the pw for manager in system setup. I noticed that most of the authorization codes where 9. The find contact works now. We have users setup as mostly 8s and they do not work. Is it due to the authcode or the entry in the users table?

I'm assuming it's due to the

I'm assuming it's due to the passwords not being correct; I don't think the sample site code checks authorization levels, and I know iBO.Net does not internally.

IBO.net

Do we have any documentation that reflects a direct connection between the class objects and there equivalent sql objects. For example, the CEventsConfig Properties. They have very generic names such as EventDescriptioField1 - 10. Many of the IBO objects are easy to figure out, but it would be nice to see database equivalents where possible.

Good Idea

Currently we don't, but it might be a good idea to put the database table and field in the XML documentation, for example, especially when the names don't match.

To answer your specific question, CEventsConfig.EventDescriptionField1-10 correspond to Meet_Control.MUFPro1-10 (intuitive, I know ;)).

Trouble using CEvent.Save

I am getting an error when saving a partial event record. The record actually saves though. You've probably seen this error before. Meet_Master is the underlying table and all fields set to not null have defaults. Can you point me in the right direction? The error is........

System.NullReferenceException was unhandled by user code
Message="Object reference not set to an instance of an object."
Source="Asi.iBO"
StackTrace:
at Asi.iBO.Events.CEvent.Save(DataServer server) in E:\TFS\devBranches\Coleto\imis.net\Packages\iBO\Asi.iBO\Events\CEvent.cs:line 1024
at Asi.iBO.Events.CEvent.Save() in E:\TFS\devBranches\Coleto\imis.net\Packages\iBO\Asi.iBO\Events\CEvent.cs:line 1005
at ibosample.EventEdit.DataChanged(Object sender, EventArgs e) in c:\Program Files\iMIS.Net\Sample_1\Admin\EventEdit.aspx.cs:line 139
at System.Web.UI.WebControls.TextBox.OnTextChanged(EventArgs e)
at System.Web.UI.WebControls.TextBox.RaisePostDataChangedEvent()
at System.Web.UI.WebControls.TextBox.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent()
at System.Web.UI.Page.RaiseChangedEvents()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Tom

That error occurs if you

That error occurs if you save an event where the list of functions hasn't been accessed or created yet. You should be able to add a call to get the function list (the CEvent.Functions method) or function count before you call Save to avoid the error.

I'll create an internal issue to get the error fixed.