Why is the example application throwing me the error: bug/1173575, non-JS module files deprecated? - autodesk-forge

came back to an application based off of this reference app after a little time away from it, but I'm now unable to run the application locally.
With both my version, and the base reference app, trying to connect to localhost:9000 throws me a screen saying "This site can’t provide a secure connection" and the error "crbug/1173575, non-JS module files deprecated."

According to this Stack Overflow post the crbug/1173575 error could be related to the port the application is trying to run on.
Regarding the Hyperion Reference App, we're currently in the process of simplifying it to a "leaner" app using just vanilla HTML/JS/CSS: https://github.com/autodesk-platform-services/aps-iot-extensions-demo. I'd suggest that you give this one a try.

Related

Database issues with deploying ASP.NET MVC web app in Azure

I have a web app published to Azure built in Visual Studio MVC. Many times after publishing updated files the app will fail when querying the database so it seems. For instance the home page will load fine but the app will crash when a link is selected that connects to my database. It is a MySQL database hosted remotely.
Here's the error for the deployed version:
I'm not sure how to interpret the error either and I've looked into enabling development mode in my app but as far as I can tell it is enabled.
Occasionally after a few restarts through Azure the app will start working fine and the app consistently works when I build and launch through Visual Studio. It leads me to believe this is an Azure issue conflicting with my data base setup.
It's making testing a real hassle and I don't have confidence the app/database will be up when I need it to.
Thank you for your help!
I think that you need to get the detailed error message to interpret the error.
To get the error message in azure, we can watch the diagnostic logs, about how to do this, we can refer to: Enable diagnostics logging for web apps in Azure App Service
We can also display the error message directly on browser. For example, if you are using ASP.NET core MVC, we can do as below:
Replace the below code of Startup class:
if (env.IsDevelopment())
{
app.UseBrowserLink();
app.UseDeveloperExceptionPage();
}
else
{
app.UseExceptionHandler("/Home/Error");
}
With:
app.UseBrowserLink();
app.UseDeveloperExceptionPage();
When the error occurs again, we can see the error message at browser directly

Getting the error, "The application cannot be installed due to a certificate..."

I'm getting the following error when trying to upgrade an application I wrote:
Sorry an error occurred
The application cannot be installed due to a certificate problem. The
certificate does not match the installed application certificate, does
not support application upgrades, or is invalid. Please contact the
application author.
Here is a screenshot:
I'm the application author. I recently created a new project and copied the old project files to the new location.
Is this due to that or am I possibly using a different certificate somehow? In the drop down list I have multiple entries pointing to same cert. I will try going through them but I'm wondering too if it's possible if anyone else has run into this issue.
I was using the incorrect cert. When I created a new project, Flash Builder preloaded certs from somewhere. They looked correct, however, the cert I was using was not in that list. So I opened the previous project and found a cert from that the project was using. After recompiling and attempting to update, the install went correctly with no error.

OpenShift PHP Image Asset Giving 500 Error

I have deployed a PHP website do an OpenShift PHP 5.4 Cartridge. The application loads just fine, CSS, JS, etc. but images do not load correctly. The images exist in the git repo which is being pushed to OpenShift just fine but when I attempt to access an image, say from http://someopenshiftapp/images/logo.jpg it fails with a 500 error.
The server log gives me:
/app-root/runtime/repo/images/.htaccess: Invalid command 'IndexIgnore', perhaps misspelled or defined by a module not included in the server configuration
I am trying to resolve this issue but so far google has not been able to help me. I tried editing the httpd.conf to include the module but that is a read only file. I may have to create a new cartridge from scratch? How do I serve images with OpenShift?
I don't know the exact reasons why Apache was behaving like this but it was. There was a robots.txt file disallowing all user agents in the image directory that another developer had added. This was causing the Apache installation to give a 500 error when attempting to access resources within the images sub-directory. If anyone has any further explanation I am willing to listen but for now this mystery is solved.
I may test this exact case in a stand alone Apache environment unrelated to OpenShift and attempt to reproduce this error. :) Happy Coding.

Intermittent MySQL Connection Error in Azure Website

I'm getting the following error intermittently when making a call from my ASP.Net MVC web application which is using Dapper to query MySQL.
Unable to connect to any of the specified MySQL hosts.
The exception only occurs when my web app is published to Azure. It has worked 100% of the time when I run the code locally. I've deployed the code to a second azure website, and also get the exception there, again intermittently.
The MySQL database is running on an Azure VM (Ubuntu). This server also has some R scripts that access the database, which are being run at a set interval. I've had no connectivity issue with these either. It is just the .Net code that's struggling.
I've scoured the web, but don't feel like I've turned up anything of value. Most of the links have pointed to a connection string problem, but since it works intermittently that doesn't seem to fit my problem. Some links have referenced DNS issues, but I'm getting the same problem when I use the IP Address instead of the machine name for the DNS server.
I'm sure I need to track down more information, but I'm not sure where it would be. This is my first foray into using a MySQL db in this fashion, and I'm not familiar with config options or log files on that side of things. I feel similarly about Azure websites with database interactions too.
What can I try next?
Just to drive home the point about this error being intermittent, here's a screenshot from the Runscope job that's hitting the page (thus triggering the MySQL query) every 5 minutes:
I was able to fix (or perhaps "circumvent") this problem by adding the --skip-host-cache flag to our mysql configuration file. I still don't fully understand what the root of the problem is, but we haven't had any issues with MySQL connectivity from the Azure website since adding that.

Java.security.AccessControlException :access denied error

I have copied files from server path to local path using signed applet with client/server socket programming. Its working fine, if I run Applet separately.
But its **not working, while accessing a applet in html. Its throw an error:
Java.security.AccessControlException :access denied (java.io.filePermission /home/user/file1.txt write)
Kindly advise me with examples for how to solve this issue? also Is it possible through jnlp concept?.
Emm...
Its working fine, if I run Applet separately
You mean you run it as a desktop app?
Is your applet signed?
If it is not signed do sign it; If the error still takes place please edit your question to point that;