I found the following error in the log file and was wondering if this might be the reason:
Exception System.InvalidOperationException: An error occurred when trying to create a controller of type 'IndexesV1Controller'. Make sure that the controller has a parameterless public constructor. ---> System.ArgumentException: Precondition failed: The parameter 'p_ApiKey' must not be an empty string
Parameter name: p_ApiKey
My user is not locked (as suggested by one post https://connect.coveo.com/s/question/0D56Q00009XJX3mSAH/coveo-precondition-failed-the-parameter-papikey-must-not-be-an-empty-string)
Related
I have need in my Ember.js app to render a different component based on some piece of data. I've set this up via the component helper, like so:
<article class='awesome-article'>
{{component article-type}}
</article>
This works all fine and well, though naturally, if the article-type attribute doesn't match the name of any component in the application (which may happen due to fat-fingering), it gives us a nice, explicit error message:
Uncaught Error: Assertion Failed: HTMLBars error: Could not find component named "nonexistent-component" (no component or template with that name was found)
This is also great, but now I've got a smaller problem: I'd like to gracefully handle this error in the application, but I can't seem to figure out how to either catch or prevent this error. I've tried adding an error action to the parent component, but it skips right past it.
How can I go about handling this? This is probably one of those "missing something obvious" things, but my Google-fu has failed me this time.
You could create a handlebars helper that looks up if the component is registered in the container and based on this information you can display it or display some placeholder component.
If you are on at least Ember 2.3 you can use the public API they added: http://emberjs.com/api/classes/RegistryProxyMixin.html#method_hasRegistration
We have consumed a third party web service and are trying to invoke it from an winform application. However when I instantiate the web service the following System.InvalidOperationException exception is thrown:
System.InvalidOperationException was unhandled
Method notesservicev1.exportNotes can not be reflected.
The XML element 'GetNotesInfoRequest' from namespace
'http://www.excelacom.com/century/cm/notes/service/webservice/request/v1'
references a method and a type.
Change the method's message name using WebMethodAttribute or change the
type's root element using the XmlRootAttribute.
I got a link:
Method 'XYZ' cannot be reflected
But I am not getting what exactly I should do ?
After checking the above link I get the solution.
GetNotesInfoRequest is used by two Web Service methods as there RequestElementName. That's why I was getting the ambiguity.
Thanks :)
My Ember apps retrieves model objects from an API that can contain duplicates on successive calls.
I want to store my objects like this:
myController.store.createRecord('myModel', myModelObject).save()
Unfortunately, when a duplicate occurs, I get the following error in the console:
Error: Assertion Failed: The id XXX has already been used with another record of type MyApp.MyModel.
(fonction anonyme)ember.js:3866
I couldn't figure a way to recover gracefully from that error. I tried:
myController.store.createRecord('myModel', myModelObject).save().catch(myFailureCallback)
but the failure callback doesn't get called and the error is the same.
You could check to see if the record is already loaded into the store
http://emberjs.com/api/data/classes/DS.Store.html#method_recordIsLoaded
store.recordIsLoaded('myModel', myModelObject.get('id'))
Server Error in '/' Application.
Item "/sitecore/content/Home" is not a template.
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: Sitecore.Exceptions.InvalidItemException: Item "/sitecore/content/Home" is not a template.
Check your home item template. It should be inherited from Standard Template instead of Template.
It looks like you have selected the item "/sitecore/content/Home" as a template on your startItem (web.config) but it would be nice if you add some additional info!
I'm getting this error when I try to access BCD list in SharePoint 2010:
Error while executing web part: Microsoft.BusinessData.Infrastructure.BdcException: The shim execution failed unexpectedly - The type initializer for 'WK.JednostkaPolicjiService' threw an exception.. ---> System.TypeInitializationException: The type initializer for 'WK.JednostkaPolicjiService' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at WK.JednostkaPolicjiService..cctor() -
-- End of inner exception stack trace ---
at Microsoft.SharePoint.BusinessData.SystemSpecific.DotNetAssembly.DotNetAssemblyConnectionManager.GetEntityObject(IEntity entity)
at Microsoft.SharePoint.BusinessData.SystemSpecific.DotNetAssembly.DotNetAssemblySystemUtility.ExecuteStatic(IMethodInstance methodInstance, ILobSystemInstance lobSystemInstance, Object[] args, IExecutionContext context)
at Microsoft.SharePoint.BusinessData.Runtime.DataClassRuntime.ExecuteInternalWithAuthNFailureRetry(ISystemUtility systemUtility, IMethodInstance methodInstanceToExecute, IMethod methodToExecute, ILobSystemInstance lobSystemInstance, ILobSystem lobSystem, IParameterCollection nonReturnParameters, Object[] overrideArgs)
at Microsoft.SharePoint.BusinessData.Runtime.DataClassRuntime.ExecuteInternal(IDataClass thisDataClass, ILobSystemInstance lobSystemInstance, ILobSystem lobSystem, IMethodInstance methodInstanceToExecute, IMethod methodToExecute, IParameterCollection nonReturnParameters, Object[]& overrideArgs) -
The tricky part here is that I have a WebApplication with two zones:
Default (Cliams - Windows authentication)
Internet (Claims - Windows and Forms authenctication)
BCD lists in default zone are working fine but lists located in the site in Internet zone retruns above error.
In BCD I have set appropriate permissionss. I use windows account in both cases.
Where could be the problem?
Thanks in advance, Chris.
~Resolved: I had got wrong configuration of MembershipProvider in my site in IIS.