HomeHome Product Discus... Product Discus...SmithCartSmithCartCanada PostCanada Post
Previous
 
Next
New Post
6/20/2010 8:44 PM
 

I'm having problems setting the cart to use Canada Post as the Carrier. When I use USPS and obviously start destination is in US everything works fine.

BUT when we use Canada post with the following settings:

1. Shipping Setup = Cart Shipping Calculator

2. Carrier = Canada Post

3. Store Zip Code = M5M 1R2

4. Shipping Methods = Small Packet Surface

We get the following error:

A critical error has occurred.
The server committed a protocol violation. Section=ResponseStatusLine

Now matter what shipping method we use, they all give the same error. This is how the URL looks when we get the error:

http://www.ourdomain.com/Default.aspx?tabid=73&error=The+server+committed+a+protocol+violation.+Section%3dResponseStatusLine

Questions:

1. What are we doing wrong?

2. Do we need special settings for Canada Post?

Thank you

Leonard

 
New Post
6/20/2010 8:47 PM
 

Forgot to mention that we are using version 2.92.

Thank you

 
New Post
6/20/2010 11:20 PM
Accepted Answer 

I googled the error message you were getting “The server committed a protocol violation. Section=ResponseStatusLine” the first entry that comes up is http://www.velocityreviews.com/forums... which say to add the following web.config entry"

<system.net>
<settings>
<httpWebRequest useUnsafeHeaderParsing="true"/>
</settings>
</system.net>

Try adding this to your web.config and see if it works for you


At your service,
Dave Smith
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
6/22/2010 11:47 AM
 

I added the code to the web.config and although it seems like it resolved the old error we are now getting a new error:

http://www.ourdomain.com/Default.aspx?tabid=73&error=Object+reference+not+set+to+an+instance+of+an+object.

or

(A critical error has occurred. Object reference not set to an instance of an object.)

Any ideas with this one?

 
New Post
6/22/2010 11:52 AM
 

Can you detail out the steps to replicate the error.


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
6/22/2010 11:57 AM
 

I looked at the Event Viewer and the following is the detailed page load exception that gets recorded with the above mentioned error:

AssemblyVersion: 5.2.2

PortalID: 0

PortalName: OurDomain.com

UserID: -1

UserName:

ActiveTabID: 73

ActiveTabName: Coffee

RawURL: /Coffee/tabid/73/ctl/Cart/mid/407/Default.aspx

AbsoluteURL: /Default.aspx

AbsoluteURLReferrer: http://www.OurDomain.com/Coffee/tabid/73/ctl/Cart/mid/407/Default.aspx

UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

ExceptionGUID: 35d516e8-4e9f-4137-9a1d-8642e5ec26b1

InnerException: Object reference not set to an instance of an object.

FileName:

FileLineNumber: 0

FileColumnNumber: 0

Method: Smith.DNN.Modules.BuyNow.Cart.ParseCanadaPostResult

StackTrace:

Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Smith.DNN.Modules.BuyNow.Cart.ParseCanadaPostResult(String result) at Smith.DNN.Modules.BuyNow.Cart.GetCanadaPostRates() at Smith.DNN.Modules.BuyNow.Cart.GetShippingRates() at Smith.DNN.Modules.BuyNow.Cart.btnApply_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.ImageButton.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) --- End of inner exception stack trace ---

Source:

Server Name: xyz

Any ideas?

Thank you

Leonard

 
New Post
6/22/2010 11:59 AM
 

thanks for posting the error from the dnn event viewer but I still need the steps to replicate the error.

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
6/24/2010 5:49 AM
 

The error can be created as follows:

1. First set the cart to Canada Post shipping settings as described above.

2. Then from products page, select any product and 'Add To Cart'.

3. In the Checkout page fill in the 'Ship To' information and click on 'Calculate Shipping'.

That's when the error happens. As I mentioned earlier, everything works fine with USPS, but we need Canada Post since business is in Canada.

Leonard

 
New Post
6/25/2010 1:58 AM
 

Canada Post works a bit different then UPS and USPS. With Canada Post you have to configure your products and packages on the canada post site using your account. How have you configured your products/packages at canada post?


At your service,
Dave Smith
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
6/26/2010 3:52 PM
 

No I have not configured my products on Canada post. How do I go about doing that?

I went to their website it's not very intuitive, I didn't find anything related to CPC IP setting that is requested in the cart settings....

Any help would be greatly appreciated.

Leonard

 
New Post
6/28/2010 6:08 AM
 

I contacted Canada Post to create a Shipping Profile. This is the reply I got:

Hi,

In order to get started, I suggest you visit our Sell Online main page:

http://www.canadapost.ca/sellonline

On this page, click on "Integrate Shipping Module" -- (third option down) and make sure you download and read carefully the Implementation Guide and Architecture document.

Once you are ready to start testing, you can contact us again in order to create a shipping profile. The shipping profile allows you to update your contact information, shipping service and box sizes options.

In order to create your profile on our server, I will need :

COMPANY NAME (SAME NAME USED ON THE CPC CONTRACT):

POSTAL CODE :

MAIN CONTACT ( FULL NAME ):

TELEPHONE NUMBER (WITH AREA CODE):

CUSTOMER/VENTURE ONE NUMBER:

CONTRACT NUMBER (NOT REQUIRED FOR VENTURE ONE CUSTOMER):

To get the Customer and Contact numbers your customer would have to contact the Commercial Service Network @1-800-260-7678

Note: The Sellonline shipping module doesn't work with the E-bay and Yahoo Shopping carts.

Thank you for contacting the Sell Online Helpdesk Email address: sellonline@canadapost.ca

Phone: 1-866-511-0546

---

I'M ASSUMING THAT THE SMITH CART ALREADY HAS ALL THE ARCHITECTURE IMPLEMENTED. RIGHT? SO, I SHOULD BE READY TO START TESTING?

 
New Post
6/28/2010 1:06 PM
 

Yes our cart is integrated with Canada Post and I know of a few live sites that have it working. Once you have things configured correctly in your Canada Post account you should be able to get real time shipping rates in the cart.

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartCanada PostCanada Post