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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T03:23:41+00:00 2026-06-19T03:23:41+00:00

I am trying to convert this code, but getting some error this is the

  • 0

I am trying to convert this code, but getting some error this is the main link of the code.

I am getting these 2 errors:

Type “domainroute is not defined

and

‘optional’ is not a member of ‘system.web.UI.webControls.routeParameter’

Code:

public class HttpDomainRoute
  : DomainRoute
{
  public HttpDomainRoute(string domain, string url, RouteValueDictionary defaults)
      : base(domain, url, defaults, HttpControllerRouteHandler.Instance)
  {
  }

  public HttpDomainRoute(string domain, string url, object defaults)
     : base(domain, url, new RouteValueDictionary(defaults), HttpControllerRouteHandler.Instance)
 {
 }
}

to this asp.net vb 4

Public Class HttpDomainRoute

     Inherits DomainRoute

    Public Sub New(domain As String, url As String, defaults As RouteValueDictionary)
      MyBase.New(domain, url, defaults, HttpControllerRouteHandler.Instance)
    End Sub


    Public Sub New(domain As String, url As String, defaults As Object)
        MyBase.New(domain, url, New RouteValueDictionary(defaults), HttpControllerRouteHandler.Instance)
    End Sub
End Class
  • 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-06-19T03:23:43+00:00Added an answer on June 19, 2026 at 3:23 am

    This class seems to inherit from a class called DomainRoute. This is not a standard class that is part of the MVC framework so make sure you also have this class defined. Or at least reference the assembly where it resides. I guess you’ve taken it from here. So go ahead and include that class as well.

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

Sidebar

Related Questions

I'm trying to convert some C# code to VB but I’m getting an error.
I am trying to overload the c++ operator== but im getting some errors... error
I am trying to convert some vb.net to C#, but I keep getting errors.
I am trying to convert a date to datetime but am getting errors. The
I'm trying to convert this VBScript code to Python (Win32) code but with no
Trying to convert this c code into MIPS and run it in SPIM. int
I am using this code for on android just trying to convert string to
I am trying to scrap some content from a website but the code below
I'm trying to convert some VC++ 6 code to a console app using only
I keep getting the following error when trying to parse some html using BeautifulSoup:

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.