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 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

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I have a French site that I want to parse, but am running into
I would like to run a str_replace or preg_replace which looks for certain words
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I am currently running into a problem where an element is coming back from

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.