Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Running proget service on HTTPS

    Scheduled Pinned Locked Moved Support
    iissslhttpproget
    2 Posts 1 Posters 115 Views
    Loading More Posts
    • 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.
    • ? This user is from outside of this forum
      Guest
      last edited by

      Hello,

      I am having difficulties to setup Proget service on port 443.
      It was running fine with IIS on port 80 up until today when we tried to set it up over 443.
      We had a certificate created and ready today so we thought we would try HTTPS with proget.

      Since trying to configure this in IIS, we can no longer load our Proget page. Even after reverting the changes and trying to run it on previous port 80 configuration, we have no success.

      Here is the error we are receiving now trying to run it on http 80

      ============================================

      Server Error in '/' Application.

      The ConnectionString property has not been initialized.

      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.InvalidOperationException: The ConnectionString property has not been initialized.

      Source Error:

      An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

      Stack Trace:

      [InvalidOperationException: The ConnectionString property has not been initialized.]
      System.Data.SqlClient.SqlConnection.PermissionDemand() +6989690
      System.Data.SqlClient.SqlConnectionFactory.PermissionDemand(DbConnection outerConnection) +30
      System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource1 retry, DbConnectionOptions userOptions) +318 System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource1 retry) +211
      System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource1 retry) +393 System.Data.SqlClient.SqlConnection.Open() +122 Inedo.Data.SqlServerDatabaseContext.CreateConnection() +356 Inedo.Data.DatabaseContext.ExecuteInternal(String storedProcName, GenericDbParameter[] parameters) +204 Inedo.Data.<Read>d__21.MoveNext() +114
      System.Collections.Generic.List1..ctor(IEnumerable1 collection) +452
      System.Linq.Enumerable.ToList(IEnumerable1 source) +70 Inedo.ProGet.InternalConfig.ReadConfigValues() +13 Inedo.ProGet.LazyCached1.GetValue() +98
      Inedo.ProGet.ProGetConfig`1.ReadBoolean(String key) +59
      Inedo.ProGet.Web.get_IntegratedAuthenticationEnabled() +39
      Inedo.ProGet.WebApplication.ProGetHttpModule.AuthenticateRequest(HttpApplication app) +398
      System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +142
      System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +92

      Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1085.0

      =================================================================

      Please help us get it running again at least on port 80.

      Any additional help you can provide about port 443 is also welcomed.

      Regards,

      Chris

      Product: ProGet
      Version: 4.3.1

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        That particular error message is a result of the connection string missing from the configuration file. Please ensure there is a key present in both web.config and in ProGet.Service.exe.config.

        Most likely, someone had inadvertantly deleted it from the configuration file when attempting to configure the server in IIS.

        <add 
           key="InedoLib.DbConnectionString" 
           value="Data Source=...;Initial Catalog=ProGet;Integrated Security=SSPI" />
        
        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation