An Error Has Occurred On The Server...
by
, 2-May-2012 at 02:26 AM (13335 Views)
This blog was created to tell you what to do when you get this error while starting a Visual DataFlex web application in particular Electos Studio.
The error
An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.
What to do?
If you click any of the "here" links (they don't work in above text) you sometimes get useful information but not always. The shown error is the non-technical error message thrown by IIS to browser. You can configure IIS to throw the non-technical error or a more detailed error via IIS Manager. You can see this as a debugging option. The default from IIS is to show a non-technical error. To configure, open IIS Manager and navigate to the site or application that throw-ed the error. Double-click the ASP feature. In the list of ASP features open the debugging properties and set the setting "Send errors to browser" to True.
For Electos?
The specific error was shown when a user executed the "http://localhost/MyAppStudio" URL. After turning on the "Send errors to browser" feature the non-technical error was "The virtual directory for the Electos Studio had his 'Parent path enabled' setting turned off. This setting must be turned on for this component to work. Electos has changed the setting for you so you can use the Electos Studio.". After that the Electos Studio functioned correctly.
Exposure
Any web application - so not Electos only - might generate errors and it is up to you if you want to show the errors to the invoker or not. In general I prefer to see detailed errors and not hide information but turning on the IIS option might expose information that you better do not show to (malicious) visitors. It is up to you to decide. You can also turn it on to find the problem and turn it off again when the problem is fixed, so treat the option as a debug option.