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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T19:48:31+00:00 2026-05-10T19:48:31+00:00

I’m following the ASP.Net MVC TaskList example video and on clicking Run in Visual

  • 0

I’m following the ASP.Net MVC ‘TaskList’ example video and on clicking Run in Visual Studio (~14:00 min into the video) I’m getting the following error message in the browser:

Server Error in '/' Application.  Bad IL format. Description: An unhandled exception occurred during the execution of the  current webrequest. Please review the stack trace for more information  about the error andwhere it originated in the code.  Exception Details: System.BadImageFormatException: Bad IL format.  Source Error:  Line 12:         ' (2) URL with parameters Line 13:         ' (3) Parameter defaults Line 14:         routes.MapRoute( _ Line 15:             'Default', _ Line 16:             '{controller}/{action}/{id}', _   Source File: C:\Users\...\TaskList\TaskList\Global.asax.vb    Line: 14  Stack Trace:  [BadImageFormatException: Bad IL format.]    VB$AnonymousType_0`3..ctor(T0 controller, T1 action, T2 id) +0    TaskList.MvcApplication.RegisterRoutes(RouteCollection routes) in     C:\Users\...\TaskList\TaskList\Global.asax.vb:14    TaskList.MvcApplication.Application_Start() in     C:\Users\...\TaskList\TaskList\Global.asax.vb:23   Version Information:    Microsoft .NET Framework Version:2.0.50727.1434;    ASP.NET Version:2.0.50727.1434  

I’ve double-checked the code I’ve typed in, what am I missing?

Thank you!

Versions:

  • ASP.Net MVC Beta (16th October 2008)
  • Visual Studion 2008 (9.0.21022.8 RTM)
  • Vista Ultimate SP1
  • IIS 7.0.6000.16386
  • 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. 2026-05-10T19:48:32+00:00Added an answer on May 10, 2026 at 7:48 pm

    D’oh!

    Found the problem, it’s in the HomeController.vb:

    Public Class HomeController     Inherits System.Web.Mvc.Controller      ' Display a list of tasks     Function Index()         Return View()     End Function      ' Dislpay a form for creating a new task     Function Create() As ActionResult         Return View()     End Function      ' Adding a new task to the database     Function CreateNew(ByVal task As String) As ActionResult         ' add the new task to the database         Return RedirectToAction('Index')     End Function      ' Mark a task as complete     Function Complete()         ' database logic         Return RedirectToAction('Index')     End Function  End Class 

    the Function Complete() is missing the return type, it should read:

        ' Mark a task as complete     Function Complete() As ActionResult         ' database logic         Return RedirectToAction('Index')     End Function 

    Thanks for the suggestions, I guess I need to tripple-check my code next time!

    (though it would be nice if the compiler pointed to my code, rather than the Global.asax.vb, which made me think this was a configuration issue)

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

Sidebar

Ask A Question

Stats

  • Questions 81k
  • Answers 81k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer This is a bug in XAMPP 1.7.0. Upgrade to 1.7.1… May 11, 2026 at 4:32 pm
  • Editorial Team
    Editorial Team added an answer The provisioning profile contains a list of devices that are… May 11, 2026 at 4:32 pm
  • Editorial Team
    Editorial Team added an answer Basically, you need to stop propagation of events, using event.cancelBubble… May 11, 2026 at 4:32 pm

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.