Search

You searched for the word(s): userid:851813

Matching Posts

  • Race condition bug in MVC 2 RC

    Hello, After migrating our production environment from Preview 2 to RC (we had to skip Beta due to asynchronous implementation bug, which is resolved for RC) we started to record this exception: System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value
    Posted to ASP.NET MVC (Forum) by molesinski on 12/28/2009
  • Re: Race condition bug in MVC 2 RC

    I might build MVC RC from source with replacing Add method with indexer assignment and test it, but the bug seems so obvious that it might not be needed.I wanted to only report it. Also since its pretty rare thread interaction that has to occur for the exception to be thrown, its not a big issue at the moment.
    Posted to ASP.NET MVC (Forum) by molesinski on 12/28/2009
  • Possible error in Async implementation in MVC 2 Beta

    Hello, Recently we tried to update our medium volume ecommerce site to MVC 2 Beta, but encountered a problem with new asynchronous implementation. After publishing to production site, the application pool crashed with unhandled exception and stopped responding. In fact it was crashing almost immediately after publish and we had to revert back to MVC 2 Preview 2. Also few times same problem happened while working with builtin VS development web server. The exact error: An unhandled exception occurred
    Posted to ASP.NET MVC (Forum) by molesinski on 12/11/2009
  • Re: Secure folders and files in mvc

    I thought more about something like this: public class LogController : Controller { protected string DataDirectory { get { return (string) AppDomain.CurrentDomain.GetData("DataDirectory"); } } [Authorize(Roles = "ErrorReader")] public ActionResult Error() { var path = Path.Combine(DataDirectory, @"Logs\Error.log"); return File(path, "text/plain"); } } With this when user accesses path /log/error (assuming you still got default route present in your project
    Posted to ASP.NET MVC (Forum) by molesinski on 12/6/2009
  • Re: Secure folders and files in mvc

    My 2 cents would be, keep the files in App_Data where no web user can access them and serve files from actions on controllers, meaning accept file name or whatever as action method parameter, verify authorization rules either in code or declaratively via attributes and return File() result, you will find such functions on controllers out of the box. Maciej
    Posted to ASP.NET MVC (Forum) by molesinski on 12/5/2009
  • MVC2 Beta Html.ValidationSummary XHTML issue

    Hello, I am sorry, if I repeat already reported issue, but html helper method Html.ValidationSummary() generates not XHTML compliant code when client side validation is enabled and there are no model errors, meaning there is empty ul tag. <div class="validation-summary-valid" id="form0_validationSummary"><ul></ul></div> If client side validation is not enabled, neither summary div, nor ul tag is generated and there is no problem. Maciej
    Posted to ASP.NET MVC (Forum) by molesinski on 12/4/2009
  • Re: Missing async action patterns in Mvc 2 beta

    I must say I see the reason why delegate pattern is lacking when it comes to testability and that event pattern is vastly superior in that matter. In fact its enough to convince me to migrate to event pattern without hesitation and never look back . I am glad to hear about propagating parameters, that could really be handy. Also I think there is another bug in current asynchronous pattern implementation. Apparently AsyncManager.Parameters dictionary is not thread safe. So this code can randomly fail
    Posted to ASP.NET MVC (Forum) by molesinski on 12/4/2009
  • Request for URL generation extensibility

    Hello, As far as I know, every URL that is generated inside originates from within static method UrlHelper.GenerateUrl(routeName, actionName, controllerName, routeValues, routeCollection, requestContext, includeImplicitMvcValues) or the version accepting port and host name as well. Currently there is no way to influence results of those methods without actually abandoning every UrlHelper and HtmlHelper method that deals with URLs and implementing own extension methods mimicking default behavior,
    Posted to ASP.NET MVC (Forum) by molesinski on 12/4/2009
  • Re: Request for URL generation extensibility

    [quote user="CodeHobo"] Take a look at this http://geekswithblogs.net/shahed/archive/2009/02/14/129386.aspx For the most part the route engine generates routes (especially with links and form paths) as relative. So I don't think you will run into an issue with multiple domains as long as the controller and action names are constant (which it sounds like you have). I had a similar situation with 3 websites with different url's all pointing to the same webserver and serviced by the
    Posted to ASP.NET MVC (Forum) by molesinski on 12/4/2009
  • Re: MVC 2 Beta and Html.RenderAction Error CS0121

    It seems you havent updated Microsoft.Web.Mvc.dll to MVC 2 Beta assembly. You can get proper version from here . Maciej
    Posted to ASP.NET MVC (Forum) by molesinski on 12/4/2009
Page 1 of 7 (70 items) 1 2 3 4 5 Next > ... Last »