404 error when debugging an Aviarc application - aviarc

I open the Aviarc debugger and select my application from the list. I set a breakpoint in a workflow and then I Run to Next Screen, Workflow, Breakpoint.
I get a 404 error. My application works fine on it's own.

My application is only accessible from workflow urls. The root url is not operational hence the 404.
Instead of selecting my application from the list of apps I had to put the full url in the 'Url to debug' field on the initial debugger screen. Problem solved.

Related

Blazor webassembly with authorization fails with failed to fetch on blazor.boot.json

I added authorization to an asp.net hosted web assembly app. When starting the app it correctly starts to redirects to the login page but then only shows a white screen. In the javascript console I see error "failed to fetch" for blazor.boot.json. Firefox reports this as NS_BINDING_ABRORTED. Strangely running this in chrome reports the same javascript error but fiddler reports a 304. Worst is that this was working in the past and stopped working. I moved back many commits in the git repository of my project and none works, so it was not a recent change. I installed the code on a new machine and get same error there.
See attached screenshots:
There are two parts to my answer:
1.) The failed to fetch error still exists and I think it is a blazor bug as the authorization redirects so I think started request just get cancelled and this is not caught.
2.) The reason why I had a white screen was similar. CSS hides everything until my code sets it and it was a race condition if this was not finished before the redirect triggers, it never set the display value.
So posting this here if people get the "failed to fetch" error, that it seems to do no harm.

Web API URL from a asp.net website

I have a hyperlink in a Web Forms project and it's href is set to a web api call.
http://www.domain1.com/form.aspx has
Test
"houston" is the parameter.
I get a 404 error when I click on the link. When I debug my Web API 2 application using the link above, everything works fine. But the Web forms application cannot seem to find it. I have also tried:
Test
I have even tried:
Test
My project on "domain2" is in MVC Web API 2. What am I doing wrong? I'm missing something.
I'm not getting any data back in return or waiting for any event. It simply opens in a new tab and only needs the parameter and returns nothing back to the calling page. Is it a routing issue? TIA!
In this case, the route worked fine. The compiled dll was missing from the server, which is why it worked locally but when called from another website, the 404 error popped up. Once I copied the dll to the right folder on the server, everything worked fine.

Debugging an issue on an asp.net production server

I am attempting to debug an issue on asp.net production server. On production, when the hyperlink is clicked, it displays a pop-up window with a custom error message. There is no Try Catch Finally or any sort of error logging process currently on the server.
Given that my local version works perfectly fine, and that I am not allowed to access the production code files (being contractor), how should I go about debugging the error ?

How to implement a "Site under maintenance" page for JSP application running on OC4J

My JSP based wesite is already in production, running over OC4J (managed by opmnctl). When the application is down, users get a 500 error page. This is not a top-level domain, it is like:
http://localhost/myJspApp
How can I implement a 'welcome' page? it needs to show login screen if the application is running, otherwise show a 'Site Under Maintenance' message in case of OC4J being down.
I am sure it is not possible to use JSP on this welcome page when OC4J is down (altough it was desirable because application status is stored in a table, and it could be easily fetched from db using JSP).
If the OC4J is down, it means that you have no container to run your JSPs.
But, you can still return a nice error page from a different site or HTML. For doing that you need to configure the Apache HTTP server. This is done in the httpd.conf file, using the ErrorDocument part.
Look here for more details

How to make Asp.Net ignore my physical directory?

I'm creating my first FubuMVC application. I've got a physical folder Demo and a route that should handle the "/demo" url. For some reason, when I try to debug it in Visual Studio, it issues a permanent redirect to "/demo/", and then returns HTTP Error 404.20 - Not Found (No default document). When I route the same action to /demostuff, everything works just fine. I noticed that my application startup scripts are fired on the first request, but it's somehow not routed to Fubu's HttpHandler.
I'm using IIS Express.

Resources