Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 597613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:17:59+00:00 2026-05-13T16:17:59+00:00

I have a class ‘Job’ which takes 3 interfaces as paremters for depedency injection.

  • 0

I have a class ‘Job’ which takes 3 interfaces as paremters for depedency injection.

The first 2 interfaces live in the same assembly / class library as my Job class. The third interface lives in a seperate class library, part of the same solution and references by ‘project’.

I’m trying to write a unit test using Job_Accessor so that I can check a private field…

However, I get a compile time error – Error ‘Option Strict On disallows implicit conversions from ‘DataEntities.IDataAccess’ to ‘DataEntities.IDataAccess’. It’s complaining about the third parameter (the one that lives in the different class lib).

If I use just my Job class (instead of Job_Accessor) I do not get this error…

Is there an issue with the MS Test Project that when creating accessors, they only work acrross their own assembly? This error seems impossible to fix because it doesn’t make any sense – it’s complaining I can’t cast a type to it’s own type…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T16:17:59+00:00Added an answer on May 13, 2026 at 4:17 pm

    Answer has to do with the way assemblies are referenced, at least MS says. You have to play around with them and make sure they all use project type… evne then, this issue still creeps up now & again, and literally the only way to solve is to clean all, rebuild all, restart visual studio.. The issue doesn’t happen with MSBUILD – so as we get to doing automated builds, this issue will be gone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have class A, which exposes an event. an object of class B subscribed
I have class which implements Countable, ArrayAccess, Iterator and Serializable. I have a public
I have class with a member function that takes a default argument. struct Class
I have class A which has ISerializable implemented for custom serialization. Now i need
I have: class first{ private: int *array; public: first(int x){ array = new int[x][10];
I have class which has a method that needs to return three DataTables. I
I have class MyForm which inherited from QMainWindow . Here's my code: std::auto_ptr<MyForm> pForm(new
I have class(Customer) which holds more than 200 string variables as property. I'm using
I have class deriving from TextBox to which I attach a dependency property of
I have class Window. This class has method onClick which gets argument the id

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.