I am running into an issue when trying to deploy our project to an Azure development emulator. Is there something specific that we need to be doing in order to deploy to Azure? The code compiles normally and runs under IIS.
The project is using Windows Azure Tools version 2.1.
I've checked the project settings and the Kendo dll is being copied locally, so it should not be missing from the Azure deployment.
The exception is:
Microsoft.WindowsAzure.ServiceRuntime Critical: 201 : Role entrypoint could not be created:
System.TypeLoadException: Unable to load the role entry point due to the following exceptions:
-- System.TypeLoadException: Method 'Insert' in type 'company.SchedulerEventService' from assembly 'company, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
---> 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.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.GetRoleEntryPoint(Assembly entryPointAssembly)
--- End of inner exception stack trace ---
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.GetRoleEntryPoint(Assembly entryPointAssembly)
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.CreateRoleEntryPoint(RoleType roleTypeEnum)
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.InitializeRoleInternal(RoleType roleTypeEnum)
The implementation:
The project is using Windows Azure Tools version 2.1.
I've checked the project settings and the Kendo dll is being copied locally, so it should not be missing from the Azure deployment.
The exception is:
Microsoft.WindowsAzure.ServiceRuntime Critical: 201 : Role entrypoint could not be created:
System.TypeLoadException: Unable to load the role entry point due to the following exceptions:
-- System.TypeLoadException: Method 'Insert' in type 'company.SchedulerEventService' from assembly 'company, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
---> 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.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.GetRoleEntryPoint(Assembly entryPointAssembly)
--- End of inner exception stack trace ---
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.GetRoleEntryPoint(Assembly entryPointAssembly)
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.CreateRoleEntryPoint(RoleType roleTypeEnum)
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.InitializeRoleInternal(RoleType roleTypeEnum)
The implementation:
using Kendo.Mvc.UI;
using System.Data;
using System.Linq;
using System.Web.Mvc;
public class EventViewModel : ISchedulerEvent
{
//... getters and setters
}
public
class
SchedulerEventService : ISchedulerEventService<EventViewModel>
{
public
virtual
void
Insert(EventViewModel task, ModelStateDictionary modelState)
{
//... code emitted
}
public
virtual
void
Delete(EventViewModel appointment, ModelStateDictionary modelState)
{
//... code emitted
}
public
virtual
IQueryable<EventViewModel> GetAll()
{
//... code emitted
}
public
virtual
void
Insert(EventViewModel appointment, ModelStateDictionary modelState)
{
//... code emitted
}
public
virtual
void
Update(EventViewModel appointment, ModelStateDictionary modelState)
{
//... code emitted
}
}