Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Connectivity Problem of Sql Server2000 and ASP/ASP.NET

Connectivity Problem of Sql Server2000 and ASP/ASP.NET

Scheduled Pinned Locked Moved ASP.NET
helpdatabasesecuritycsharpasp-net
14 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Bee Master

    rihdus wrote: Integrated Security=SSPIersist Security Info=False Isn't the connection string wrong in this part. //Start of joke Never comment ur code. If it was hard to write, it should be hard to understand !!! //End of joke

    R Offline
    R Offline
    rihdus
    wrote on last edited by
    #5

    Dear Friend, sorry there is no such error . Igive u revised state. ================================================================== Unknown connection option in connection string: provider. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: Unknown connection option in connection string: provider. Source Error: Line 4: Line 5: sub Page_load(obj as object, e as eventargs) Line 6: dim Sqlconnection1 as new SqlConnection<i><b>("Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Scineceoflife;Data Source=amit-5;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=AMIT-5;Use Encryption for Data=False;Tag with column collation when possible=False") </b></i> Line 7: Line 8: dim objcmd as new SqlDataAdapter("select * from Ethnicity", Sqlconnection1) Source File: d:\inetpub\wwwroot\scienceoflife\WebForm6.aspx Line: 6 ========================================================================== :confused:with regards ----sudhir </x-turndown>

    R 1 Reply Last reply
    0
    • R rihdus

      Dear Friend, sorry there is no such error . Igive u revised state. ================================================================== Unknown connection option in connection string: provider. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: Unknown connection option in connection string: provider. Source Error: Line 4: Line 5: sub Page_load(obj as object, e as eventargs) Line 6: dim Sqlconnection1 as new SqlConnection<i><b>("Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Scineceoflife;Data Source=amit-5;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=AMIT-5;Use Encryption for Data=False;Tag with column collation when possible=False") </b></i> Line 7: Line 8: dim objcmd as new SqlDataAdapter("select * from Ethnicity", Sqlconnection1) Source File: d:\inetpub\wwwroot\scienceoflife\WebForm6.aspx Line: 6 ========================================================================== :confused:with regards ----sudhir </x-turndown>

      R Offline
      R Offline
      Rocky Moore
      wrote on last edited by
      #6

      If you are using OLEDB, shouldn't you be using OleDbConnection instead of the SQL? Rocky <>< www.HintsAndTips.com www.GotTheAnswerToSpam.com

      R 2 Replies Last reply
      0
      • R rihdus

        Dear Friends, I am confronting some problems with connectivity of Sql Server2000 and ASP/ASP.NET. I am Using IIS5.0 and MIcrosoft IE5.0/5.5.Following are error messages: Regarding Sql server2000 and asp3.0: ----------------------------------------------------------------------------- Error Type: Microsoft OLE DB Provider for SQL Server (0x80040E4D) Login failed for user 'AMIT-5\IUSR_AMIT-OO51N46337'. /tt.asp, line 6 ------------------------------------------------------------------------- Regarding Sql server2000 and asp.net: --------------------------------------------------------------------------- Unknown connection option in connection string: provider. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: Unknown connection option in connection string: provider. Source Error: Line 4: Line 5: sub Page_load(obj as object, e as eventargs) Line 6: dim Sqlconnection1 as new SqlConnection("Provider=SQL server;Integrated Security=SSPIersist Security Info=False;Initial Catalog=Scineceoflife;Data Source=amit-5;Use Procedure for Prepare=1;Auto Translate=Trueacket Size=4096;Workstation ID=AMIT-5;Use Encryption for Data=False;Tag with column collation when possible=False") Line 7: Line 8: dim objcmd as new SqlDataAdapter("select * from Ethnicity", Sqlconnection1) Source File: d:\inetpub\wwwroot\scienceoflife\Webform6.aspx Line: 6 ---------------------------------------------------------------------------- :mad:Please help me . With regards </x-turndown>

        R Offline
        R Offline
        Rocky Moore
        wrote on last edited by
        #7

        As for login, you need to make sure that ASP.NET access to the table. Does that specific user above IUSR_AMIT-OO51N46337 have login rights? You should give ASP.NET access to the tables. Or you can use user name/password authentication. Rocky <>< www.HintsAndTips.com www.GotTheAnswerToSpam.com

        A 1 Reply Last reply
        0
        • R Rocky Moore

          If you are using OLEDB, shouldn't you be using OleDbConnection instead of the SQL? Rocky <>< www.HintsAndTips.com www.GotTheAnswerToSpam.com

          R Offline
          R Offline
          rihdus
          wrote on last edited by
          #8

          Dear Frnd , thanks for RE! But nothing changed after using SQLConnection , i have imported namespaces well . I login win2k server with username administrator,passwd is blank, my computer name is amit-5. please consider my both problems (with ASP And ASP.NET) ---with regards

          1 Reply Last reply
          0
          • R Rocky Moore

            If you are using OLEDB, shouldn't you be using OleDbConnection instead of the SQL? Rocky <>< www.HintsAndTips.com www.GotTheAnswerToSpam.com

            R Offline
            R Offline
            rihdus
            wrote on last edited by
            #9

            Dear Friend, please go through this after changing, Sql To Oledb Login failed for user 'AMIT-5\ASPNET'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.OleDb.OleDbException: Login failed for user 'AMIT-5\ASPNET'. Source Error: Line 9: Line 10: dim ds as DataSet=new DataSet() Line 11: objcmd.Fill(ds, "ethnicity") Line 12: dim dt as datatable=ds.Tables("ethnicity") Line 13: Dim CurrRows() as DataRow=dt.select(Nothing,nothing, DataViewRowState.CurrentRows) Source File: d:\inetpub\wwwroot\scienceoflife\WebForm6.aspx Line: 11 :~ with regards

            B 1 Reply Last reply
            0
            • R rihdus

              Dear Friend, please go through this after changing, Sql To Oledb Login failed for user 'AMIT-5\ASPNET'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.OleDb.OleDbException: Login failed for user 'AMIT-5\ASPNET'. Source Error: Line 9: Line 10: dim ds as DataSet=new DataSet() Line 11: objcmd.Fill(ds, "ethnicity") Line 12: dim dt as datatable=ds.Tables("ethnicity") Line 13: Dim CurrRows() as DataRow=dt.select(Nothing,nothing, DataViewRowState.CurrentRows) Source File: d:\inetpub\wwwroot\scienceoflife\WebForm6.aspx Line: 11 :~ with regards

              B Offline
              B Offline
              Bee Master
              wrote on last edited by
              #10

              Create new login for AMIT-5\ASPNET in SQL server //Start of joke Never comment ur code. If it was hard to write, it should be hard to understand !!! //End of joke

              R 1 Reply Last reply
              0
              • B Bee Master

                Create new login for AMIT-5\ASPNET in SQL server //Start of joke Never comment ur code. If it was hard to write, it should be hard to understand !!! //End of joke

                R Offline
                R Offline
                rihdus
                wrote on last edited by
                #11

                thanks but how???

                B 1 Reply Last reply
                0
                • R rihdus

                  thanks but how???

                  B Offline
                  B Offline
                  Bee Master
                  wrote on last edited by
                  #12

                  http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adminsql/ad_security_3ppv.asp[^] //Start of joke Never comment ur code. If it was hard to write, it should be hard to understand !!! //End of joke

                  1 Reply Last reply
                  0
                  • R Rocky Moore

                    As for login, you need to make sure that ASP.NET access to the table. Does that specific user above IUSR_AMIT-OO51N46337 have login rights? You should give ASP.NET access to the tables. Or you can use user name/password authentication. Rocky <>< www.HintsAndTips.com www.GotTheAnswerToSpam.com

                    A Offline
                    A Offline
                    Anonymous
                    wrote on last edited by
                    #13

                    Firstly i make clear that this problem is pertaining to ASP, not to asp.net as there is separate error for asp.net. ------------------------------------------------------------------------- ISUER_AMIT-OO51.... IS NOT ANY USER,HOW ITS CREATED..I KNOW LITTLE BIT AS IT'S CREATED BY THE SYSTEM. YOU KNOW, I HAVE ALWAYS SUCH ERRORS. Again remind you,that 1.My computer name is amit-5. 2.login(win2k server):Administrator. password:(blank) 3.sql server2000: SQL Server Group:local(Windows NT) AMIT-5\VSDOTNET 4.DATABASE NAME :scienceoflife 5.Table:ethnicity(2 columns) ----------------------------------------------------------------------------- Now what else you need to retreive records using 1.asp 2.asp.net.cosidering my problems stated above messages. with regards

                    1 Reply Last reply
                    0
                    • R rihdus

                      Dear Friends, I am confronting some problems with connectivity of Sql Server2000 and ASP/ASP.NET. I am Using IIS5.0 and MIcrosoft IE5.0/5.5.Following are error messages: Regarding Sql server2000 and asp3.0: ----------------------------------------------------------------------------- Error Type: Microsoft OLE DB Provider for SQL Server (0x80040E4D) Login failed for user 'AMIT-5\IUSR_AMIT-OO51N46337'. /tt.asp, line 6 ------------------------------------------------------------------------- Regarding Sql server2000 and asp.net: --------------------------------------------------------------------------- Unknown connection option in connection string: provider. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: Unknown connection option in connection string: provider. Source Error: Line 4: Line 5: sub Page_load(obj as object, e as eventargs) Line 6: dim Sqlconnection1 as new SqlConnection("Provider=SQL server;Integrated Security=SSPIersist Security Info=False;Initial Catalog=Scineceoflife;Data Source=amit-5;Use Procedure for Prepare=1;Auto Translate=Trueacket Size=4096;Workstation ID=AMIT-5;Use Encryption for Data=False;Tag with column collation when possible=False") Line 7: Line 8: dim objcmd as new SqlDataAdapter("select * from Ethnicity", Sqlconnection1) Source File: d:\inetpub\wwwroot\scienceoflife\Webform6.aspx Line: 6 ---------------------------------------------------------------------------- :mad:Please help me . With regards </x-turndown>

                      J Offline
                      J Offline
                      jacal99
                      wrote on last edited by
                      #14

                      hi i don't work on vb.net but i work on c# so i think that this might be help you .... use as simple connection you can like this SqlConnection SqlCon = new SqlConnection ("server = junaid; uid = sa; pwd = allah786; database = login"); Mazhar Hussain

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups