Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
When ever i am generating the excel report then an authentication windows appear. and below is the message which i show in event viewer

CSS
Event code: 4011
Event message: An unhandled access exception has occurred.
Event time:  4/07/2013 4:25:19 PM
Event time  (UTC): 4/07/2013 6:25:19 AM
Event ID:  6a4bd3955f1d4d35bfb8f20a75c69236
Event sequence: 861
Event occurrence: 3
Event detail code: 0



Request information:
    Request URL: http://xyz.xyz.com.au/
    Request path: /xyzCommand
    User host address: 6.8#####
    User:
    Is authenticated: False
    Authentication Type:
    Thread account name: NT AUTHORITY\NETWORK SERVICE

Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Posted
Updated 3-Jul-13 21:09pm
v2
Comments
gssajith87 4-Jul-13 9:32am    
From where are you generating the excel Report ? Is it an application that generates Excel Report for you ? What are you doing exactly ? can you please eloborate !
siddharth629 5-Jul-13 0:32am    
sir,

I HAVE Url for application When i am generating excel from that then i am getting problem but when ever i am doing this on my system by running code (local host) then excel report generated easily



i am generating the excel report . when ever i m generating that on my localhost then it is generate successfully but when ever i m generating on remote server then a authentication windows appear.


theWorkbook.SaveCopyAs(fileName);
theWorkbook.Close(false, fileName, true);
byte[] data = ExportImportUtil.StreamFile(fileName);
File.Delete(fileName);
return data;


response.ContentType = "application/xls";
response.OutputStream.Write(fileContent, 0, fileContent.Length);
response.AddHeader("content-disposition", "attachment;filename=" + fileName);

and my excel templet is avaialble in resource forlder in my forject

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