8,423 questions
0
votes
1
answer
211
views
The controller for path '/' could not be found or it does not implement IController
I'm working on a Web Forms application and using EXT.NET framework for the views, i have a panel on the side with buttons that when i click on them, a view opens in a tab on the same page, like an ...
0
votes
1
answer
47
views
Suggestion with MVC2 DI and migrating a legacy system
I have an old legacy system (more than 10 years) made in MVC 2 with structuremap(2.6.1.0) as DI. We have begun migrating the back with nHibernate (also 10 years old) to entity framework core in a ...
0
votes
0
answers
95
views
The IControllerFactory 'Munq.MVC.MunqControllerFactory' did not return a controller for the name 'Home'
My client has legacy application based on ASP.NET MVC 2 Framework which runs well on WinSrv 2008 R2 VM. I've cloned this machine, changed IP, hostname etc. and this cloned machine was upgraded to ...
3
votes
0
answers
202
views
System.OutOfMemoryException when tried with 70 files SharpZipLib
I have tried zipping 70 pdf documents but ended up having a System.OutOfMemoryException.
Please look into the following code and let me know whats wrong with it.
Please note that I have posted issue ...
0
votes
1
answer
2k
views
Active Directory with multi factor authentication for an existing web application
Customer is asking for LDAP / Active Directory authentication along with OTP (one time password) / multi-factor authentication for an old existing web application written in (asp.net MVC2). Is this ...
0
votes
2
answers
688
views
How do I create an empty model to pass to an insert-update view when there are more than on model in the dbcontext?
I need to create an empty form for database update. In the controller this is called: public ViewResult Create() => View("Edit", new List());
<TargetFramework>netcoreapp2.2</...
4
votes
0
answers
57
views
How to use Google Calendar Api in .net MVC 2 using this sample https://developers.google.com/calendar/quickstart/dotnet
We have a legacy application which is written in .Net MVC 2 and required to use Google Calendar API. I have found this link which is mentioned prerequisites VS 2013 and above. Is there any way to use ...
0
votes
1
answer
160
views
Automatically add column to data table according to week
I'm working on a table that shows data per week. How can I automatically add a column after a week has passed by and show its data from the database? Thank you in advance.
MVC2
Jquery
1
vote
0
answers
172
views
asp.net mvc no <assemblies> in webconfig
I have an issue with one of my .ascx files, when I hover over a red <%=Html.BeginForm it says:
The type RouteValueDictionary is defined in an assembly that is not referanced. You must add a ...
-1
votes
2
answers
285
views
How to make use of the conditional statement in where clause?
Here is my below code
string CampusId = "1";
string ClassId = "1";
var Class = GetClassesselect();
var model = (from sr in db.StudentRequests
join c in db.Classes
on sr.ClassId equals c.ClassId
where ...
1
vote
2
answers
2k
views
MVC CORE 2.0.0 run c# code on every page
I need to run some c# code each time any page based on _layout.cshtml is viewed. I don't want to put something in every controller.cs file, just something central like you used to have in ASP.NET's ...
1
vote
1
answer
567
views
How to implement single sign on MVC 2 using ADFS?
I have MVC 2 application which has used in Windows authentication mode. The requirement has changed to that application needed to be on single sign one(SSO) in multiple active directories.The client ...
-4
votes
3
answers
3k
views
Mvc 5 pagination using view model
Hi i am newbie to Mvc i have a json service which returns a list of walletstatementlogs based on fromdate and todate. I have a controller TopUpReqLogController every time when i hit the action index ...
-1
votes
1
answer
397
views
expand a drop downlist when click on the more option
I have a dropdownlist and it contains a list of names and a 'more' option.When the user click on the more option,it will load more names from database and display those names in the dropdownlist.But ...
0
votes
1
answer
765
views
How to generate authentication token after FormsAuthentication success in mvc 2
I'm developing MVC 2 web application. I'm using FormsAuthentication for sign in users to my application. I want to generate an authentication token after users are successfully login to the ...
-1
votes
1
answer
66
views
ViewModel that is being posted back to the controller - all members are null?
I'm trying to post back the model to the controller, but the members within the ViewModel are null (rather than the entire model just being null). This is the View Model:
public List<...
0
votes
1
answer
117
views
MVC 2 - JavaScript array to controller is not working
I am working in MVC2 and .net framework 3.5
While trying to pass a single object to mvc controller it is working fine. But when I try to pass the value as an array, I'm getting property values as ...
1
vote
2
answers
41
views
MVC 2 EF 4.0 Proper way to handle edits for something like products
I have an exam on monday and i wanted to ask you if someone knows what would be the best way to handle edits in a ProductView for example.
More or less it's about the code within the ProductController....
0
votes
0
answers
640
views
Getting null values in asp.net mvc model when passing values through angular js
I have created model in asp.net mvc with constructor to create new guid id for ID field which inherits from base class. Now i pass values for two parameters of the model other than ID from html page ...
1
vote
0
answers
77
views
DefaultControllerFactory.RequestContext replacement when migrating from MVC1 to MVC2
I am migrating an old 3rd party project from MVC1 to MVC2, which I am not very familiar with. One of the documented breaking change in MVC2 is "Changes to the DefaultControllerFactory class break ...
0
votes
1
answer
882
views
Accessing Data attribute of html input control in MVC2 controller
I am submiiting a form from view which contains input field with specific data attribute
<form>
<input type="text" data-user="001" name="mytext" />
</form>
this from is submitted to ...
0
votes
1
answer
875
views
Open Modal Pop Up in Page Load MVC2
I am new to MVC. The project that I am working on is on MVC2. The current requirement is to open a modal popup after login. Basically after successful login, the user will be redirected to a landing ...
-1
votes
1
answer
1k
views
ASP .NET MVC 5 Video Conferencing
I know this question has been asked many times here but seems to be very old. Can you please help me to understand what are best approach ASP.NET MVC have to integrate video chat/conference in my ...
0
votes
1
answer
289
views
Compile ASP.NET MVC2 on Team City Build server
I have an old MVC2 project, which I am trying to move from an old cruise control CI server to our current TeamCity CI Server.
I'm getting screeds of build errors of the form:
Models\State\...
1
vote
0
answers
391
views
Sending Large file after converting to json to Action in MVC controller
I am reading a file in bytes using ReadAllBytes() method. Then convert these bytes to base64. Then send this base64 string as a part of JSON. On server side (which is MVC action) I receive the JSON ...