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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:41:02+00:00 2026-05-24T10:41:02+00:00

I am using the Mono Tools from mono-tools.org and when I try to run

  • 0

I am using the Mono Tools from mono-tools.org and when I try to run my ASP MVC3 project in mono using the mono menu, I get the following error:

enter image description here

Is there a way to set to compile using the .net 4 compiler? I have set targetFramework in the project file to v4.0.

I have also tried setting the command line argument on the mono-tools advanced page to be --with-profile4=yes which still results in the same error.

Output from mono –version

Mono JIT compiler version 2.10.2 (tarball) 
Copyright (C) 2002-2011 Novell, Inc and Contributors. www.mono-project.com
    TLS:           normal
    SIGSEGV:       normal
    Notification:  Thread + polling
    Architecture:  x86
    Disabled:      none
    Misc:          softdebug
    LLVM:          supported, not enabled.
    GC:            Included Boehm (with typed GC and Parallel Mark)
  • 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-24T10:41:03+00:00Added an answer on May 24, 2026 at 10:41 am

    The targetFramework attribute does not exist in this context — by the time your application configuration is examined, the runtime has already been started. It needs to know what framework version before it even reads your web.config.

    You need to handle this in your Apache configuration. See this question. You need to use the MonoServerPath Apache directive to tell Apache that the mod_mono hosting process is /usr/bin/mod-mono-server4 (or whatever the path is on your machine).

    If you are deploying with XSP then you’d have to run xsp4.

    (IIS is not special in this regard either — you have to assign your application to an app pool, and you have to explicitly set the runtime version for each pool you create.)

    Side note: If the tools you are using are adding this attribute to your configuration, this is a bug in that tool.

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

Sidebar

Related Questions

Hi I get an error running this code in mono tools? Unsure how to
I'm using JSONP to get data from a server. The more typical method of
I'm using Mono with GTK# and am trying to display an existing window as
I'm using Mono 2.4 on the Ubiquity web hosting service. I created a simple
My company are thinking about using Mono for an upcoming product, so we were
I'm using Core Audio / OpenAL to play CAF audio files. From Apple I
I am using mootools library to call webservices in an asp.net application. one of
How can we hide all list element from first form in following html structure
So I'm coming from a Python background and starting to get into C# and
I've recently begun doing ASP.NET MVC work with others using Visual Studio. While MonoDevelop

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.