Free Support Forum - aspose.cloud

System.Net.HttpWebResponse response = (System.Net.HttpWebResponse)req.GetResponse(); line throws an exception

Hi,
We are planing to use Aspose.Words for cloud for .net. I have downloaded sample application from aspose site and got key’s.

System.Net.HttpWebResponse response = (System.Net.HttpWebResponse)req.GetResponse();

This line doesn’t throw any exception with downloading application which is from aspose site

Once I implemented in my application (ASP.Net 4.0 framework) , it is throwning an exception like
'The remote server returned an error: (400) Bad Request’

can anybody help me out ASAP?


Note :
This code is not working with our .doc extension templates .we are generating mail merge documents using aspose. Merge tool and file contain images also. If i used those files which has images your sample application was throwing an exception

Thanks
Naidu

Hi Naidu,


Thanks for your inquiry. Could you please share your sample source code here in this thread? We will take a closer look and guide you accordingly. Please also try to use small size documents because using an evaluation account, you can upload files of size upto 1 MB. However, with our paid plans you can upload larger files.

Yes , may be the file size issue , I have gone through all my tested
documents which are having more than 1MB size ,those are throwing an
exception , which are having less than 1MB those are working fine

Thanks
Naidu