Accessing Sage 300 CRE Data from the Web - Error [28000][Sage][SQL Engine](31830)Username and Password is required

SUGGESTED

We are accessing Sage 300 CRE data in a web page using the ODBC 32 bit driver we set up as a system dnn (TMBWeb). The dsn points to the correct data folder and is configured for standard descriptions and maximum table segment size. We have a connection string in our configuration file for the website. The connection string is as follows;

<add name="TimberlineODBC" connectionstring="DSN=TMBWeb;Uid=webadmin;pwd=******;" providerName="System.Data.ODBC"/>

We can access the data from Excel or SQL Server Management Studio (import data into table) using the system dsn and credentials. When we try and run a query against the data from the website we get the above error msg. I noticed the error msg says the userid and pwd is required (ie not invalid), which makes me think it is not finding the credentials in the connection string. 

Do you have any idea why this error msg is generated? 

Thank you.  

Parents
  • 0
    SUGGESTED

    If this process works interactively (as a user logged on the local system) and not as the web service, I have a couple of ideas:

    1. Make sure the account the service is running as a Windows user who has NTFS access to the Sage folders.
    2. The website service may be running as x64 process and may not have access to the 32 bit ODBC driver from Sage.  That ODBC driver only works via 32bit access.
    3. If the web service is running on another system, make sure the web process is not running under the local system account as the local system account cannot reach out over the network to access resources on another system on the network.

    You might want to consider deploying the SQL Replicator to push copies of your data over to MS SQL Server which is much easier to access via your typical development tools.

  • 0 in reply to Rod Hatley

    In answer to your suggestions, the account has access to the folders, and the website has 32bit applications enabled. The web service is running on another server, and is running under the application pool identity. The app pool identity has correct access. Sage desktop is installed on the server where the website is running and we can access all data with the credentials we are using in the connection string. We have this same setup for a number of clients, but there seems to be an environmental issue that is causing the problem here. We usually encounter invalid credential error msgs, not the error msg that credentials are required. I was wondering what errors generate this particular error msg. 

    The sql replicator is not running reliably at this client because they are processing large amounts of data. 

Reply
  • 0 in reply to Rod Hatley

    In answer to your suggestions, the account has access to the folders, and the website has 32bit applications enabled. The web service is running on another server, and is running under the application pool identity. The app pool identity has correct access. Sage desktop is installed on the server where the website is running and we can access all data with the credentials we are using in the connection string. We have this same setup for a number of clients, but there seems to be an environmental issue that is causing the problem here. We usually encounter invalid credential error msgs, not the error msg that credentials are required. I was wondering what errors generate this particular error msg. 

    The sql replicator is not running reliably at this client because they are processing large amounts of data. 

Children