Azure COM Objects

后端 未结 2 460
闹比i
闹比i 2021-01-02 13:20

I am trying to move a website I am hosting on a server with IIS over to an Azure web site. I\'m using a COM object but I\'m not sure if I can register this? I found some pos

2条回答
  •  执念已碎
    2021-01-02 13:48

    I had this exact problem registering legacy COM Components on Azure. I documented my methodology here:

    AspPDF and AspJPEG on Windows Azure

    Igorek is correct, you will need to use a Web Role to achieve this. The solution above is based on a single Web Role with a startup script to run regsvr32 as a startup task.

    To summarise, there are essentially two parts to achieving this. First create a batch file to run the regsvr32 command:

    chcp 1252>NUL
    regsvr32 /s .\library\my-com-class.dll
    exit /b 0
    

    Then define a startup task in your ServiceDefinition.csdef file:

    
    
    
    

    This will trigger the command file to run on deployment.

提交回复
热议问题