Click here to Skip to main content
15,924,828 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questioncreating charts Pin
alhomed4430-Jul-07 5:02
alhomed4430-Jul-07 5:02 
AnswerRe: creating charts Pin
alhomed4430-Jul-07 5:03
alhomed4430-Jul-07 5:03 
AnswerRe: creating charts Pin
Christian Graus30-Jul-07 11:25
protectorChristian Graus30-Jul-07 11:25 
AnswerRe: creating charts Pin
Paul Conrad30-Jul-07 14:22
professionalPaul Conrad30-Jul-07 14:22 
GeneralRe: creating charts Pin
alhomed4431-Jul-07 0:22
alhomed4431-Jul-07 0:22 
GeneralRe: creating charts Pin
Paul Conrad31-Jul-07 3:03
professionalPaul Conrad31-Jul-07 3:03 
QuestionReportViewer Heigth Pin
Nimua30-Jul-07 4:33
Nimua30-Jul-07 4:33 
QuestionError while Reading excel file. Pin
vaminfosys30-Jul-07 3:55
vaminfosys30-Jul-07 3:55 
Hi all,

I am making oledb connection for reading excel file.
when this code is executed from the server which has this code then every thing is
ok but when this code is executed from other computer in a browser,
error occured related to opening the connection.

error message is:
-----------------

objEx {"The Microsoft Jet database engine cannot open the file 'C:\\Documents and
Settings\\lc\\Desktop\\CommissionReports\\Latestfiles\\latest
files\\Download0507tu.xls'. It is already opened exclusively by another user, or
you need permission to view its data."} System.Exception
{System.Data.OleDb.OleDbException}


BUT file is not opened by any other user.Every PC other than server(where code exists) gives this error message.
Server(where code exists) executes the code successfully.


code looks like:
----------------

string connection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= "+ path1 + "
;Extended Properties=\"Excel 8.0;IMEX=1;\"";

OleDbConnection con = new OleDbConnection(connection);

string str1 = "select * from [" + sheetName + "$]";
OleDbDataAdapter adp = new OleDbDataAdapter(str1, con);

ds = new DataSet();
adp.Fill(ds);


Please give suggestion for this problem.


QuestionMaster Page Issue Pin
Mahesh.J30-Jul-07 3:33
Mahesh.J30-Jul-07 3:33 
AnswerRe: Master Page Issue Pin
Guffa30-Jul-07 4:25
Guffa30-Jul-07 4:25 
AnswerRe: Master Page Issue Pin
Nimua30-Jul-07 4:27
Nimua30-Jul-07 4:27 
QuestionImage Combo in ASP.NET 2.0 Pin
sabyasachi_m30-Jul-07 3:07
sabyasachi_m30-Jul-07 3:07 
AnswerRe: Image Combo in ASP.NET 2.0 Pin
N a v a n e e t h30-Jul-07 3:11
N a v a n e e t h30-Jul-07 3:11 
GeneralRe: Image Combo in ASP.NET 2.0 Pin
sabyasachi_m30-Jul-07 3:16
sabyasachi_m30-Jul-07 3:16 
GeneralRe: Image Combo in ASP.NET 2.0 Pin
N a v a n e e t h30-Jul-07 3:31
N a v a n e e t h30-Jul-07 3:31 
Questiongetting a element value from an xml file Pin
pradeep kumarappagari30-Jul-07 2:23
pradeep kumarappagari30-Jul-07 2:23 
AnswerRe: getting a element value from an xml file Pin
N a v a n e e t h30-Jul-07 3:09
N a v a n e e t h30-Jul-07 3:09 
QuestionAdding items in listbox Pin
manowj30-Jul-07 2:00
manowj30-Jul-07 2:00 
AnswerRe: Adding items in listbox Pin
kimo code30-Jul-07 2:09
kimo code30-Jul-07 2:09 
GeneralRe: Adding items in listbox Pin
manowj30-Jul-07 2:38
manowj30-Jul-07 2:38 
GeneralRe: Adding items in listbox Pin
kimo code30-Jul-07 2:53
kimo code30-Jul-07 2:53 
GeneralRe: Adding items in listbox Pin
manowj30-Jul-07 3:05
manowj30-Jul-07 3:05 
GeneralRe: Adding items in listbox Pin
Imran Khan Pathan30-Jul-07 3:00
Imran Khan Pathan30-Jul-07 3:00 
GeneralRe: Adding items in listbox Pin
manowj30-Jul-07 3:08
manowj30-Jul-07 3:08 
QuestionDatagrid inside datagrid? Pin
anujose30-Jul-07 1:19
anujose30-Jul-07 1:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.