aspnet-merge

“Bad binary signature” in ASP.NET MVC application

吃可爱长大的小学妹 提交于 2019-12-12 12:23:30
问题 I'm experiencing the same issue reported here: "Bad binary signature" in ASP.NET MVC application The ASP.Net MVC site works fine on the local machine, but when deployed using a combination of aspnet_compiler, aspnet_merge, and msdeploy, loading any page will fail with the following error: System.BadImageFormatException Bad binary signature. (Exception from HRESULT: 0x80131192) The accepted solution in the linked question suggests that the issue is caused by using the wrong version of aspnet

User Controls (asp.net, ascx-files) inside a C# class library, build error (aspnet_compiler.exe)

那年仲夏 提交于 2019-12-11 23:16:29
问题 Having trouble "passing" this error from ASPNET_Compiler.exe: error CS0103: The name 'TestMath' does not exist in the current context. The function called within TestMath from a user control (.cs) file, is outside of the context (scope/namespace/...). If I comment out the line that calls a method within TestMath the compilation works and so does my user control (referenced the DLL from within a WebApplication). The "TestMath"-class is a static class which contains one static method "Get",