Exporting custom module to staging

Ashutosh Pandey asked on December 17, 2018 15:21

Hi, I'm new to Kentico and having difficulty in deploying my custom module from local to staging server. Here is what I did:

I created custom module named Companies with following two classes: Company, CompanyTemp The code is generated in App_Code\CMSModules\Companies directory Then I created a user interface with custom page for uploading recording using Excel (Default.aspx, Default.aspx.cs) Everything is working fine on local. I repeated the same steps at staging server but it is failing there (I think the Default class is not compiled). I am getting following error on enabling the debugging:

Runtime Error Description: An exception occurred while processing your request. Additionally, another exception occurred while executing the custom error page for the first exception. The request has been terminated.

I went through documentation about exporting and importing custom modules but find it difficult to understand. It select lots of objects from the list and not I need to figure out, which one to select.

My Questions:

  1. Do we need to upload compiled code for Default.aspx, Default.aspx.cs and simply cannot create on staging?
  2. How to see stack tract for debugging the page?
  3. I there a simpler way of exporting/importing single custom module?
  4. Should I use package installer instead? How to pick files from both App_Code\CMSModules and CMSModules\Companies?

Edit: I exported my module and imported in staging. Everything is disabled and it says, you cannot edit in imported module. Also, it is not allowing me to delete the module. It says you need to remove child (like classes, transformations etc.) first which are disabled and cannot be deleted :(

Please help,

Thanks

Recent Answers


Rui Wang answered on December 18, 2018 22:10

When it comes to exporting module, there is a check box which preset to "seal the selected modules". If you don't uncheck that, you won't be able to edit it once imported. (bottom of this document )

On thing you can try is to export the module with that box unchecked and import again to over write existing. Code files many not be included in the export, by default it's only virtual objects, so you will have to manually copy the code files over.

Image Text

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.