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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:07:29+00:00 2026-05-22T15:07:29+00:00

I have an MVC3 application which has a reference to DLL. This DLL is

  • 0

I have an MVC3 application which has a reference to DLL. This DLL is called up on exception. The DLL method which is called should return a viewname along with model.
Now the problem i am facing is

  1. I am not able to pass a model to a view from a DLL.
  2. The method which are used to pass a model like View() and RedirectToAction() are not accessible.
  3. The methods which are accessible are RedirectResult() and RedirectToRouteResult() which does not accept any model.

To Elaborate More.
I have an MVC application in a solution. In same solution i have an DLL in same solution. This DLL is used by MVC application. This DLL consists of a DLL reference of System.Web.MVC. Now i have a class with a method in the DLL as
public static ActionResult HandleException()
{
return ;
}
Here this method should use something like
return View(“SomeView”,SomeModel);
But this method (View()) is not accessible in a method of a class in DLL.

  • 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-22T15:07:30+00:00Added an answer on May 22, 2026 at 3:07 pm
    1. Yes, you can.
      Add a reference to the DLL in Web.config, the specify the type and namespace in @model.

    2. Your situation is unclear.
      You’re probably looking for the ViewResult class.
      EDIT:

      return new ViewResult {
          ViewName = "something",
          ViewData = new ViewDataDictionary(yourModel)
      };
      
    3. Classes aren’t methods

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

Sidebar

Related Questions

I am creating application in MVC3. I have a ConferenceController which has a Create()
I have a C#-4 MVC3 RC test-application which is using Entity Framework 4. I
I have an MVC3 and EF 4 Code First application, which is configured to
I'm a bit new to SSRS... I have an MVC3 application which I need
So I have this application in ASP MVC 3. My database has two tables:
I have a MVC3 application which follows PRG pattern, I am looking for a
I have an ASP.NET MVC3 application in which I am creating multiple areas, is
I have a website on with MVC, which has a dropdown in the masterpage.
I have a method attribute which expects several properties to be injected by Ninject
I have an action called Sessies. In this action i am creating 'Sessies' objects

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.