bswetnam's blog

Retrieve current navigation Code

I need to retrieve the navigation code that is in the sitemap. I need to do this because the base.IsHomepage does not work, it always returns false.

Is there a simple way to retrieve it from the site or any page.


Security Context Change 15.2


We have been using a security context in tha past with 15.1.3 to identify an individual as follows

string contactID = ((Asi.Security.AppPrincipal)Asi.Security.AppPrincipal.CurrentPrincipal).AppIdentity.ContactMaster;

I have since loaded the new 15.2 on a server and this context no longer works.

Simple IBO Net Signup Process Error

I am trying to create a simple new contact in IMIS via IBO
Imis version

I get this error.
It does create the IMIS entry but seem to fail in creating the security. This is a simple signup process test.
Any Help is appreciated.

This the error.

System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object.
  at Asi.Web.Services.Membership.MembershipWebService.CreateImisUser(Boolean staffUser, Boolean webUser, String contactID, String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved)
  at Asi.Web.Services.Membership.MembershipWebService.RegisterWebUser(String contactID, String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved)
  --- End of inner exception stack trace ---
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Document Published Date

Is there a way to easily retrieve the Published Date for any given Document?

The only date I see is Updated On. The published Date seems to  be hidden in the blob field.

End the Connection Time Out Issues in 15.1.2

You can modify you connection strings for WCM and site issues to improve performance and Eliminate the Connection Timeout issues in WCM

Open your web config file in the new folder.

Locate the connection string for imis.

Add the following parameters to the end of the existing string.

Max Pool Size=100; Min Pool Size =5;

Document Url From Database




THIS CONTENT MOVED TO Developer Resources and is NOT CURRENT.




Is there a way to retrieve the actual url to a content record from the database. I am writing a Alpha Tagged list webpart and I am having issues with  content since the blob field is longer than I can read in SQL.

WCM Billing and International Billing Problems

Needless to say we have a very upset client, that has implemented Imis 15.1 and are having several issues with billing errors. There seems to be issues with international billing as well as some US based members; the browsers seem to have an issue with international users where it puts invalid characters in the amounts or other fields.

The errors cause issues in the application pools, then the application pools recycle and stall. Then the user gets an general error page (error.aspx) that shows an generic message. We have modifed the error.aspx to show a general message, to help eleivate their frustaration.

WCM Drop Down Navigation

Are there any devlopers that have sucessfully got the Drop Down menus to actually function and display in WCM 15.1

Syndicate content