Courses / Events and Registrations App Bug

0

I have the same problem with a new system and it is a very old bug. Registration fail. https://github.com/2sic/app-events-and-courses/issues/1 I am looking for a workaround.

Thanks Thomas

I tried three diffrent systems but no success.

var course = AsDynamic(App.Data["Course"].List[Convert.ToInt32(Request.QueryString["cid"])]);

Error: System.Web.HttpCompileException (0x80004005): d:\home\site\wwwroot\Portals\43\2sxc\Courses_Course-Registration.cshtml(12): error CS0021: Cannot apply indexing with [] to an expression of type 'System.Collections.Generic.IEnumerable' at System.Web.Compilation.BuildManager.PostProcessFoundBuildResult(BuildResult result, Boolean keyFromVPP, VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetBuildResultFromCacheInternal(String cacheKey, Boolean keyFromVPP, VirtualPath virtualPath, Int64 hashCode, Boolean ensureIsUpToDate) at

2sxc
asked on Stack Overflow Jun 8, 2019 by ThomasN1 • edited Jun 8, 2019 by ross

1 Answer

0

I assume this is some very old code - because the List object changed in 2017. So first of all let's get you going:

Read this blog - it tells you what changed and how to fix it: https://2sxc.org/en/blog/post/fixing-the-breaking-change-in-2sxc-9-8-list-instead-of-dictionary

Since you installed a new system (that's what I understand), could you point me to where you got the code - so I can have the original fixed?

answered on Stack Overflow Jun 11, 2019 by iJungleBoy

User contributions licensed under CC BY-SA 3.0