Ошибка one or more errors occurred

From today morning, my Visual Studio is behaving very strangely. I get the error «one or more errors occurred failed to launch debug adapter» whenever I run the project.

enter image description here

I run my project profile instead of running it in the IIS Express profile. Here is my launchSettings.json file.

{
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://localhost:65498",
      "sslPort": 44318
    }
  },
  "profiles": {
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    },
    "<ProjectName>": {
      "commandName": "Project",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      },
      "applicationUrl": "https://localhost:5001;http://localhost:5000"
    }
  }
}

And when I check the Output window, this is what I get.

The program ‘[22052] .exe’ has exited with code -1
(0xffffffff).

Another thing I noticed is that a new browser tab is opened without any URL in it, just an about:blank page.

  • Remove From My Forums
  • Question

  • User-234441352 posted

    hi,

    i am getting an error when i am trying to run my asp.net mvc core 2.1 (angular cli 7) application. 

    Can anyone guide me?

    An unhandled exception occurred while processing the request.

    AggregateException: One or more errors occurred. (One or more errors occurred. (The NPM script ‘start’ exited without indicating that the Angular CLI was listening for requests. The error output was: npm ERR! code ELIFECYCLE

    npm ERR! errno 1

    npm ERR! quickapp-pro@2.1.0 start: `concurrently —kill-others «ng serve» «npm run theme» «—port» «5789»`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the quickapp-pro@2.1.0 start script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:

    ))

    System.Threading.Tasks.Task<TResult>.GetResultCore(bool waitCompletionNotification)

    InvalidOperationException: The NPM script ‘start’ exited without indicating that the Angular CLI was listening for requests. The error output was: npm ERR! code ELIFECYCLE

    npm ERR! errno 1

Answers

  • User839733648 posted

    Hi mehmoodahmed,

    According to your description, I suggest that maybe you could try the following steps.

    • Opened Command as Administrator 
    • Navigated to your ClientApp folder
    • Run “npm install”
    • Run “npm audit fix” 

    If you have any concerns, please feel free to let me know.

    Best Regards,

    Jenifer

    • Marked as answer by

      Thursday, October 7, 2021 12:00 AM

  • User-474980206 posted

    it looks like you are using a custom template. you should check with support from the vendor. there site suggests  running 

       npm install
       npm run dev-build
       npm start

    from the angular project folder. this should give more error messages. 

    • Marked as answer by
      Anonymous
      Thursday, October 7, 2021 12:00 AM

  • User-474980206 posted

    the error looks like your web pack / typescript  config is wrong (no module loader defined).  as it looks like you are using a driver script quickapp-pro which appears to have issues. you should check with the source of this script for support,
    or switch to using ng scripts directly.

      https://cli.angular.io

    to switch to ng-cli, I’d delete the clientapp folder contents, then cd to root of the project:

    cd ClientApp
    npm install -g @angular/cli
    ng new 
    ng serve

    if you are using asp.net core, then you might just try the builtin angular template (it uses the ng cli).  it also sets up spa services to host the clientapp public folder as static file. it has support for ng watch.

       dotnet new angular

    note: I use react instead of angular, so use the react template (which uses the react scripts).

    • Marked as answer by
      Anonymous
      Thursday, October 7, 2021 12:00 AM

    • Marked as answer by
      Anonymous
      Thursday, October 7, 2021 12:00 AM
  • User-474980206 posted

    after installing ng.

      delete node_modules, angular.json, tsconfig.*
      rename  package.json to package.json.save
      unless there is some code you need to save, empty the folder. If there is code, move it out and merge back.

    then:

       ng new
       ng serve

    this is will give a new set config files, and a running app. 

    if spasevices in debug mode can not start angular, then look at the new package.json scripts section, and compare to the saved. not sure which command the spa services runs in debug mode, but its probably build. you can always comment out the spaservice
    build, and manually start ng serve when in debug/dev mode.

    note: you might want to read:

       https://medium.com/javascript-scene/the-typescript-tax-132ff4cb175b

    • Marked as answer by
      Anonymous
      Thursday, October 7, 2021 12:00 AM

I also see this error in the RSPortal log:

