Forum Discussion

Markzolotoy's avatar
Markzolotoy
Impactful Individual
5 years ago

Getting started with Power BI embed

I have registred my application (went with all defaults except the app name). At the end I dowloaded a sample application:

https://app.powerbi.com/embedsetup/AppOwnsData?session_id=be60698f-5b62-435a-a74e-aef4f3060e91

 

I opened it in VS and built it. clicked run and gt this:

Server Error in '/' Application.


Could not find a part of the path 'C:\PowerBI\App Owns Data\PowerBIEmbedded_AppOwnsData\bin\roslyn\csc.exe'.

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.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\PowerBI\App Owns Data\PowerBIEmbedded_AppOwnsData\bin\roslyn\csc.exe'.

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:

[DirectoryNotFoundException: Could not find a part of the path 'C:\PowerBI\App Owns Data\PowerBIEmbedded_AppOwnsData\bin\roslyn\csc.exe'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +373
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +738
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +68
   Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.get_CompilerName() +91
   Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.FromFileBatch(CompilerParameters options, String[] fileNames) +658
   Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames) +186
   System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile(CompilerParameters options, String[] fileNames) +25
   System.Web.Compilation.AssemblyBuilder.Compile() +985
   System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +10227426
   System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +10116498
   System.Web.Compilation.BuildManager.CompileGlobalAsax() +47
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +274

[HttpException (0x80004005): Could not find a part of the path 'C:\PowerBI\App Owns Data\PowerBIEmbedded_AppOwnsData\bin\roslyn\csc.exe'.]
   System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +65
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +458
   System.Web.Compilation.BuildManager.CallAppInitializeMethod() +35
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +605

[HttpException (0x80004005): Could not find a part of the path 'C:\PowerBI\App Owns Data\PowerBIEmbedded_AppOwnsData\bin\roslyn\csc.exe'.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10083304
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +99
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +263

Since I am learning I have no idea whta this is. Any help?

 

Thanks

 

12 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Markzolotoy After looking at the error- Could not find a part of the path 'C:\PowerBI\App Owns Data\PowerBIEmbedded_AppOwnsData\bin\roslyn\csc.exe'.

     

    Looks like some folder path is missing. Have a look at that.

     

    Appreciate your kudos!! Mark this post as solution if it helps.

      • Anonymous's avatar
        Anonymous
        Not applicable

        And that's why you are getting the error.

        Try to locate the folder where the exe resides.

        Or may be the install was not completed successfully. Try re-installing.

         

        Appreciate your kudos!! Mark this post as solution if it helps.

    • Markzolotoy's avatar
      Markzolotoy
      Impactful Individual

      V-lianl-msft Also going through documentation I see that I will have to create a tenant. I have a Pro license from my company. Will I be able to create a tenant for my developement and testing?