Base solution for your next web application

Activities of "amwdrizz"

Here is a Gist of the stack trace [https://gist.github.com/amwdrizz/73bb6abb62f29bec404c96f10812fd0e])

I have tried adding DefaultDbContext to the CoreDBContext class, no change in operation. In fact that is the only thing that permits Core + Module to function. I apologize if I wasn't clear about that.

My current solution was to do the following.

Create generic role builder under core. Reference the core ef project from the modules. Then call the generic role builder from each module. This allowed me to drop the AbpZeroDBContext requirement from the sub-modules. Once I did that, the app launched with out error.

Still testing to ensure nothing else broke in the process, but it looks promising.

Answer

<cite>hikalkan: </cite> It seems related to EntityFramework. See <a class="postlink" href="http://stackoverflow.com/questions/10087508/the-magic-number-in-gzip-header-is-not-correct-make-sure-you-are-passing-in-a-g">http://stackoverflow.com/questions/1008 ... ing-in-a-g</a> for example.

That was the problem, thank you for catching that. Seems like the __migrationHistory table got corrupted some how. Soon as I truncated that table (emptied it), everything started working as it should.

Thanks.

Answer

<cite>hikalkan: </cite> Also, does your Modal implements IMustHaveTenant or IMayHaveTenant which may filter entities automatically.

That would be the problem, I glossed over adding the tenantid to the seed method. Thank you for pointing that out.

Showing 1 to 4 of 4 entries