kylewest / DotNetShipping

UPS, FedEx, USPS shipping rate calculators for .NET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"rates" is ambiguous?

dotNetNoob opened this issue · comments

Hi: Sorry for the noob question, but I'm trying to follow your sample and I'm getting a compile error in VS2012:

Error 1 'Rates' is ambiguous because multiple kinds of members with this name exist in class 'DotNetShipping.Shipment'.

When I let intellisense pull up the methods for "shipment", "rates" is not in there? Here's a screencap of my code:

untitled-1

I fixed this ... get the latest and change rates to Rates.

Kyle

Thanks Kyle!

It happens to me with the new version and using FedEx

I had this problem in one of my MVC project. My EF Entities reflected the table name Shipment and Rate from my database. This came in conflict with the class name from the DotNetShipping project and just like you it gave me the ambiguous error. In C# you can easily fix in 2 way:

  1. Adding the full reference path namespace.class when calling the class. ie: DotNetShipping.Package
  2. In your namespace declaration you can add : using DotNetShippingPackage = DotNetShipping.Package.