iMIS Community facilitates the collaborative development of iMIS applications and solutions among the customers, partners, and developers of Advanced Solutions International.

CPayment unexpected exceptions and workaround

The following NUnit-driven demos demonstrate that setting CPayment's CashAccountCode before setting the CreditCardNumber will lead to unexpected errors:

    [TestFixture, Explicit("demos")]   
    public class UnexpectedExceptions
    {
        [TestFixtureSetUp]
        public void TestFixtureSetUp()
        {
            iboAdmin.InitializeSystem(ConfigurationManager.ConnectionStrings["DataSource.iMIS.Connection"].ConnectionString);
        }

        [Test]
        [ExpectedException(typeof(ArgumentOutOfRangeException))]
        public void Demo_Setting_CreditCardNumber_After_CashAccountCode_CausesUnhandledException_1()
        {
            var payment = new CPayment(CStaffUser.GetDefaultStaffUser())
            {
                CashAccountCode = cashAccountCode,
                CreditCardNumber = "4007000000027"  // VISA test number, eh?
            };
        }

        [ExpectedException(typeof(Asi.iBO.InvalidCardNumberException))]
        public void Demo_Setting_CreditCardNumber_After_CashAccountCode_CausesUnhandledException_2()
        {
            var payment = new CPayment(CStaffUser.GetDefaultStaffUser())
            {
                CashAccountCode = cashAccountCode,
                CreditCardNumber = "011201539123"   // it's irrelevant how I came up with this number.
            };
        }  
    }

Broken Publishing Server

I have a publishing server that is throwing an error when I try to 'show all' errors in the error log.  I can not delete any errors for this particular server because the buttons do not display.  The error is below. 

The publishing is still working to the web server that this publishing server is dedicated to.  I have restarted the service and both my app server and web server but no change.

Adding public view pages to a content record

I don't think this is possible, but who knows, I may be wrong. My client wants to have the ablility to include public view content on a regular content record. e.g. Say they create a content record that has the format of 1 over 1. They want the abiltiy to put text in the top box and then have  the public view page content in the lower box. Is this possible? If yes, how was this accomplished?

Communities Email

Has anyone gotten WCM .net communities subscribe to post emails to work?

Error adding a new contact through iBO

Hi,

I am having difficulty adding a new contact through the CContact iBO. I am initializing a new contact by calling new CContact(user) then setting some properties. When I call CContact.Save() I'm getting a stackoverflow error:

EventType clr20r3, P1 aspnet_wp.exe, P2 2.0.50727.3053, P3 4889ded7, P4 asi.ibo, P5 15.0.3.2396, P6 49a781d8, P7 847, P8 1, P9 system.stackoverflowexception, P10 NIL.

collecting e-check payments with a custom payment gateway provider

I'm trying to implement an extension to PaymentGatewayProvider that uses a payment gateway API not supported by iMIS.  All of the examples seem to involve payments via Credit Card.  I would like to also implement payment via e-check.  Is this supported?

The arguments passed into ProcessPayment are a TransactionType, a CPayment, and a CAddressBasic.  CPayment does not seem to have any members for the bank account number, bank routing number, etc.  Where would this data come from?

Creating custom page

I have created custom pages in iMIS but without being able to incorporate the master pages inherent in the template (1600).  I have tested by creating aspx pages using all the master pages available (a search on the Net folder shows only master pages in templates/masterpages.

I would like to create custom pages that incorporate the template masters.  How do I do this -- it seems like it should be simple.

Underscore in Alias name

I have a client who wants to use an underscore in the alias name - something like Home_Country but when the query is run the underscore is stripped out. I understand that the underscore is used in keywords and that may be the reason.  Is there an escape character that can be used to preserve the underscore?

Thanks!

Reducing version dependencies?

So I've got these iParts, see?  They have references to several ASI dlls, typically Asi, Asi.Business.ContentManagement, Asi.iBO, Asi.Web, Secure and Telerik.Web.UI.  I have those files in my project folder, it builds my dlls just fine and works great...until the client upgrades.  At that point, my code refuses to run because it can't find the file it was compiled against.  Telerik is the most common offender.  Moving from 15.1.1 to 15.1.2 required a new dll even though I was using only features available in both flavors.

iMIS 15 and SQL Server

Hello,

There was a thread on this forum from last September about compatibility of iMIS 15 with SQL Server 2008. The message wasn't a good one ("failed miserably" was once phrase used). Has anyone tried or have there been any updates since that post? We're really hoping to upgrade to SQL Server 2008 and iMIS compatibility is a big obstacle.

Thank you!