Hi,

If you got this below error on your code,

Office has detected a problem with this file. To help protect your computer this file cannot be opened.

Here you can find the solution to avoid such errors.


Just add this below line when you are initializing excel application.

if you set it to msoFileValidationSkip before the Open statement, it should bypass the file protection check.

excelApp.FileValidation = MsoFileValidationMode.msoFileValidationSkip;


Recently I worked with one of my project. When I hosted into live server I felt the connection would be very slow..Also sometimes I got this type of error. Pages loading would be slow..
Regarding thi issues I posted and searched many sites…But I can find the proper reason for this issues. In many cases they said increase the connection time out, but it will never workout for me……..
One of my friend said the solution for my problem. Its in database option..If you have come across this issues..
Open your database properties and click option menu in the properties
Change the autoclose as false. My database its in true then I changed into false..
Afterwards I never get the error, also site speed also increased. For an every database settings the default option autoclose as false…




I hope this article would help to solve these issues…..



Hi..

Recently I used chart control in one of my project.when local its working perfectly.when I move to server it shows an error messageas show below…..

Invalid temp directory in chart handler configuration [c:\TempImageFiles\].
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.IO.DirectoryNotFoundException: Invalid temp directory in chart handler configuration [c:\TempImageFiles\].

Source Error: 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below

To Resolve:

Then I replaced a particular line line in web.config file..
From this:
  <add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" />

To this one..
<add key="ChartImageHandler" value="storage=file;timeout=20;/>

Then the error will be resolved……..
I hope you find something useful.. 

If you got this error then import namespace...Recently i got this error when i am doing project...

using System.Collections.Generic;


I hope someone need this one............

5:14 AM

Solution:invalid formatetc structure

Posted by vijay


Hi.
.Recently I worked with my one latest project ..In this one I opened to source files I worked on it…when I was busy In coding I opened at a time two file..I copied one source code and paste it another one..including ajax control..
Suddenly what happen when I drag one new ajax control from menu  its shows an error like invalid formatetc structure.
I opened and closed the project against it shows an same error.i cann’t any new ajax control in my project.
Solution:

Finally I removed all the ajax control  then I added again all the ajax control using dll file..Then its work fine…..