Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
khushbu123
Frequent Visitor

PowerBIEmbedded_AppOwnsData Giving Error

After resolving error, Sample Example for PowerBIEmbedded_Appownsdata is working fine I can See my dashboard from Clicking Button but When Copied same code with reqired correction and added all required references and <appSetting> in web.config but when I run that code on my  DNN website it gives me below error, which I am not sure what is messing but I think Its not connected properly with web.config means there some confugration step is messing which is not mention. For Controller and services I copied the same code as sample example of powerBI.

 

 

DotNetNuke.Services.Exceptions.ModuleLoadException: An error occurred when trying to create a controller of type. Make sure that the controller has a parameterless public constructor. ---> System.InvalidOperationException: An error occurred when trying to create a controller of type. Make sure that the controller has a parameterless public constructor. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for '/Services.EmbedService' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object. at /Services.EmbedService..cctor() in - End of inner exception stack trace --- at Services.EmbedService..ctor() at End of inner exception stack trace --- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at

0 REPLIES 0

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.