[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.8

Login failed for user '(null)' error using asp to log into sql db

Asked by newbreedcc in Active Server Pages (ASP)

Tags: failed, login, trusted, sql

Hi, I get the following message when I am trying to access a sql database to do a login authentication query.


HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
 
    Technical Information (for support personnel)

        * Error Type:
          Microsoft OLE DB Provider for ODBC Drivers (0x80040E4D)
          [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '(null)'. Reason:
          Not associated with a   trusted SQL Server connection.

         /autosales/d2d/login.asp, line 11


The line of code that is the problem is:

       conn.Open application("ConnAutoSales")


 I can access the database through SQL server manager fine. The global.asa file has the following code:

      <SCRIPT LANGUAGE="VBScript" RUNAT="Server">

      SUB Application_OnStart
      application("ConnAutoSales") = "DRIVER=SQL      Server;SERVER=GVWDEVDB01\GVWSERVICES;DATABASE=AutoSales;Trusted_Connection=Yes"
    application("AutoSalesRetailDownload") = "http://GVWDEVWEB01/Autosales2/Retail/Upload/"
    Application("SiteURL") = "http://gvwdevweb01/autosales2/d2d/"
    application("2GIFCommand") = "c:\progra~1\2gif\2gif.exe s=D:\autosales\imageupload\"
    application("2GIFCommand2") = " df=D:\autoSales\autopics\user\"
    application("FeedImagePath") = "http://imgs.getauto.com/imgs/ag/ga"
    application("EmailFromAddress") = "support@autosalesd2d.com"

 
  END SUB

  SUB Application_OnEnd
  END SUB

  SUB Session_OnStart
   Session.Timeout = 60
  END SUB

  SUB Session_OnEnd
END SUB
</script>
--------------------------------------------------

the server and database both exist as stated in the global.asa file
[+][-]02/23/06 04:50 PM, ID: 16034961Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Active Server Pages (ASP)
Tags: failed, login, trusted, sql
Sign Up Now!
Solution Provided By: alorentz
Participating Experts: 1
Solution Grade: A
 
 
Loading Advertisement...
20091111-EE-VQP-92