-
-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sitecore 10.2 - Type initializer exception when executing script via WebAPI #1318
Comments
Is there something you're using with that endpoint that could be shifted over to the SPE Remoting endpoint? |
I think technically we could use SPE Remoting, but chose WebAPI instead to restrict running any script, and run only ones that we have predefined. |
I'm curious if running the scripts through SPE Remoting encounters the same initialization error. Can you try something like this with SPE Remoting (and restfulv2 disabled)?
|
The issue I described happens from time to time after deployment, locally it was never a problem. |
@michaellwest we disabled restful2 and used remoting script like you shared above. Unfortunately that didn't help, we still experiencing the problem. Few things I've noticed. The restful2 and remoting was enabled on several Azure environments. Enabling of the services doesn't cause the issue itself. Only one environment has the issue above. That's the environment where we run package installation from Powershell regularly. So it seems like the package installation does something that causes the issue, but that's a guess. So the sequence to reproduce is the following:
|
Expected Behavior
restfulv2 service works as expected right after deployment.
Actual Behavior
Similar to: #982
Setup
Sitecore PowerShell Extensions 6.3.0.17327
Sitecore 10.2
Azure WebApp hosting
Steps to Reproduce the Problem
Steps to reproduce are similar to: #982
The text was updated successfully, but these errors were encountered: