Questions tagged [asp.net-mvc-3-areas]

ASP.NET MVC and its related flavors since 2007 by Microsoft. It has come up MVC4 and it's still evolving. It allows to build applications based on Model View and Controller. It can integrate with View Engines such as Razor, Spark, etc.

  • JQuery Integeration, Fluiq Integeration
  • MVC Challenges in integration
  • View Engines
  • MVC related Patterns
163 questions
2
votes
2 answers

MVC Default Area Not working

I have a web site that had no areas registered. Then I registered an area called "MyNewArea". Now my default website links like blogs etc no longer work. So I now have an areas folder with a single area in it and the default folders when I created…
griegs
  • 22,624
  • 33
  • 128
  • 205
2
votes
3 answers

Multiple Forms Login Pages

I have an MVC3 site with an admin site and a public facing site. The controllers, views, models etc for these are in the same, single MVC project. They are separated thus: the admin site resides in an MVC3 Area called Admin and the public facing…
Sachin Kainth
  • 45,256
  • 81
  • 201
  • 304
2
votes
1 answer

Authentication for MVC3 areas

I am creating a mvc application with Areas. I Need to have different authentication method for these areas. I Usually use httpmodules for authentication, in the http module i check if the user is authenticated (i usually use cookies) and if not i…
Daniel
  • 2,331
  • 3
  • 26
  • 35
2
votes
2 answers

What is Best Practice concerning Models and Views?

I have been developing an application that uses Models that are based on a single USP/dbml and using ViewBags to populate the look up lists for data entry and edit views. This has been ok until I start to implement business logic. The Dropdownlists…
user1011441
  • 161
  • 2
  • 14
2
votes
2 answers

ASP.NET MVC] Route match but controller never called. -> 404

Hi everyone I have a problem with MVC3 routing and areas: My route matches but the controller is never called, instead i get a 404 error. I have set an MVC3 solution with 2 project: One is the main MVC Project: CityServices One for an area:…
Jeremy D
  • 465
  • 5
  • 21
2
votes
1 answer

in mvc3 razor i get error Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)

I am working on mvc3 razor application firstly my project was runing correctly but after replacement of system.web.mvc.dll and System.Web.WebPages.Razor files from mvc4 folder to mvc3 folder it will give following error while run it. Loading this…
andrina churia
  • 173
  • 1
  • 13
2
votes
1 answer

applying Jquery autocomplete on "Edit" button with set of default values

I have a web application built in asp.net MVC3, VS2010. My website displays a table of data with a set of columns and rows. I have just one "Create new" option on the whole web page which creates a new row on the table. And I have "Edit" options on…
sunskin
  • 1,620
  • 3
  • 25
  • 49
2
votes
2 answers

Session variables lost mvc

I have an MVC 3 application, it use asp validation when the user logs in the app the validadion succeed and sotore user name in a session variable. At here everithing works fine. then in the AccountController i Set a RedirectionToAction, to…
Juan Pablo Gomez
  • 5,203
  • 11
  • 55
  • 101
2
votes
1 answer

ASP.NET MVC 3 Routing issue in Area

I have a very strange routing issue. I have a ASP.NET MVC 3 site using areas. I have the following routes setup in the Assets Area: public override void RegisterArea(AreaRegistrationContext context) { context.MapRoute( null, …
2
votes
2 answers

Sequence contains no elements - no info in stack trace

Getting an error in my (at this stage) simple c# MVC3 (Razor) application, and I can't seem to find out what is causing the error below. [InvalidOperationException: Sequence contains no elements] System.Linq.Enumerable.Last(IEnumerable`1 source)…
kolin
  • 2,326
  • 1
  • 28
  • 46
2
votes
6 answers

My modelstate is always invalid even if there are no errors on the data entered by the user

Hi I have a method in my controller and has the following code if (ModelState.IsValid) { IDataOperations ops = DataSession.GetDataOperations(null); List dept = new List(); ops.Load(dept); ops.Commit(); …
1
vote
1 answer

ASP.NET MVC3 routing with areas not working only on deployment server

I have an Asp.Net MVC3 web applications, which uses Areas. When I run it from visual studio using IISEXPRESS everything is working just fine. But when I deploy the application to my test server, the application won't render any views which are…
rekna
  • 5,313
  • 7
  • 45
  • 54
1
vote
2 answers

display success message after deletion

I need to display a success message to user after the file has been deleted. dont know how to do it. please help. public ActionResult deleteGeneratedInvoice(string invoiceNumber) { try { string fileName =…
14578446
  • 1,044
  • 7
  • 30
  • 50
1
vote
1 answer

MVC3 Routing with Areas

I have a MVC3 application with two areas and a root area. The general structure looks like Root - Root/Areas/Manager * Views/Home/Index.cshtml * ManagerAreaRegistration.cs - Root/Areas/Participant * Views/Home/Index.cshtml *…
Anne
  • 1,253
  • 2
  • 10
  • 10
1
vote
1 answer

MVC3 Area +Authorize attribute + Role strange issue

I really don't know what title should I use to describe my problem. To simplify my problem. Here is my test. I create a mvc3 site from scratch. I then add area called "admin". Inside admin, I have a controller named "Search" and has "Authorize"…
Vincent
  • 482
  • 8
  • 21
1 2
3
10 11