Closed GoogleCodeExporter closed 8 years ago
Original comment by travis.illig
on 28 Oct 2013 at 11:31
[deleted comment]
After upgrade to 3.1.3 same problem:
public partial class Controls_SectorSeatsControl : System.Web.UI.UserControl
{
public List<SiteSectorSeatInfo> SectorSeats { get; set; }
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
var cpa = (IContainerProviderAccessor)HttpContext.Current.ApplicationInstance;
var cp = cpa.ContainerProvider;
cp.RequestLifetime.InjectProperties(this);
}
}
but when I change List to IEnumerable it works.
.net 4.5, autofac 3.1.3, 3.1.1 worked fine
Original comment by hackfaq
on 29 Oct 2013 at 3:54
This issue was closed by revision f6f3bd5e8a39.
Original comment by alex.meyergleaves
on 29 Oct 2013 at 8:39
I have pushed the Autofac 3.1.4 package to NuGet.
Original comment by alex.meyergleaves
on 29 Oct 2013 at 8:44
Unfortunately 3.1.4 still has issues. I've attached an updated version of my
sample. If I have a List<object> as a property on the object that is passed to
InjectProperties(), I get the same error as before:
Unhandled Exception: System.ArgumentException: Object of type 'System.Object[]'
cannot be converted to type 'System.Collections.Generic.List`1[System.Object]'.
Original comment by jason.bo...@gmail.com
on 29 Oct 2013 at 1:06
Attachments:
I just did some clean up moments before you posted this and found the exact
same issue. Do you mind grabbing the latest NuGet package from the MyGet CI
feed and giving that a quick test?
https://www.myget.org/Package/Details/autofac?packageId=Autofac&packageVersion=3
.1.4-CI-030
I can push another package to nuget.org if it looks alright.
Original comment by alex.meyergleaves
on 29 Oct 2013 at 1:25
Yep, that 3.1.4-CI-030 worked.
Original comment by jason.bo...@gmail.com
on 29 Oct 2013 at 2:26
Pushed 3.1.5 with the additional fixes to the NuGet.org gallery.
Original comment by alex.meyergleaves
on 29 Oct 2013 at 2:29
Original issue reported on code.google.com by
jason.bo...@gmail.com
on 28 Oct 2013 at 4:57Attachments: