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. pointing to the wrong DB

pointing to the wrong DB

Scheduled Pinned Locked Moved ASP.NET
databasecsharpasp-netsysadmin
16 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.
  • Z zaimah

    yup, b4 this i'm in the wrong forum. and it's not him, it's her... :) where to know the mistake if i try to debug and there's a massage say cannot debug bcoz windows authenthication is disable. but the prgm can run without debug and there's no problem with it.

    Z Offline
    Z Offline
    zaimah
    wrote on last edited by
    #5

    <?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings> <add key="strConn" value="data source=MISKPI;User ID=sysadm;Password=sysadm;Initial Catalog=SPGALatihan;Persist Security Info=True;"/> </appSettings> <system.web> <!-- DYNAMIC DEBUG COMPILATION Set compilation debug="true" to insert debugging symbols (.pdb information) into the compiled page. Because this creates a larger file that executes more slowly, you should set this value to true only when debugging and to false at all other times. For more information, refer to the documentation about debugging ASP.NET files. --> <compilation defaultLanguage="vb" debug="true"><assemblies><add assembly="CrystalDecisions.CrystalReports.Engine, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add assembly="CrystalDecisions.ReportSource, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add assembly="CrystalDecisions.Shared, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add assembly="CrystalDecisions.Web, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></assemblies></compilation> <!-- CUSTOM ERROR MESSAGES Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable. Add <error> tags for each of the errors you want to handle. "On" Always display custom (friendly) messages. "Off" Always display detailed ASP.NET error information. "RemoteOnly" Display custom (friendly) messages only to users not running on the local Web server. This setting is recommended for security purposes, so that you do not display application detail information to remote clients. --> <customErrors mode="RemoteOnly"/> <!-- AUTHENTICATION This section sets the authentication policies of the application. Possible modes are "Windows", "Forms", "Passport" and "None" "None" No authentication is performed. "Windows" IIS performs authentication (Basic, Digest, or Integrated Windows) according to its settings for the application. Anonymous access must be disabled in IIS. "Forms" You provide a custom form (Web page) for users to enter their credentials, and then you authen

    C 1 Reply Last reply
    0
    • Z zaimah

      <?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings> <add key="strConn" value="data source=MISKPI;User ID=sysadm;Password=sysadm;Initial Catalog=SPGALatihan;Persist Security Info=True;"/> </appSettings> <system.web> <!-- DYNAMIC DEBUG COMPILATION Set compilation debug="true" to insert debugging symbols (.pdb information) into the compiled page. Because this creates a larger file that executes more slowly, you should set this value to true only when debugging and to false at all other times. For more information, refer to the documentation about debugging ASP.NET files. --> <compilation defaultLanguage="vb" debug="true"><assemblies><add assembly="CrystalDecisions.CrystalReports.Engine, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add assembly="CrystalDecisions.ReportSource, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add assembly="CrystalDecisions.Shared, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add assembly="CrystalDecisions.Web, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></assemblies></compilation> <!-- CUSTOM ERROR MESSAGES Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable. Add <error> tags for each of the errors you want to handle. "On" Always display custom (friendly) messages. "Off" Always display detailed ASP.NET error information. "RemoteOnly" Display custom (friendly) messages only to users not running on the local Web server. This setting is recommended for security purposes, so that you do not display application detail information to remote clients. --> <customErrors mode="RemoteOnly"/> <!-- AUTHENTICATION This section sets the authentication policies of the application. Possible modes are "Windows", "Forms", "Passport" and "None" "None" No authentication is performed. "Windows" IIS performs authentication (Basic, Digest, or Integrated Windows) according to its settings for the application. Anonymous access must be disabled in IIS. "Forms" You provide a custom form (Web page) for users to enter their credentials, and then you authen

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #6

      zaimah wrote:

      data source=MISKPI

      To point to a machine on the network, you need a network path.

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      Z 1 Reply Last reply
      0
      • C Christian Graus

        zaimah wrote:

        data source=MISKPI

        To point to a machine on the network, you need a network path.

        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        Z Offline
        Z Offline
        zaimah
        wrote on last edited by
        #7

        sorry in advance if my next question is a stupid one :) what do u mean by network path?

        C 1 Reply Last reply
        0
        • Z zaimah

          sorry in advance if my next question is a stupid one :) what do u mean by network path?

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #8

          I think you're very lost, this is your first program you say ? Are you working in a class, or at home ? You're surely not getting paid ? The path across your network to the SQL Server that is not on your machine.

          Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          Z 1 Reply Last reply
          0
          • C Christian Graus

            I think you're very lost, this is your first program you say ? Are you working in a class, or at home ? You're surely not getting paid ? The path across your network to the SQL Server that is not on your machine.

            Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

            Z Offline
            Z Offline
            zaimah
            wrote on last edited by
            #9

            At my office. Actually i'm a new worker. My main job is to give a training to our customer how to use our companys system. but my leader ask me to do a web app to record all the calls from our customer so he can trace all the problem that our cistomer had. thank god i can make it n 2 month, but now the problem is only with connection to DB. rite now it can update and add data to my server DB but, i cannot display all the data in data grid bcoz it's only gonna display data from local DB. this is getting weird. and sorry to disturb u with this stupid question.

            C 1 Reply Last reply
            0
            • Z zaimah

              At my office. Actually i'm a new worker. My main job is to give a training to our customer how to use our companys system. but my leader ask me to do a web app to record all the calls from our customer so he can trace all the problem that our cistomer had. thank god i can make it n 2 month, but now the problem is only with connection to DB. rite now it can update and add data to my server DB but, i cannot display all the data in data grid bcoz it's only gonna display data from local DB. this is getting weird. and sorry to disturb u with this stupid question.

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #10

              zaimah wrote:

              but my leader ask me to do a web app to record all the calls from our customer so he can trace all the problem that our cistomer had.

              OK, your work does not sound very fair.

              zaimah wrote:

              and sorry to disturb u with this stupid question.

              Oh, I am glad to help you, don't worry about that. I am just trying to understand your situation. A network path is like \\networkmachine\databasename. Just the db name is not going to find it, I don't think.

              Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

              Z 1 Reply Last reply
              0
              • C Christian Graus

                zaimah wrote:

                but my leader ask me to do a web app to record all the calls from our customer so he can trace all the problem that our cistomer had.

                OK, your work does not sound very fair.

                zaimah wrote:

                and sorry to disturb u with this stupid question.

                Oh, I am glad to help you, don't worry about that. I am just trying to understand your situation. A network path is like \\networkmachine\databasename. Just the db name is not going to find it, I don't think.

                Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                Z Offline
                Z Offline
                zaimah
                wrote on last edited by
                #11

                another question is, i cannot debug my prgm bcoz it say the windows authentication r disable. why is this happening? when i run it without debug, there's no error come out from the prgm.

                E 1 Reply Last reply
                0
                • Z zaimah

                  another question is, i cannot debug my prgm bcoz it say the windows authentication r disable. why is this happening? when i run it without debug, there's no error come out from the prgm.

                  E Offline
                  E Offline
                  eyeseetee
                  wrote on last edited by
                  #12

                  Put this in your web/config file modified on Friday, May 16, 2008 3:45 AM

                  Z 1 Reply Last reply
                  0
                  • E eyeseetee

                    Put this in your web/config file modified on Friday, May 16, 2008 3:45 AM

                    Z Offline
                    Z Offline
                    zaimah
                    wrote on last edited by
                    #13

                    put what? pls explain more. TQ.

                    B C E 3 Replies Last reply
                    0
                    • Z zaimah

                      put what? pls explain more. TQ.

                      B Offline
                      B Offline
                      Blue_Boy
                      wrote on last edited by
                      #14

                      I will suggest you to give a look this google result[^]


                      I Love T-SQL "Don't torture yourself,let the life to do it for you."

                      1 Reply Last reply
                      0
                      • Z zaimah

                        put what? pls explain more. TQ.

                        C Offline
                        C Offline
                        Christian Graus
                        wrote on last edited by
                        #15

                        For goodness sakes, buy a book. We're trying to help, but you're lacking even the basic skills to understand our answers.

                        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                        1 Reply Last reply
                        0
                        • Z zaimah

                          put what? pls explain more. TQ.

                          E Offline
                          E Offline
                          eyeseetee
                          wrote on last edited by
                          #16

                          zaimah wrote:

                          put what? pls explain more. TQ.

                          This is silly, We are giving you basic answers, I cant blieve so many people are giving programming tasks and have little knowledge of programming!

                          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