Why is this happening?
I am performing a simple display of events. I dont want to do anything more but display them.
So i need a user and i am using a
user = CStaffUser.GetDefaultStaffUser();
it works everywhere else except in this one section where this pops up.
Hi Tim, The error message
Hi Tim,
The error message you see is a connection issue to your SQL server. Here is a few things I would check.
Did you use ASI.iBO.iboAdmin.InitializeSystem() or ASI.iBO.iboAdmin.InitializeSystem(SomeConnectionInTheConnectionsStringSection)? The iBOs do need to be initialized to get all of the paramter settings. If you use the ASI.iBO.iboAdmin.InitializeSystem() method, make sure you have the DataSource.iMIS.Connection connection string in your web.config or app.config file depending on your application. You only need to initialize these settings once on your application. See below for an example on the connection string. On a web application, I found the best place to put this string is in the global.asa file under the application_start subroutine.
Is TCP and Named Pipes enabled SQL server configuration? Does the firewall on the server hosting the SQL database have TCP 1433 and UDP 1434 on the SQL server open to your application. Is the SQL server browser service running on the server hosting the SQL instance. If not make sure it is running.
Are you using SQL server express as your database server. If you are, then you need to make sure you have the \SQLEXPRESS at the end of your server to differentiate the instance of SQL server.
I hope this helps,
Sean Irish
Database Specialists
Assocation of Surgical Technologists
---- Connection String Example ----
<code>
<connectionStrings>
<add name="DataSource.iMIS.Connection" connectionString="Data Source=some_server;User ID=sa;Password=somepassword;Initial Catalog=Your_iMIS_Database"/>
<add name="iMIS_SQL_SERVER_EXPRESS" connectionString="Data Source=some_server\SQLEXPRESS;User ID=sa;Password=somepassword;Initial Catalog=Your_iMIS_Database"/>
</connectionStrings>
</code>