RSPortal!reportserverwebapp!RSPortal.exe!5d5!01/02/2018-10:36:15:: i INFO: Received request POST /api/v2.0/catalogitems | RequestID = s_694261c5-338d-4f4d-933a-95f79983777e
RSPortal!reportserverwebapp!RSPortal.exe!5d5!01/02/2018-10:36:16:: e ERROR: OData exception occurred: Microsoft.BIServer.HostingEnvironment.Cryptography.Exceptions.CannotValidateEncryptedDataException: Exception of type ‘Microsoft.BIServer.HostingEnvironment.Cryptography.Exceptions.CannotValidateEncryptedDataException’ was thrown.
   at Microsoft.BIServer.HostingEnvironment.Cryptography.SymmetricKeyCrypto.EncryptInternal(Byte[] data)
   at Microsoft.BIServer.HostingEnvironment.Cryptography.Crypto.Encrypt(Byte[] unprotectedData, String tag)
   at Microsoft.ReportingServices.Portal.Repositories.CatalogItemRepository.SetDataModelDataSourcesTrusted(IPrincipal userPrincipal, Guid itemId, IEnumerable`1 dataSources, Boolean isOverwrite)
   at Microsoft.ReportingServices.Portal.Repositories.CatalogItemRepository.CreatePowerBIReport(RSService rsService, IPrincipal userPrincipal, String parentPath, Boolean overwrite, PowerBIReport item, Property[] properties)
   at Microsoft.ReportingServices.Portal.Repositories.CatalogItemRepository.CreateItem(IPrincipal userPrincipal, CatalogItem catalogItem, CatalogItem& createdItem)
   at Microsoft.ReportingServices.Portal.ODataWebApi.V2.Controllers.CatalogItemsController.AddEntity(CatalogItem entity, CatalogItem& createdEntity)
   at Microsoft.ReportingServices.Portal.ODataWebApi.Controllers.Reflection.EntitySetReflectionODataController`1.Post(ODataPath oDataPath, T value)
   at lambda_method(Closure , Object , Object[] )
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
— End of stack trace from previous location where exception was thrown —
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()
— End of stack trace from previous location where exception was thrown —
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
— End of stack trace from previous location where exception was thrown —
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext(). | RequestID = s_694261c5-338d-4f4d-933a-95f79983777e

Решил подаунвольтить проц а CTR не работает. Ни одна кнопка в приложении не нажимается, а в окне лога пишет:

System.AggregateException: One or more errors occurred. —> System.NullReferenceException: Ссылка на объект не указывает на экземпляр объекта. at A.c7ef8ec682dd21d60b7ea8e49e2ff83f2.c5c2452607c2665392a3543b056d8caa4() at A.c7ef8ec682dd21d60b7ea8e49e2ff83f2.c851a92f7e153dde284accde57e5e21c4() at System.Threading.Tasks.Task.Execute() — End of inner exception stack trace — at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at A.c7ef8ec682dd21d60b7ea8e49e2ff83f2..ctor()—> (Inner Exception #0) System.NullReferenceException: Ссылка на объект не указывает на экземпляр объекта. at A.c7ef8ec682dd21d60b7ea8e49e2ff83f2.c5c2452607c2665392a3543b056d8caa4() at A.c7ef8ec682dd21d60b7ea8e49e2ff83f2.c851a92f7e153dde284accde57e5e21c4() at System.Threading.Tasks.Task.Execute()<—

Сталкивался кто? Конфиги чистил, прогу перекачивал, в бубен стучал, духов призывал. Нихрена :(

R5 5600X, MSI B450 Gaming Pro Carbon AC. Необходимые предварительные настройки в БИОСе сделал.

Troubleshooting Code 80040E14 – One or more errors occurred during processing of command

Introduction to Error Code 80040E14

This error code, 80040E14 occurs when you execute a VBScript.  You are probably using a WSH method to connect to LDAP.  My wild guess is that there is extra speech mark, or there is something fishy with one of your quotation marks.One or more errors occurred during processing of command Code 80040E14

The Symptoms You Get

The script does not manipulate the Active Directory object as you had hoped, instead you get a Windows Script Host error message.  The probably scenario is that you are trying to manipulate an LDAP object.

The Cause of Code 80040E14

The most likely cause is incorrect reference to the domain in your LDAP command.  Check lines which reference Active Directory, for example: LDAP://domain.

Another cause of the error is that the WMI service is not running on the machine where you execute the VBScript.  To check the state of your WMI service see here

Variations
Table does not exist. Error 80040E37
Invalid Syntax. Error 800401E4

The Solutions

Check the Line: number in your script that references the ‘Provider’.  If necessary, work back for previous occurrences of LDAP.  Incidentally, Char 1: often lies! it just means that the whole line will not execute.

In the case of runtime errors, you can use this work around.  Add this line: On Error Resume Next

Engineer's Toolset v10Guy Recommends: SolarWinds Engineer’s Toolset v10

This Engineer’s Toolset v10 provides a comprehensive console of 50 utilities for troubleshooting computer problems.  Guy says it helps me monitor what’s occurring on the network, and each tool teaches me more about how the underlying system operates.

There are so many good gadgets; it’s like having free rein of a sweetshop.  Thankfully the utilities are displayed logically: monitoring, network discovery, diagnostic, and Cisco tools.  Try the SolarWinds Engineer’s Toolset now!

Download your fully functional trial copy of the Engineer’s Toolset v10

Example of a VBScript with Error 80040E14

In this instance, you need to pay close attention to the speech marks.  Note the error is actually on line 15: it should be ‘LDAP:// & strDomain ‘ .  One pair of single quotes.  Not ‘LDAP:// ‘ & strDomain ‘  with extra single quote. 

VBScript for error codesI just could not get the script to work with the strDomain variable…… Until I mastered binding to LDAP.

Example Script 1

‘ Get Domain name from RootDSE object.
Set objRootDSE = GetObject(«LDAP://RootDSE»)
strDomain = objRootDSE.Get(«DefaultNamingContext»)

WScript.Echo strDomain ‘ This is Extra line Guy put in to test

Const ADS_SCOPE_SUBTREE = 2
Set objConnection = CreateObject(«ADODB.Connection»)
Set objCommand = CreateObject(«ADODB.Command»)
objConnection.Provider = «ADsDSOObject»
objConnection.Open «Active Directory Provider»
Set objCommand.ActiveConnection = objConnection
objCommand.CommandText = «Select printerName, serverName from » _
& » ‘LDAP://’ & strDomain ‘ where objectClass=’printQueue’»
objCommand.Properties(«Page Size») = 1000
objCommand.Properties(«Timeout») = 30
objCommand.Properties(«Searchscope») = ADS_SCOPE_SUBTREE
objCommand.Properties(«Cache Results») = False
Set objRecordSet = objCommand.Execute
objRecordSet.MoveFirst
Do Until objRecordSet.EOF
Wscript.Echo «Printer Name: » & objRecordSet.Fields(«printerName»).Value
Wscript.Echo «Server Name: » & objRecordSet.Fields(«serverName»).Value
objRecordSet.MoveNext
Loop

Recommended: Solarwinds’ Permissions Analyzer – Free Active Directory ToolFree Permissions Analyzer for Active Directory

I like thePermissions Analyzer because it enables me to see WHO has permissions to do WHAT at a glance.  When you launch this tool it analyzes a users effective NTFS permissions for a specific file or folder, and takes into account network share access, then displays the results in a nifty desktop dashboard!

Think of all the frustration that this free SolarWinds utility saves when you are troubleshooting authorization problems for user’s access to a resource.  Give this permissions monitor a try – it’s free!

Download SolarWinds’ Free Permissions Analyser – Active Directory Tool

Example Script 2 – Kindly Sent in by Steven McCarty

Option Explicit
‘* On Error Resume Next is enabled for the WScript.Echo to show Err.Number
On Error Resume Next

‘* Dimension variables
Dim objCommand, objConnection, objRecordSet, strLDAPQuerySearch, strLDAPQueryReturn, strLDAPQueryScope, strLDAPQueryCommandText
‘Initialize Objects
Set objCommand = CreateObject(«ADODB.Command»)
Set objConnection = CreateObject(«ADODB.Connection»)

objConnection.Provider = «ADsDSOObject»
objConnection.Open «ADs Query»

‘* Normally, I use the extract query out of ADUC, but
‘* forget that ADUC places a wrapper around the query.
‘* This query will fail with 80040E14
strLDAPQuerySearch = «(&(objectCategory=group)(objectClass=group)(dLMemSubmitPerms=*))(!(dLMemSubmitPerms=A ‘Test’ Group))»
WScript.Echo strLDAPQuerySearch
strLDAPQueryReturn = «sAMAccountName, cn, ADsPath»
strLDAPQueryScope = «subtree»
strLDAPQueryCommandText = «<LDAP://» & GetObject(«LDAP://RootDSE»).Get((«defaultNamingContext»)) & «>;» & strLDAPQuerySearch & «;» & strLDAPQueryReturn & «;» & strLDAPQueryScope
objCommand.ActiveConnection = objConnection
objCommand.CommandText = strLDAPQueryCommandText
objCommand.Properties(«Page Size») = 99
Err.Clear
Set objRecordSet = objCommand.Execute
WScript.Echo Hex(Err.Number)

‘* If we place the same AND wrapper around the query,
‘ as ADUC does, the query will not fail
strLDAPQuerySearch = «(&» & strLDAPQuerySearch & «)»
WScript.Echo strLDAPQuerySearch
strLDAPQueryCommandText = «<LDAP://» & GetObject(«LDAP://RootDSE»).Get((«defaultNamingContext»)) & «>;» & strLDAPQuerySearch & «;» & strLDAPQueryReturn & «;» & strLDAPQueryScope
objCommand.CommandText = strLDAPQueryCommandText
Err.Clear
Set objRecordSet = objCommand.Execute
WScript.Echo Hex(Err.Number)

Start and Stop the winmgmts service

Navigate to the command prompt.

net stop winmgmt WBEM Directory 80041001

Using Windows Explorer, navigate to %systemroot%system32wbem directory and delete the Repository directory. By default, the repository folder is located in the C:Windowssystem32wbem directory.
Switch to Command Prompt window, and type:
net start winmgmt

Re-Register the DLLs

The .DLL and .EXE files which WMI uses are located in %windir%system32wbem.  This is how you re-register all the .DLL and .EXE files in the WBEM directory. To re-register the WMI components, run the following commands at the command prompt:

cd /d %windir%system32wbem
for %i in (*.dll) do RegSvr32 -s %i
for %i in (*.exe) do %i /RegServer

Re-Install WMI files

If you suspect that the WMI files are damaged, then you could re-install them from the Windows Server 2003 or XP CD.  Here is the nifty command:

rundll32.exe setupapi,InstallHinfSection WBEM 132 %windir%infwbemoc.inf

I thank Riaan, Shane and Ramesh for supplying this extra information on WMI Errors in general and 80041xxx in particular.

See More Windows Update Error Codes 8004 Series

• Error 80004005 Unspecified Error   •Error 80041021   •Error 80041001   •Error 80041002

• Error 80048820   •Error 8004100E   •Review of SolarWinds Application Monitor (SAM)

• Error 80040E14   • Error 80040E37   • Error 80041006   • Error 80041006

Solarwinds Free WMI MonitorGuy Recommends: WMI Monitor and It’s Free!

Windows Management Instrumentation (WMI) is one of the hidden treasures of Microsoft operating systems.  Fortunately, SolarWinds have created the WMI Monitor so that you can examine these gems of performance information for free.  Take the guess work out of which WMI counters to use for applications like Microsoft Active Directory, SQL or Exchange Server.

Download your free copy of WMI Monitor


Do you need additional help?

  • For interpreting the WSH messages check Diagnose 800 errors.
  • For general advice try my 7 Troubleshooting techniques.
  • See master list of 0800 errors.
  • Codes beginning 08004…
  • Codes beginning 08005…
  • Codes beginning 08007…
  • Codes beginning 0800A…

Give something back?

Would you like to help others?  If you have a good example of this error, then please email me, I will publish it with a credit to you:

If you like this page then please share it with your friends


Понравилась статья? Поделить с друзьями:
  • Ошибка olf на частотном преобразователе шнайдер
  • Ошибка ole сервера access
  • Ошибка ole код 0x800a03ec неизвестный код состояния com
  • Ошибка ole код 0x80070057
  • Ошибка ole код 0x80040154 class not registered налогоплательщик