Question

  • Creator
    Topic
  • #2215616

    SQL Server, IIS6, Asp.net, C#

    Locked

    by bkwdsarkie ·

    getting system.ArgumentException format of initialization string does not conform to specification – enclosed is my connection string

    My IIS6 is trying to run SSL – I’m new to asp.net, c# and SQL Server. Trying to get an application someone else built running.
    Any help would greatly be appreciated.

All Answers

  • Author
    Replies
    • #2953978

      Clarifications

      by bkwdsarkie ·

      In reply to SQL Server, IIS6, Asp.net, C#

      Clarifications

    • #2953960

      Conn String

      by shellbot ·

      In reply to SQL Server, IIS6, Asp.net, C#

      Post your connection string..(star out the password if want)

      its possibly problem with your string, or could be how its initiallised..

      • #2934990

        Got the connection string thing fixed but…

        by bkwdsarkie ·

        In reply to Conn String

        Got the connection string fixed by changing the provider in asp.net in the iis6 configuration to my connectionstring that I was passing. But now the NT Authority that is running SQL is showing up on my default page as the logged in person instead of the Windows Identity of the user. What could cause this? Have CaC enabled IIS6 and it is prompting for my Cac pin but still showing NT Authority

        • #2934987

          Additional info on login displaying

          by bkwdsarkie ·

          In reply to Got the connection string thing fixed but…

          In masterpage.master.cs supposed to be getting the windows login with this line
          lbUserLoginID.text = “Logged In as: ” + WindowsIdentity.GetCurrent().Name.ToString();
          But the user is displaying as NT Authority\NETWORK SERVICE instead of the user. Have IIS6 CaC enabled and the app is prompting for the user’s CaC id pin. When the wrong pin is entered the access to the web page fails. When the pin is entered correctly the front page of the app comes up but without the proper authority of the logged in user. Any ideas to correct this?

        • #2934940

          Way to early

          by shellbot ·

          In reply to Additional info on login displaying

          in the morning for me to be reading this..

          this is a bit beyond me now..don’t do that level of web dev..

          eh..in short, I’ve no answer for ya on that one!

          Anyone else???

        • #2934937

          Check this:

          by shellbot ·

          In reply to Got the connection string thing fixed but…

          asked someone who might know..they busy but gave me this:

          Try:
          lbUserLoginID.text = “Logged In as: ” + HttpContext.Current.User.Name;

          http://msdn.microsoft.com/en-us/library/system.web.httpcontext.user.aspx

        • #2934882

          thanks for the different way to pull the user’s id

          by bkwdsarkie ·

          In reply to Check this:

          but I believe that the trouble is in the SQL Server back-end. I’m database literate in Sybase, Oracle, and others but not too much with SQL Server, ASP.NET etc. I’ll try the concept but still have to get the permissions to the dB and I think that is what I’m lacking.

        • #2933098

          ok

          by shellbot ·

          In reply to thanks for the different way to pull the user’s id

          i hear ya..

          so..does your application have a SQL login and permissions?
          and do your users then have approriate logins/permissions?

        • #2933071

          Users have been granted roles

          by bkwdsarkie ·

          In reply to ok

          My application comes up to the main screen and shows my login, but the application tabs do not appear like I do not have permissions to the database. It is madening. Don’t know what is not working.

        • #2933049

          debug

          by shellbot ·

          In reply to Users have been granted roles

          it could be a lot of things..

          its really hard to say when cannot see your code and what settings ect…

          you debugging? whats it saying?

        • #2933046

          roles

          by shellbot ·

          In reply to Users have been granted roles

          what kind of roles / permissions?

Viewing 1 reply thread