Hello!
I have just started to work with the Infragistics.Documents.Word namespace.
I tried to create a simple document using the following code:
Dim doc as new Infragistics.Documents.Word.Document
doc.save(filename)
This code creates a file but it also generates an exception. The exception is of type
"The type initializer for MS.Utility.EventTrace threw an exception"
I have implemented code that creates some text inside the document but that isn't included when it is saved. So something is wrong.
I am creating these files on a server with special rules of accesscontrol.
I am pretty sure that this has something to do with the server settings and not the Infragistics tools, but with an
exception like that, I am totally lost.
Someone out there who understands the problem?
/Henrik
Hello Henrik,
Thank you for your feedback
Please do not hesitate to contact with us if you have any further questions on this.
Thank you for using Infragistics Controls.
Hello Miko!
Sorry for my late reply. I haven't had time to look at this problem since I am in the final stage of my project.
I will investigate when I have time and post you the feedback.
I am just checking about the progress of this issue. Let me know if you need my further assistance on it.
Thank you for using Infragistics Components.
I have researching your scenario very deeply, also I have discussed it with my senior colleagues and we found out that possible reasons for such behavior are:
1. During the installation the Excel assembly has been installed successfully, but not the Word assembly. Please can you uninstall Infragistics Components from your machine. Download the installer and install the latest version of Inftragistics components.
2. If step one does not resolve your issue please verify the security and permissions of your server. The exception you are receiving shows that probably System.IO.Packaging assemblies is trying to access the registry without the necessary permissions.
As we are not able to reproduce this behavior at our site we can only guess what the reason for this exception is.
Let me know if you have any further questions.
Both your tests work as the should, as well as the excel writer. But as you can see, the word writer fails.
The word file is created but if throws an exception. The stack trace can hopefully give you some clues...
/H