Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
var pptApplication = new ppt.Application();
var presentation = pptApplication.Presentations;
 
var pptPresentation = presentation.Open2007(DocumentURL, MsoTriState.msoTrue, MsoTriState.msoTrue, MsoTriState.msoFalse);



i am trying to load a presentation : DocumentURL is the Place where i kept my ppt (2003-2007).

but i am getting insufficient memory to continue the program execution error.

i tried various codes and methods to solve : but failed.

its working fine when i keep it local. when i host it i am getting this error.

Thanks in advance,
Vaidhya.P
Posted
Updated 6-Oct-15 22:15pm
v2

1 solution

Hm, that happens. You tried to create an application, got a subscription, uploaded the source, and now you have nowhere to do!

Before getting a subscription you must always consider checking the hardware resources being provided to you. Not just hardware, but network based resources. A few of the things that I must always check before even looking forward at their pricing are:

1. CPU that I can get
- Mostly, shared would do the work. But if dedicated, then I must know the CPU being used.
2. RAM amount.
- Get a minimum of 1 GB, go for 4 GB or 8 GB if your application needs more than 1 GB of space. Most hosting providers provide a space of like 256 MB, that is not enough; thus causes these problems that you are facing now.
3. HDD space
- Unlimited (preferred), 10GB+ (minimum)
4. Databases
- If I can pay that fortune cookie, otherwise I prefer JSON files and write the database engine myself. :-)
5. Bandwidth
- Bandwidth is used for upload and download data, make sure they give you a minimum of 50GB and can grow as your users grow.
6. Up-time
- 99%
7. Frameworks
- All frameworks that I need must be supported, I do not want to pay a fortune for every new plugin.
8. Customer support
24x7

These are just a few of those things that must be checked. Now, you create a program that works just perfecly on your machine, but doesn't on the hosting environment. Why? Because they do not provide it with enough RAM amount that it needs, (OutOfMemory tells that there is not enough memory to process everything).

There is only solution to this, contact the team and ask them to upgrade your service. You should consider getting more amount of RAM, the one that can work with your application. Upgrade other resources and always remember to first look at what service they provide, then look at their pricing. Paying 5 bucks extra should not be a problem, but having a downtime should be a problem for you.
 
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