Error Deployment to Azure

4 posts, 0 answers
  1. Paul
    Paul avatar
    2 posts
    Member since:
    Oct 2013

    Posted 31 Oct 2013 Link to this post

    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: 
    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
        }
    }
  2. Petyo
    Admin
    Petyo avatar
    2444 posts

    Posted 01 Nov 2013 Link to this post

    Hello Paul,

    From what I see, the error you are facing is not related to Kendo UI. Can you please try removing the assembly reference from your project and see if it persists? 

    Regards,
    Petyo
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Paul
    Paul avatar
    2 posts
    Member since:
    Oct 2013

    Posted 01 Nov 2013 Link to this post

    I removed the reference to Kendo.Mvc.dll from the project and added it back.  The problem still persists with the same exception.  In the debug output window I can see that the the Kendo.Mvc.dll was loaded, so it seems that the problem is not related to a missing dll.

  4. Petyo
    Admin
    Petyo avatar
    2444 posts

    Posted 04 Nov 2013 Link to this post

    Hello Paul,

    perhaps my previous reply was not clear enough. What I had in mind was to remove the Kendo UI Assembly reference and attempt deploying the project to azure without it, in order to verify if it was the reason for the error you experience. 

    Regards,
    Petyo
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top