This is a migrated thread and some comments may be shown as answers.

Error Deployment to Azure

3 Answers 127 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 31 Oct 2013, 03:15 PM
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
    }
}

3 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 01 Nov 2013, 11:37 AM
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!
0
Paul
Top achievements
Rank 1
answered on 01 Nov 2013, 02:10 PM
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.

0
Petyo
Telerik team
answered on 04 Nov 2013, 05:19 PM
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!
Tags
General Discussions
Asked by
Paul
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Paul
Top achievements
Rank 1
Share this question
or