question

johnjohn-0472 avatar image
0 Votes"
johnjohn-0472 asked MichaelHan-MSFT answered

Unable to deploy remote event receiver inside azure web app

I deploy a sharepoint remote event receiver which containa SVC service inside, but when i try to access the service using the service url i got this exception:-

 Server Error in '/' Application.
 The type 'RiskManagementRERWeb.Services.RER1', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.
 Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    
 Exception Details: System.InvalidOperationException: The type 'RiskManagementRERWeb.Services.RER1', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.
    
 Source Error:
    
 An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    
 Stack Trace:
    
    
 [InvalidOperationException: The type 'RiskManagementRERWeb.Services.RER1', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.]
    System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +57321
    System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +1489
    System.ServiceModel.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) +53
    System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +666
    
 [ServiceActivationException: The service '/Services/RER1.svc' cannot be activated due to an exception during compilation.  The exception message is: The type 'RiskManagementRERWeb.Services.RER1', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found..]
    System.Runtime.AsyncResult.End(IAsyncResult result) +513025
    System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +182
    System.ServiceModel.Activation.ServiceHttpModule.EndProcessRequest(IAsyncResult ar) +365683
    System.Web.<>c__DisplayClass11_0.<InvokeEndHandler>b__0() +34
    System.Web.StepInvoker.Invoke(Action executionStep) +107
    System.Web.<>c__DisplayClass4_0.<Invoke>b__0() +23
    Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule.OnExecuteRequestStep(HttpContextBase context, Action step) +64
    System.Web.<>c__DisplayClass284_0.<OnExecuteRequestStep>b__0(Action nextStepAction) +56
    System.Web.StepInvoker.Invoke(Action executionStep) +91
    System.Web.AsyncEventExecutionStep.InvokeEndHandler(IAsyncResult ar) +123
    System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +9930149
    
 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4261.0


any advice?


office-sharepoint-online
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MichaelHan-MSFT avatar image
0 Votes"
MichaelHan-MSFT answered

Hi @johnjohn-0472,

Here are some articles to deploy the remote event receiver, hope that helps you.

https://www.tatvasoft.com.au/blog/how-to-implement-remote-event-receiver-in-sharepoint-online/
https://www.c-sharpcorner.com/article/deploy-sharepoint-remote-event-receiver-to-microsoft-azure2/

Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.