I receive following error when i add my usercontrol as a webpart to my page...
My ConnectionString looks like this:
<add name="Database" connectionString="Data Source=PC0001\NAVSERVER;Database=BaldwinPortal;Integrated Security=SSPI;Initial Catalog=BaldwinPortal;Provider=SQLOLEDB;Provider=SQLOLEDB;Trusted_Connection=yes " providerName="System.Data.SqlClient"/>
When i remove the integrated security, so it looks now like this:
<add name="Database" connectionString="Data Source=PC0001\NAVSERVER;Database=BaldwinPortal;Initial Catalog=BaldwinPortal;Provider=SQLOLEDB;Provider=SQLOLEDB" providerName="System.Data.SqlClient"/>
Then i receive the following error:
An unexpected error has occurred
What am i doing wrong here... i tested my usercontrols on a simple asp.net page and there they work just fine, no problems with connection but as soon as i try to use them as a webpart it just fails...
If been googling around for a few days now but i was not able to found a solution to this problem...
Don't forget to click "Mark as Answer" on the post that helped you.