Developing for iMIS

Unrecognized configuration section paymentGatewayService.

I am trying to test out iBO for Dot Net and I followed the initial instructions for set up.

When I run my app I immediately receive an error in my Web.Config file: "Unrecognized configuration section 'paymentGatewayService'."

the section surrounding that area was just copied from the code examples on the SDK Area and looks like this:

<add name="DataSource.iMIS.Connection" connectionString="Data Source=dnntest;User ID=sa;Password=P@ssw0rd;Initial Catalog=BlackBox"/>
<add name="DataSource.SqlClient.Connection" connectionString="Data Source=dnntest;User ID=sa;Password=P@ssw0rd;Initial Catalog=BlackBox"/>


creating password for a user

I am trying to create page, so the a user can register online and do a payment,

in the below code, the user is created, but the user id is set in name_security table, but the password still empty.

what am i missing?


IiMISUser user;
             CContact contact;

                if (Session["LoginUser"] != null)
                    user = (CContactUser)Session["LoginUser"];
                    contact = new CContact(user, ((CContactUser)user).ContactId);
                    user = CStaffUser.Login(ConfigurationManager.AppSettings["LoginKey"], ConfigurationManager.AppSettings["LoginPW"]);
                    user.ThrowExceptionOnError = true;
                    contact = new CContact(user);
                    contact.CustomerTypeCode = "MEMB";

                contact.FirstName = "John";
                contact.MiddleName = "c";
                contact.LastName = "Smith";
                contact.Designation = "?";
                contact.InstituteName = "SMi";
                contact.Title = "Mr";
                contact.EmailAddress = "";
                contact.WorkPhone = "04213542321";
                contact.HomePhone = "09";
                contact.InstituteName = "klaysoft";
                contact.DefaultAddress.Address1 = "fg dfg";
                contact.DefaultAddress.Address2 = "g g";
                contact.DefaultAddress.Address3 = "f g";
                contact.DefaultAddress.City = "fgfgs";
                contact.DefaultAddress.StateProvince = "fsgfg";
                contact.DefaultAddress.PostalCode = "3025";
                if (contact.Validate())
                    throw new Exception(contact.Errors.PrimaryErrorMessage);

                contact.CreateUserSecurity("john", "xdsds443");

                if (contact.Validate())
                    throw new Exception(contact.Errors.PrimaryErrorMessage);

                catch(Exception d)

Credit Card Number -CPAYMENT


I am getting an exception :The type initializer for 'Asi.Security.AppPrincipal' threw an exception

  var payment = new CPayment(CStaffUser.GetDefaultStaffUser())
                CashAccountCode = "VISA",
                CreditCardNumber = "4007000000027"

Order API - 15.1.3 - processing an order via API

We have done some testing and are trying to determine if it is possible to process an order thru the API that results in a complete order in iMIS with full Transactional entery (order, order_lines, Invoice, Trans and Activity) without walking thru the order stages in the desktop.

At this point the only order we can get with the API is a proforma and we are seeing missing DIST lines in Trans.  We are working in 15.1.3 and need to determine if the API can do this as part of the design, if we are calling it correctly or if there is a bug in the version we are working with.

Where can I obtain the iBO for .Net dll file?

I've searched and searched.  I would like to do some testing to present it to my boss.

how do you get Address Purposes using Ibo

how do you get Address Purposes using Ibo?


Documentation for creating iParts? Where

I am trying to create some iParts to replace some old xTender applets.

I am very familiar with creating web parts and have created a number of iParts successfully. What I am not able to find is any information on what values, variables and parameters are available to me inside those iParts. i.e. How do I retrieve the selected user ID?

Is this documentated someplace?

This would be for both web and desktop views.

CPayment - CreditCardNumber Exception

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Asi.iBO;
using Asi.iBO.Financials;

namespace ConsoleApplication1
    class Program
        static void Main(string[] args)
                IiMISUser user = CStaffUser.Login("Manager", "Test1234");
                CPayment Payment = new CPayment(user);
                Payment.Amount = 120;
                Payment.PaymentType = EnumPaymentType.CreditCard;
                Payment.CreditCardNumber = "4444333322221111";
                Payment.CreditDebitCardHoldersName = "Name";
                Payment.CreditDebitCardAuthorizationCode = "123";
                Payment.CreditCardSecurityCode = "123";
                Payment.CreditCardExpiration = "12/50";
                Payment.CashAccountCode = "VISA";
            catch (Exception exception)
                throw new Exception(exception.Message);

How do I: Get a selected ID in the Desk View?

I have a iPart that is very simple.

It displays the selected ID by using the following code in the ASCX file: 

<%= IWC.Utilities.GetCurrentUserID() %>

This works great in the web view and returns the number exactly as expected. But in the Desktop View it returns a much longer string of numbers and letters. My guess is that it is encoded in some way. How do I go about getting the plain value?

Error When trying to save in Content Designer

When adding content with the Content designer I get screen attached below. The Title field shows a red asterisk which I assume means that there is an error. But the error message at the bottom of the screen (see attachment) doesn't seem to correlate to anything having to do with the title field.

I can hit the save button but the error message never changes.

What does this error mean and how do I fix it?