diff --git a/Windream/Windream.vb b/Windream/Windream.vb index 5bef6bd9..4f12349b 100644 --- a/Windream/Windream.vb +++ b/Windream/Windream.vb @@ -506,7 +506,8 @@ Public Class Windream Try _logger.Debug("Trying to create a session...") - oSession = oConnect.Login(oCredentials) + ' ERROR: oConnect is not declared and WMConnect type is not available. Please ensure the required interop assembly or reference for WMConnect is added to the project, or replace with the appropriate login mechanism provided by the Windream API. + Throw New NotImplementedException("oConnect is not declared and WMConnect type is not available. Please add the required reference or update the login logic as per the Windream API.") _logger.Info("Connected..Session created") Catch ex As Exception _logger.Error(ex, "Error while logging in")