DataSet Problems only When Published

L

Lint Radley

Hello,

My project contains a dataset which accesses an MDF database file
created within the project. When debugging the program, everything works
great. However, when I publish and install the project, the program
always hangs on a GetData() method which was generated automatically by
the DataSet Designer.

I'm really out of ideas to try, and Google has not been much help.

For reference, I am using .NET 2.0 Framework, and the publish fails even
on the same machine in which Debug works.

Thanks,

Lint
 
A

Ashot Geodakov

Are you running any version of MS SQL Server in your production environment?
 
A

Ashot Geodakov

I think if you attach your .MDF file to that SQL Server and change the
connection string in your web app to point to that database before
publishing, everything should work fine.
 
L

Lint Radley

Hi Ashot,

It's actually a Windows Forms application, written in C#. Any thoughts
regarding that?

Lint
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top