我正在将 ASP .NET 2.0 网站迁移到 WebRole(ASP.NET 4.0 和 VS2010)。创建新的 Web 角色后,我将所有文件和文件夹从网站移动到 WebRole,然后引用所有需要的 dll。我独立构建和运行网络角色,一切正常,没有问题。但是当我构建并运行 WindowsAzureProject 时,出现以下错误
[fabric] Role state Stopping
[fabric] Role state Stopped
[fabric] Role state Aborted
[fabric] Role state Teardown
[fabric] Role state Destroyed
[runtime] Role entrypoint could not be created:
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.CreateRoleEntryPoint(RoleType roleTypeEnum)
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.InitializeRoleInternal(RoleType roleTypeEnum)
和状态“操作已取消”
我需要几天时间才能解决,但什么也没找到。我确实将所有参考 dll 的“复制本地”设置为 true,但它也不起作用。我只是认为 spring.core 和 spring.aop 导致了错误,但我不知道如何调试和捕捉它崩溃的地方
在这种情况下请帮助我。非常感谢,对不起我糟糕的英语