Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
HI experts,

In my code I am creating excel file using OpenXml, in local environment it works fine(even with large data) but when I generate same file on production it gives me error like "Initialization failed" when excel data more than 100 KBs.

I searched on net and get solution like using IsolatedStorage but I am unable to find that how to enables IsolateStorage on Godaddy Server.

Please give a way come out from this issue. I am using Godaddy Server.

Thanx in Advanced
Posted
Updated 26-Mar-15 3:19am
v2
Comments
Sergey Alexandrovich Kryukov 26-Mar-15 10:11am    
Not enough information.
—SA

1 solution

Hi, I cannot be 100% sure, you really did not provide much information, but I believe your solution is not using the IsolatedStorage, you see your issue ("Initialization failed") occurs due to it.
Unfortunately you don't have a control over this, the OpenXML SDK uses System.IO.Packaging namespace which behaves in a way that when manipulating with the file that is bigger than some threshold size then it will begin to use IsolatedStorage using a user/domain store as a scratch pad area. To access IsolatedStorage your code must have the necessary privileges otherwise it will fail.

Also you should read the following Eric White post:
http://openxmldeveloper.org/discussions/formats/f/14/p/7288/162499.aspx#162537[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900