Composite C1 MVC Player - detailed error messages (including Stack Trace) - c1-cms

I am using the MVC Player in Composite C1.
On error all that is shown on the page is:
[Error]
I have enabled debug="true" in the web.config - it has no effect.
How can I display detailed error messages on the page?
I can find nothing about this on Google.
Thanks

C1 has a function to catch all errors and it writes out [Error] to the page with no other information.
What I do to find the error is open the C1 solution in Visual Studio, attach to the C1 process and then open the page. You will see where the error is as a result.
Also a further step is to put some extra logic in the function that handles the errors so you can have it logged somewhere useful.
An even further note - C1 often get's annoyed with non xhtml compliant characters. That has been the problem with the majority of our [Error] messages. Wrap things in CDATA or escape things like "&".
Hope that helps.

Related

toDerInputStream rejects tag type 123

I am trying to run the Get started with Datastore example at https://developers.google.com/datastore/docs/getstarted/start_java/ trying it both from the command line and from Eclipse.
In both environments, it is not able to connect to datastore and gives an I/O error message 'toDerInputStream rejects tag type 123'.
Looking around, this may be because the private key file is in json format and perhaps it should the p12 - other than that the error message draws a blank.
Could anyone point to something that would help me past this?
You need to use PKCS#12 format, as you said, p12. There's a few other people with similar errors (although they're trying to accomplish different things). I hope this helps, let us know if it resolves the issue.
Push Notification in Java expect p12 file
toDerInputSteam rejects tag 66

Can't catch 404 error in Composite C1

I've set up a multi language webapplication using Composite hostnames like it's mentioned here: http://docs.composite.net/Configuration/UrlConfiguration/Hostnames.
Now I would like to log which URL the user could not find. I am struggling to figure out how to do this. I've tried custom razor functions on my 404 page defined in Composite, but Request.UrlReferer is always null. The FileNotFoundHandler.ashx handler inside Renderers, never seems to be hit.
Any idéas?
Cheers
Jens
Try Request.RawUrl in the razor function.

Unable to Determine what causes VBA to fail when attempting to load a Form

Here is a full video explanation of the problem.
It begins by throwing up the Autocad Help for some reason.
Then Shows a message that says "Could not load an object because it is not available on this machine"
Then I get a message like this:
The first thing called by Autocad button is showWallTypeManagementForm()
Here is the Code that accompanies that Error Message in the Debugger:
Public Sub showWallTypeManagementForm()
frmWallTypeManager.Show
End Sub
or as a screenshot.
here is the form (frmWallTypeManager) that it is attempting to show:
As per your video, you are attempting to use a 32bit DAO.DLL with a 64bit OS. It is unfortunate but that is one of the DLL's that just cannot be used with 64bit Autocad. From the looks of your form, you are probably getting some information from a database with DAO. This will cause your errors.

To solve warning 'is never used' in WPF

I have declared an event in "Question" class as:
public event SectionAffected OnSectionAffected;
I have not used this event in the entire class.But I have used it in another class as:
Question.OnSectionAffected += new Question.SectionAffected(ResetDependentSection);
I am getting warning as:
The event 'QuestionManager.OnSectionAffected' is never used in Question class.
How to solve this warning?
A warning is just that... a warning. Having warnings is not necessarily a bad thing. However, if you really want to remove it, you can specify that in Visual Studio. If you open the relevant project's property page (by pressing ALT + Enter when the project is focused), turn to the Build tab. Click the RadioButton named Specific warnings and enter the specific error code(s) that you want to supress in a comma separated list. You can find out more from the How to: Suppress Compiler Warnings page on MSDN.
UPDATE >>>
I believe that you are looking for the numerical error code number... for this, you should look in the Output Window of Visual Studio. If you don't already use this window when writing WPF, then I would strongly advise you to do so. However, these codes are not always shown in this window.
As an alternative, you can find descriptions and error codes in the C# Compiler Errors and Code Analysis for Managed Code Warnings pages on MSDN.
UPDATE 2 >>>
After doing a quick search online (which is really what you should have done), I found this page which seems about right: Compiler Warning (level 3) CS0219

DotNetNuke Event Logging format

Using DotNetNuke 5.
I am using the EventLogController along with LogInfo to add custom messages to the event logs in dot net nuke.
Within LogInfo we have a method to Add a Property/Value. I am under the assumption that the Controller.AddLog(logInfo) converts the properties & vlaues into XML using the LogInfo->Serialize method for DNN to store it.
My problem is that I want linebreaks in my message. Is there anyway I can add a newline. "\r\n" wouldn't work, wouldn't work, CDATA escaped wouldn't work. Everything gets escaped through the Log function.
How do I pretty print the log message myself?
Regards, V
Sadly, due to the HTML encoding that is done on all messages, you are going to be out of luck trying to do this in the DNN event Log.
Depending on what/where you are, you have a few options.
You can add them as individual detail lines using properties, see my example below.
You could report on something yourself, using a custom log table or something similar
If you are in the context of a Scheduled Job, you can log to that history, which is NOT escaped.
Examples
Log Properties
objLog = new DotNetNuke.Services.Log.EventLog.LogInfo();
objLog.AddProperty("SecureMyInstall", "Phase 2 Error Processing User Accounts");
objLog.LogTypeKey = DotNetNuke.Services.Log.EventLog.EventLogController.EventLogType.HOST_ALERT.ToString();
objLogger.AddLog(objLog);
The content of the logs is displayed as HTML, so you should be able to put <br /> to add line breaks.

Resources