In Nopcommerce, I have added nuget package Install-Package Glimpse.MVC5 it's working fine for mvc,
when I add Install-Package Glimpse.EF6 & ADO it's throwing like
Unable to define EFProfiledDbProviderServices class of type
'GlimpseDbProviderServices'. Please check that your web.config defines
a section underneath .
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.Exception: Unable to define
EFProfiledDbProviderServices class of type
'GlimpseDbProviderServices'. Please check that your web.config defines
a section underneath .
I think this error is coming because of nopcommerce database is generating dynamically.But I was not able get any solution for this issue.
Please help me out of this
I solved this issue by removing minifier tool from my project, Actually minifier is overriding GlimpseDbProviderServices.
Related
I am running into below issue when I try configuring SPFX control on Modern Page, this particular control was working fine without any issue up until now.
Something went wrong
If the problem persists, contact the site administrator and give them the information in Technical Details.
Technical Details
[SPLoaderError.loadComponentError]:
***Failed to load component "11111111-2017-4bc3-9a39-18dfdd167e1b" (DocumentNavigationWebPart).
Original error: ***Failed to load entry point from component "11111111-2017-4bc3-9a39-18dfdd167e1b" (DocumentNavigationWebPart).
Original error: Error loading https://component-id.invalid/11111111-2017-4bc3-9a39-18dfdd167e1b_0.0.1
Cannot redefine non-configurable property 'startsWith'
***INNERERROR:
***Failed to load entry point from component "11111111-2017-4bc3-9a39-18dfdd167e1b" (DocumentNavigationWebPart).
Original error: Error loading https://component-id.invalid/11111111-2017-4bc3-9a39-18dfdd167e1b_0.0.1
Cannot redefine non-configurable property 'startsWith'
***CALLSTACK:
Error
at t._generateErrorStackForIE (https://spoprod-a.akamaihd.net/files/sp-client-prod_2019-04-19.008/sp-webpart-workbench-assembly_en-...)
at t (https://spoprod-a.akamaihd.net/files/sp-client-prod_2019-04-19.008/sp-webpart-workbench-assembly_en-...)
at t (https://spoprod-a.akamaihd.net/files/sp-client-prod_2019-04-19.008/sp-webpart-workbench-assembly_en-...)
It is a polyfill issue. Please add the below polyfill in the webpart.js file (link).
import 'core-js/es6/string';
I'm trying to run Heat Clinic 6.0.1 locally following getting started tutorial: https://www.broadleafcommerce.com/docs/core/current/getting-started/running-locally
I managed to run admin and site but not the API project. The application starts without problems but when I go to http://localhost:8082/api/v1/swagger-ui.html I get a 404. In the log I see this exception:
javax.servlet.ServletException: Circular view path [error]: would dispatch back to the current handler URL [/error] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)
Also trying to log in directly in the API with user broadleafapi and password gives 404.
My environment: Windows 10, jdk 8, maven 3.6
What's wrong? Can you help me? Thank you
Thanks for the report. I reproduced this and it looks like that with the update to Spring Boot 2.0, we did not appropriately override the updated property that specifies the servlet location to embedded Tomcat. Thus, when you went to /api/v1/swagger-ui.html, the application treats it exactly like that URL which is what gave the 404.
Setting the server.servlet.contextPath=/api/v1 property appropriately stripped off this path as part of the servlet context and resolved the 404.
I tested around a bit and was able to 'Authorize' the app (button at the top right of the Swagger page) with the credentials information that get spit out in the logs:
Basic auth configured with user broadleafapi and password: <<generated>>
then I was able to hit the API endpoints.
The changes you will need to make locally in your project to consume the fix are at https://github.com/BroadleafCommerce/DemoSite/commit/422d1cdc37f847afd8bec0be477ab784cbad2e9d#diff-991c59b6dbb0f619b8570d8f8779eaddR11. You will notice that I moved the original definition in default.properties over to common.properties and I recommend that you do the same. To be clear, follow these steps:
Delete the server.servlet.contextPath entry in `api/src/main/resources/runtime-properties/default.properties
Change server.servletPath in api/src/main/resources/runtime-properties/common.properties to server.servlet.contextPath
Thanks for trying out Broadleaf and the report, sorry for the rough early start!
I have followed [this][1] link to add swagger to my existing project. I encountered the following error while setting up swagger. Any leads will be highly appreciated.
:xxx\node_modules\swagger-node-express\Common\node\
swagger.js:84
self.appHandler.get(self.resourcePath.replace(self.formatString, self.jsonSuff
ix), resourceListing);
^TypeError: Cannot read property 'get' of null
[1]: https://github.com/shawngong/Swagger-Node-Express-For-Existing-APIs
This error is popping out because of -
var applicationUrl = 'http://localhost:9000'; //application runs properly on this url
swagger.configure(applicationUrl, '1.0.0');//error here
Looking at the line of code in question node-swagger-express it seems as if you need to call :
swagger.setAppHandler(app);
Before the configure call.
I specifically see the maintainer of the project you are using (https://github.com/shawngong/Swagger-Node-Express-For-Existing-APIs) has a commit message related to setAppHandler in his last commit. Perhaps there is now an issue related to it.
Can someone explain why this error occurs every time I have to log back in after a customization is published?
If I delete the Acumatica instance and re-create it, linking to the existing database - it then works fine. If it times out and I have to log in again, I get this error:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0117: 'PX.Data.PXLogin' does not contain a definition for 'EulaRequired'
Source Error:
Line 633: username :
Line 634: string.Format("{0}#{1}", username, company);
Line 635: if (username == "admin" && PXLogin.EulaRequired(fullname))
Line 636: {
Line 637: PXContext.Session.SetString("EulaRequired", fullname);
In your customization, are you including any of the PX*.dll libraries? If so you might be replacing the correct version needed for your site. Make sure the only dll file ins your customization are those that you created.
I'm not sure what was causing this, but I've deleted the instance of Acumatica, removed all my class library references in the customization project and started over. This seems to have solved the problem.
I'm developing a web application with ActiveWeb. I wanted to change the package from app.controller to be.coudron.graphplanner.controller
I created a file activewebproperties and placed it in src/main/resources
the contents of the file are:
freeMarkerConfig=be.coudron.graphplanner.config.FreeMarkerConfig
bootstrap=be.coudron.graphplanner.config.AppBootstrap
dbconfig=be.coudron.graphplanner.config.DbConfig
route_config=be.coudron.graphplanner.config.RouteConfig
controllerConfig=be.coudron.graphplanner.config.AppControllerConfig
rootPackage=be.coudron.graphplanner
When I start the app with mvn jetty:run
I get the error:
org.javalite.activeweb.ControllerException: controller must be
in the 'app.controllers' package
What am i doing wrong?
There are no typos in the code nor the package names.
the exception message is self-explanatory: "controller must be in the 'app.controllers' package"
The file activeweb.properties is part of the framework and not editable. With time, you will appreciate simplicity and consistency of the framework. It requires that controllers are placed into app.controllers package. Please, refer to http://javalite.io/structure_of_activeweb_project#location-of-controllers