StruggleBus
StruggleBus

Reputation: 21

I am getting an ambiguous reference error even though I am using fully qualified name

I have a cshtml file that references a class called SessionHelper, but two projects in the solution have a class called SessionHelper.

So I am using the fully qualified name when referencing it but still getting an error. Here is the code:

var type = RPracticeSite.Controllers.Helpers.SessionHelper.ProductType;

What am I missing here?

Upvotes: 1

Views: 206

Answers (1)

Igor
Igor

Reputation: 15893

You have the same cs file included in two different projects, whose assemblies are loaded in the same process.

Upvotes: 1

Related Questions