Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not a valid file name. 1

Status
Not open for further replies.

dinster

Programmer
Apr 12, 2007
54
GB
Hi all i have tested my webstie in asp.net and it works on my pc well.

When i upload it to the server and test it...it allows me to login and takes me to the insert record page. Which it should do.

But when i want to view records (view_records.aspx). Which has datagrid all the patients. I get the following error msg?

Code:
System.Data.OleDb.OleDbException: Not a valid file name. 
at System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) 
at System.Data.OleDb.OleDbConnection.InitializeProvider() 
at System.Data.OleDb.OleDbConnection.Open() 
at DreamweaverCtrls.DataSet.DoInit()
--------------------------------------------------------------------------------
System.Exception: The DefaultView was requested but no tables yet exist. 
at DreamweaverCtrls.DataSet.get_DefaultView()

could some1 plz help sort this out.... am really dont know why its doing it. Plus doesn't even give me a descriptive error...where to start looking.

am using access db at the moment....


many thanks
 
most likely there it's referencing a file on your local box, not a relative path in the app. that's why it will run on your box but not the server.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
hi guys thankx for the reply....it was the reference to my database in the web.config file.

Slight correction of that made it work...

cheers guys :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top