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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Lorenz33
Helper III
Helper III

Cannot embed a Power BI Report into a .NET MVC application

We are running Power BI Report Server (May 2019) on SQL Server 2016 Build 13.0.5366.0. The operating system is Windows Server 2016 version 1+07 (OS Build 14393.3085).

 

We are creating reports using Power BI optimized for Report Server (May 2019).

 

We have a .NET MVC application and are embedding a Power BI report into a Razor page using the following iFrame tag:

 

<iframe style="width:100%; height:400px;" src="http://samplereportserver/myreports/powerbi/env/thegreatreport?rs:embed=true" frameborder="0" allowFullScreen="true"></iframe>

 

When the appliation tries to access the report, it gets asked for login credentials. The account accessing the report does have browser permissions to the report. It appears that the credentials are not being sent across. How can a report be embedded in this environment without having the user prompted for credentials?

 

I see there is an embed option but it appears only available in the Power BI Service:

 

https://powerbi.microsoft.com/en-us/blog/easily-embed-secure-power-bi-reports-in-your-internal-porta...

 

Any advice or help would be greatly appreciated. Thanks.

 

0 REPLIES 0

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.