5
votes
0answers
229 views
The Image Optimization Framework was not initialized
I am having this error The Image Optimization Framework was not initialized. Verify the sprites directory exists. After creating the directory, restart the site or application.
The error is in this ...
3
votes
0answers
151 views
ASP.Net MVC 4's WebAPI does not bind check boxes correctly?
I'm incorporating WebAPI into my development and am Posting all form submissions to a WebAPI controller. I've noticed that checkboxes are not getting bound to the model correctly. I have a form ...
3
votes
0answers
159 views
Scaffolding support in Sharp Architecture 2.0
have they dropped support for scaffolding in SA 2.0. i have downloaded the templify-project. I installed templify and created a solution but the project structure it created did not include tools and ...
3
votes
0answers
794 views
Custom Authorize Attribute (follow-up)
Ok following up with this thread, here's what I came up with...
public class SharweAuthorizeAttribute : AuthorizeAttribute
{
private bool isAuthenticated = false;
private bool isAuthorized = ...
2
votes
0answers
38 views
Hitting error: An instance of IControllerFactory was found in the resolver as well as a custom registered provider
We are hitting the following error in some of our environments, seemingly when the app pool recycles.
An instance of IControllerFactory was found in the
resolver as well as a custom registered ...
2
votes
0answers
85 views
TryUpdateModel fails only in unit tests to update child objects
I am able to get the following code to work on the server, but not in a unit test. In the unit test, the simple properties are set correctly, but the child objects are not. I've been beating my head ...
2
votes
0answers
358 views
How to bind new rows to ASP.NET MVC 4 WebGrid with Model on Client side and enable Validations (DataAnnotations) of the WebGrid on Client Side
I am working on ASP.NET WebGrid for displaying a Collection of objects and allow adding new objects to the collection.
On the view with Webgrid I have a Add button using which I dynamically add a new ...
2
votes
0answers
215 views
How do I post to another website with a SAML assertion in MVC3?
I have a SAML token formatted like so:
<saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" MajorVersion="1" MinorVersion="1" AssertionID="_341bea3b-f497-4a4f-adff-2bd65e44fd67" ...
2
votes
0answers
170 views
Authenticate against AD LDS
I've just installed AD LDS on my developer PC and everything works find, I've even created the user "abc" via ADSI Edit.
My goal is to test my ASP.NET Mvc 3 web application with my test AD LDS ...
2
votes
0answers
192 views
How to get the HTML of ASP.NET MVC 3 page into a QUnit test?
I've started using QUnit for testing the jQuery code of a certain page in my ASP.NET MVC3 application. So far I've provided a HTML-mock which the javascript-file under test uses. Is it possible to ...
2
votes
0answers
215 views
Nuget - Ability to specify which package dependencies to exclude from the package being added
My problem is this:
I have an ASP.NET MVC 3 website project which references many Nuget public packages. These packages provide some additional functionality to my project but are not mandatory for ...
2
votes
0answers
571 views
MVC 3 Scaffolding Error when running Scaffold Controller
I have installed MvcScaffolding without any issues but when I try to execute a scaffold request I get the error "DbContext.Task.t4" does not exist along with other files that are missing. I have a ...
1
vote
0answers
28 views
How to retrieve only an ASP.NET MVC3 Collection's Count without element properties
I am using ASP.NET MVC 3 to track hits on a set of stored links. I run into problems when displaying the hits' counts. I think this is because since I am using lazy loading, whenever I call
...
1
vote
0answers
42 views
ASP.NET MVC - ValidateAntiForgeryToken expiring
In a web page we provide a hyperlink (GET) that the User may click on to authenticate:
@Html.ActionLink("Please Login", "MyMethod", "MyController")
This maps to the following controller method ...
1
vote
0answers
35 views
Localization using resource files
I have a problem with resx based localization.
It's an ASP.NET MVC3 project. I have two assemblies: Web and Resource. Web contains all MVC related stuff, and Resource contains resx files for ...