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:


Line 145:       AndAlso (context.Request.QueryString("proj_pic_id") <> "")) Then
Line 146:      id = [Convert].ToInt32(context.Request.QueryString("proj_pic_id"))
Line 147:      stream = ProjManager.ProjManager.w_proj_pic_get_picture(id, context.Request.QueryString("size"))
Line 148:      If stream Is Nothing Then
Line 149:        'Отображение картинки по умолчанию

Source File: C:\Inetpub\vhosts\starpom.net\starpom\Handler.ashx    Line: 147

Stack Trace:


[InvalidOperationException: The ConnectionString property has not been initialized.]
   System.Data.SqlClient.SqlConnection.PermissionDemand() +7152305
   System.Data.SqlClient.SqlConnectionFactory.PermissionDemand(DbConnection outerConnection) +32
   System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +315
   System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +128
   System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +265
   System.Data.SqlClient.SqlConnection.Open() +133
   ProjManager.ProjManager.w_proj_pic_get_picture(Int32 proj_pic_id, Int32 size) in D:\ASP_Net_Work\Magar_DLL\ProjManager\ProjManager.vb:603
   Handler.ProcessRequest(HttpContext context) in C:\Inetpub\vhosts\starpom.net\starpom\Handler.ashx:147
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +542
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93


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