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



  • 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



  • 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" />


Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation