1
Exception error on view ppt or pptx file via documentViewer
Problem reported by Liang Liu - September 6 at 8:40 PM
Being Fixed
Hi,
I purchased DocumentUltimate and use it in my website. When view a ppt or pptx file via documentViewer, it is crashed.
 
The exception message as below:
Error
“_pEc”的类型初始值设定项引发异常。
---> “_XyE”的类型初始值设定项引发异常。
---> “_XyE”的类型初始值设定项引发异常。
---> “_b1E”的类型初始值设定项引发异常。
---> “_b1E”的类型初始值设定项引发异常。
---> “_ADF”的类型初始值设定项引发异常。
---> “_ADF”的类型初始值设定项引发异常。
---> 未将对象引用设置到对象的实例。
 
I'm sorry the message is Chinese, so I transfer to English via translation software as below
 
The type initializer of _pEc causes an exception.
The initial value of "_XyE" type I set a exception.
The initial value of "_XyE" type I set a exception.
The initial value of "_b1E" type I set a exception.
The initial value of "_b1E" type I set a exception.
The initial value of "_ADF" type I set a exception.
The initial value of "_ADF" type I set a exception.
The object reference is not set to an instance of the object.
 
 
There are some information need to let you know:
1, I try it on few servers, just crashed on only one server, other servers are successed.
2, All of server's OS is Windows Server 2008 R2 Enterprise.
3, On the problem server, it will be crashed when view all of ppt or pptx file, not specific file.
4, On the problem server, view all of file except ppt(x) is success. 
5, Already update to version 3.5, the problem still exist.
6, Fonts are the same on all of server.

1 Reply

Reply to Thread
0
Cem Alacayir Replied
September 7 at 3:59 AM
Employee Post
Hi,
I suspect this error may happen due to different culture of the server (Windows Culture). Please add the below setting in your web application's Web.config file:
 
<system.web>
    <globalization culture="en-US" />
</system.web>
Basically we are forcing English culture and overriding the server's default culture (e.g. Chinese). If it works with this setting on the problem server, then it proves the error is related to culture.
 
Note that I can not replicate the error when I override culture with Chinese on an English server . It seems it only happens on a Chinese server. It may be related to .NET Framework version (e.g. unpatched .NET 4.0, the last patch was .NET 4.0.3) or the localization packages included in non-english Windows installations.
 
Let me know your findings and we will fix it.

Reply to Thread