AspNetHost not found

0
0

I’m sure this is something simple.

  • I’m a newbie ASP.NET developer, long time C# back-end developer.
  • Building a new WiseJ 2.5 app (porting a VWG app, actually).
  • App builds and runs in VS2019 with IIS Express.
  • Now working on publishing and distributions.
  • Published to a folder using VS2019 Publish feature.
  • Copied the contents of the publish folder, less the .PDB and unneeded .config files to a new folder.
  • Created a new web app in IIS rooted in that folder.
  • Browsed to the app with Brave browser.
  • The App works, but when I try to bring up a page that contains the Wisej.AspNetControl which hosts an ASP.NET ReportViewer control (using the sample here on the forums), I get the following error:

    Server Error in ‘/my-web-app’ Application.


    The resource cannot be found.

    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

    Requested URL: /my-web-app/Wisej.AspNetHost.aspx

     


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4330.0

Now, there’s no such file in the folder when running under IIS Express either, so presumably this file is being loaded from some kind of virtual path (IIRC, it’s actually embedded in a resource in the AspNetControl extension DLL).

So, what’s missing from my deployment that makes this magic trick not work in IIS?

  • Carl Daniel
    Explicitly registering the HttpModule doesn’t make any difference…. <add name=”WisejAspNetControl” type=”Wisej.Web.Ext.AspNetControl.HttpModule, Wisej.Web.Ext.AspNetControl” /> Which I suppose shouldn’t be surprising, since that’s not supposed to be necessary,.
  • You must to post comments
0
0

This appears to be a result of checking the “Precompile during publishing” checkbox in the publishing options.  Clearing that option but otherwise repeating all the original steps results in a working deployment.

  • You must to post comments
0
0

Hi Carl,

Could you please attach a small sample that reproduces the problem when published?

TIA,

Levie

  • Carl Daniel
    Maybe – I’ll see what I can do. I take it that this should “just work”?
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.