我正在將ASP .NET 2.0 WebSite遷移到WebRole(ASP.NET 4.0和VS2010)。創建新的Web角色後,我將所有文件和文件夾從網站移到WebRole,然後引用所有需要的dll。我建立和運行網站角色立場,一切都好,沒有問題。但是,當我建立和運行WindowsAzureProject,下面的錯誤拿出Windows Azure - 無法創建角色入口點
[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造成的錯誤,但我不知道如何調試和捕捉它崩潰的地方
請幫助我在這種情況下。非常感謝併爲我可憐的英語感到遺憾
不,我沒有。即使我在WebRole類的OnStart()中放置了一個斷點,它也不會跳到那裏:( – 2011-01-06 03:51:25