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

  • SEARCH
  • Home
  • 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 3751486
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:04:54+00:00 2026-05-19T09:04:54+00:00

Edit3: Sorry for the constant edits, I’m sure there’s a law which states progress

  • 0

Edit3: Sorry for the constant edits, I’m sure there’s a law which states progress is only made once you’ve publicly requested a solution.

I’ve opened the oracle assembly in Reflector. The assembly includes a reference to the both the v1.0.3705 mscorlib AND the 2.0.0.0 mscorlib…

It also references a Common.Logging assembly which targets the v1.0.3705 runtime.

This strikes me as at best odd. Anyone ever seen something like this before?

Edit2: Ok, created a WPF application against 3.5. Referenced my API library, added a line to call the code that declares a variable of an interface type declared in the Oracle library and it all works.

So the problem only occurs with Framework 4 applications. This makes a certain amount of sense to me as 3.5 is essentially 2 with some extra libraries. But I’m now confused as to why I can reference a 2 assembly in my 4 project and use its types, just not this Oracle one, and with an unhelpful error.

Edit: Seems to be an issue with the framework version. I’m suprised I haven’t encountered something like this before.

Here’s the new situation:
Added new Windows forms application set to Framework 2.
Added reference to Coherence DLL in GAC (It never appears in references under assemblies, is that bad?) using path.

Added button with line “INamedCache cache;” That’s it. compiled and run. All works fine.

Step 2, remove reference to coherence, add reference to my original API. Compile, all works fine. Remember the API is just running the line of code above.

Now, if I add a reference to the Windows forms application to my WPF application, and create a Form1, again, all the IntelliSense works, but when you compile it gives a “type or namespace not found”.

Again, remove the “INamedCache cache;” from the Form1 in the forms application (still referenced by the WPF application) and it all compiles again.

So my WPF Framework 4 application will consume my framework 2 windows forms application (with Forms 2 reference added of course) but if that forms application contains a reference to the oracle library AND declares a variable of an interface type declared in that library. boom, instant failure.

Original post here:

Visual Studio 2010.

I have a WPF windows app project and a class library. The class library references Oracle’s Coherence for .NET assembly. The class library has one class with one method which declares a variable of an interface type.

The WPF application has a button which calls this method. IntelliSense works fine.

When I try to compile I get the old “The type or namespace named ‘WhyAreYouNotWorking’ could not be found” error. I have a demo project which does run, I’ve copied the references from one to the other with no luck. I’ve added references to any supporting assemblies.

Also

public void Test()
{
    INamedCache cache;
    //CacheFactory.SetCacheFactoryConfig("coherence.xml");
    //CacheFactory.SetCacheConfig("cache-config.xml");
    //CacheFactory.SetPofConfig("pof-config.xml");

    //INamedCache cache = CacheFactory.GetCache("ians-cache");
    //Console.WriteLine(cache.CacheName);
}

Above you see the one method in my class lib. This lib will compile happily with all those lines commented or uncommented. The WPF application will only compile if I rem out ALL the lines.

So the problem here is the WPF application will not compile with a reference to the class library, if the class library includes code contained in the Coherence Oracle .net assembly.

I’m baffled. Slightly embarrassed and baffled 🙂

  • 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-19T09:04:54+00:00Added an answer on May 19, 2026 at 9:04 am

    Gotcha.

    WPF 4.0 application had defaulted to “.NET framework 4 Client Profile”. Switching it to “.NET Framework 4” resolved all the problems.

    Still don’t fully understand why.

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

Sidebar

Related Questions

IMPORTANT EDIT: Sorry everyone, i made a big mistake in the structure. char *name;
Is there a .net equivalent to the C++ unexpected()/set_unexpected() functionality? Edit: Sorry--I omitted some
Is there a way that I can only render the elements on the screen
Sorry for the brief title, I wasn't sure how to word this. Basically I
EDIT Sorry I forgot the most important part here. Each key can have more
EDIT: It does work (sorry). Something in this script is causing it to stop
Sorry for bumpy topic name (feel free to edit if you find more fitting
Edit: I am using SqlDataAdapters to fill the data sets. Sorry--I should have been
Edit: I fixed the problem by just starting from scratch. Sorry to waste y'alls
Edit: When I say SQL Server, I'm really talking about the Management Studio. Sorry

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.