Hi guys, I recently updated my SaaSGrid SDK to the latest one, but I've started getting this excpetion when I try to run the public website:
Unable to retrieve application information for the current request, if this problem persists please contact a SaaSGrid representative as there probably was an unexpected deployment issue with your archive. 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: Apprenda.SaaSGrid.TenantAccessException: Unable to retrieve application information for the current request, if this problem persists please contact a SaaSGrid representative as there probably was an unexpected deployment issue with your archive. 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: [TenantAccessException: Unable to retrieve application information for the current request, if this problem persists please contact a SaaSGrid representative as there probably was an unexpected deployment issue with your archive.] Apprenda.SaaSGrid.API.Local.PublicContextVerificationModule.BeginRequestHandler(Object sender, EventArgs args) +603 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
[TenantAccessException: Unable to retrieve application information for the current request, if this problem persists please contact a SaaSGrid representative as there probably was an unexpected deployment issue with your archive.] Apprenda.SaaSGrid.API.Local.PublicContextVerificationModule.BeginRequestHandler(Object sender, EventArgs args) +603 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
(Private website is working alright).
I noticed that if I comment out these lines
<add name="ContextInitModule" type="Apprenda.SaaSGrid.API.Local.PublicContextInitModule, SaaSGrid.API.Local"/><add name="ContextVerificationModule" type="Apprenda.SaaSGrid.API.Local.PublicContextVerificationModule, SaaSGrid.API.Local"/>
in web.config it runs alright.
The same error is occuring the public website of the 'FAQ Manager' project as well.
The value that is missing should be defined in your SaaSGrid.cfg.xml file. Can you verify that there is a versionId attribute on the saasGridLocal element in your file?
If that attribute is not defined, set it to a new Guid and try again with ContextInitModule and ContextVerificationModule in place.
To be clear, this is when running locally? Or was this on the live environment?
Locally...
Thanks... we'll investigate to confirm that everything is OK on our side and be back in touch with you shortly.
The sample application you are referring to (the FAQ Manager) has been updated to include the versionId attribute. Whether you download the new sample, or add the versionId as outlined above, you should be all set now!
That worked, thanks
Hi Paul,
After doing that I started to receive the following error:
In order to use this method you must define a concurrentSubscriptions element under the execution context section of your LocalSaaSGrid configuration file
I checked and I see that the section concurrentSubscriptions element has been moved on version 1.8 now its inside the ExecutionContext element, so I moved there, but I am still receiving the error like if it was not present.
do you have any suggestion?
Pedro Ramírez Developer at Scio Consulting