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 6776557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:02:37+00:00 2026-05-26T16:02:37+00:00

I have a function defined in a module called DataAccess like this module DataAccess

  • 0

I have a function defined in a module called DataAccess like this

module DataAccess
let getData() = 
    ["abc";"def"]

I’m then using an F# MVC controller to pull the data out like this

[<HandleError>]
type FitnessController() = 
    inherit Controller()

    member x.Index() =
        let data = DataAccess.getData() |> List.map(fun p -> p) |> List.toArray
        x.View(data) :> ActionResult

I get intellisense and all builds well, but when the web page pops up it says that the method does not exist

Method not found: 'Microsoft.FSharp.Collections.FSharpList`1<Models.Entity> DataAccess.getData()'.

When I take a look at the assembly in dotPeek it does show up as a static method that returns an FSharp list. Am I missing something obvious here?

(Ignore the fact that getData and the map function do nothing i’ve omitted the code for brevity, getData just contains record types that are marked as serializable, but I still get the error even when using strings as in the code example here) I should also say that this is MVC 3 with Razor C# pages.

  • 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-26T16:02:38+00:00Added an answer on May 26, 2026 at 4:02 pm

    Do you have DataAccess and FitnessController defined in the same assembly or different assemblies?

    If they are defined in different assemblies then this error is almost certainly caused by the assembly that contains FitnessController being compiled against one version of the assembly that contains DataAccess but at runtime a different version is loaded.

    This could happen for a number of reasons, the two that I can think of off the top of my head are:

    • a version of the assembly containing DataAccess is deployed to the gac. The .NET assembly loader always uses the version deployed in the GAC if it exists and it’s fairly easy for the version in the GAC to get out of sync with the latest development version.
    • the version of the assembly containing DataAccess isn’t being copied into the bin directory of the asp.net project when your code is compiled.

    Is this happen in your development environment or in production? If it’s in your development environment it should be fairly easy to debug, simple run the project in debug mode then use the Debug > Windows > Modules window to see where the two assemblies are being loaded from. Once you know that it should be fairly easy to see where the problem comes from.

    Alternatively it may just be easier DataAccess and FitnessController into the same assembly.

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

Sidebar

Related Questions

I have a function defined like this: public static void ShowAbout(Point location, bool stripSystemAssemblies
I have template function compare defined as below. #include<iostream> using namespace std; template<typename T>
Let's say we have a simple function defined in a pseudo language. List<Numbers> SortNumbers(List<Numbers>
I have an inline member function defined under class MyClass int MyClass::myInlineFunction(); This function
I have defined a function called is_logged_in? in a user defined library stored in
I'd like to call a custom function that is defined in a Python module
I have a module called nbemail.py and in this module I want to use
So I'm using zend framework and I have this code in a file called
I have a function pointer defined by: typedef void (*EventFunction)(int nEvent); Is there a
I have the following function defined inside my linked list class. The declaration in

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.