My VSPackage did not load correctly into Visual Studio 2019 for one user.
The user has sent me part of the activity log:
<entry>
<record>2206</record>
<time>2019/12/13 10:44:12.579</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [MultiLanguagePackage]</description>
<guid>{8FA8895A-868F-4319-82FD-A4805D8953CE}</guid>
</entry>
<entry>
<record>2207</record>
<time>2019/12/13 10:44:12.616</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [MultiLanguagePackage]
Source: 'Microsoft.VisualStudio.Shell.15.0';
Description: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
System.NullReferenceException:
Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei Microsoft.VisualStudio.Shell.DialogPage.SetPropertyValue(PropertyDescriptor descriptor, Object automationObject, Object value)
bei Microsoft.VisualStudio.Shell.DialogPage.LoadSettingFromStorage(PropertyDescriptor prop)
bei Microsoft.VisualStudio.Shell.DialogPage.LoadSettingsFromStorage()
bei Microsoft.VisualStudio.Shell.DialogPage.set_Site(ISite value)
bei System.ComponentModel.Container.Add(IComponent component, String name)
bei System.ComponentModel.Container.Add(IComponent component)
bei Microsoft.VisualStudio.Shell.Package.GetDialogPage(Type dialogPageType)
bei MultiLangServices.SettingsService.InitOptionsPages(Package p) in C:\VSPackage_Version_7_1\Project\MultiLangServices\Services\SettingsService.cs:Zeile 24.
bei MultiLanguage2019.MultiLanguagePackage.<InitializeAsync>d__2.MoveNext()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bei Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass20_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bei Microsoft.VisualStudio.Shell.UIThreadReentrancyScope.WaitOnTaskCompleteInternal(Task task, CancellationToken cancel, Int32 ms)
bei Microsoft.VisualStudio.Services.VsTask.<>c__DisplayClass100_1.<InternalGetResult>b__1()
bei Microsoft.VisualStudio.Services.VsTask.IgnoreObjectDisposedException(Action action)
bei Microsoft.VisualStudio.Services.VsTask.<>c__DisplayClass100_0.<InternalGetResult>b__0()
bei Microsoft.VisualStudio.Services.VsTask.<>c__DisplayClass108_0.<InvokeWithWaitDialog>b__0()
bei Microsoft.VisualStudio.Services.VsTask.InvokeWithWaitDialog[T](Func`1 function)
bei Microsoft.VisualStudio.Services.VsTask.InvokeWithWaitDialog(Action action)
bei Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)
bei Microsoft.VisualStudio.Services.VsTask.GetResult()</description>
<guid>{8FA8895A-868F-4319-82FD-A4805D8953CE}</guid>
<hr>80004003 - E_POINTER</hr>
<errorinfo></errorinfo>
</entry>
<entry>
<record>2208</record>
<time>2019/12/13 10:44:12.618</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [MultiLanguagePackage]</description>
<guid>{8FA8895A-868F-4319-82FD-A4805D8953CE}</guid>
<hr>80004003 - E_POINTER</hr>
<errorinfo></errorinfo>
</entry>
How can I interpret this information?
Does it contain any useful pointer to the cause of the error?
My package contains a reference to the NuGet package Micorosft.VisualStudio.SDK version 16.0.202.
It does not contain a specific reference to Microsoft.VisualStudio.Shell.15.0
I assume that the MultiLanguageService class belongs to your package implementation - it is doing something that causes a NullReferenceException. Such error should be easy to locate; the stack trace tells you that something is going wrong in MultiLangServices.SettingsService.InitOptionsPages(Package p) in ...SettingsService.cs:Zeile 24. Just put a breakpoint to line 24 and verify if everything behaves as expected.
I don´t think that it is related to a certain SDK-package or -assembly that you´ve referenced. If the code works for the majority of the users, there must be something in the code that may fail under certain circumstances; for instance, a configuration value that results in the reported NullReferenceException exception, if missing. I would inspect the implementation and at least add a proper exception handler so that, next time, a more precise error will be reported to the activity-log.
Related
I've followed the steps provided in the SpecFlow livingdoc documentation however when i try to generate LivingDoc, i'm hitting error.
Installed SpecFlow.Plus.LivingDoc.CLI
Tool 'specflow.plus.livingdoc.cli' is already installed.
Navigated to folder where .dll and .json file is located
Test_Project.dll and TestExecution.json is located here.
Executed "livingdoc test-assembly Test_Project.dll -t TestExecution.json"
Error message
Unhandled exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string. (Parameter 'startIndex')
at System.String.Substring(Int32 startIndex, Int32 length)
at System.String.Substring(Int32 startIndex)
at LivingDoc.CLI.Parser.TestAssemblyFeatureFileProvider.<>c__DisplayClass2_0.<GetFeatureFileResources>b__1(String fn) in D:\a\1\s\src\SpecFlow.Integration\LivingDoc.CLI\Parser\TestAssemblyFeatureFileProvider.cs:line 27
at System.Linq.Enumerable.SelectListIterator`2.ToList()
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at LivingDoc.CLI.Parser.TestAssemblyFeatureFileProvider.GetFeatureFileResources() in D:\a\1\s\src\SpecFlow.Integration\LivingDoc.CLI\Parser\TestAssemblyFeatureFileProvider.cs:line 25
at LivingDoc.CLI.Parser.Parser.Parse(String rootNodeTitle, String projectLanguage, String workItemPrefix, String workItemUrlTemplate) in D:\a\1\s\src\SpecFlow.Integration\LivingDoc.CLI\Parser\Parser.cs:line 33
at LivingDoc.CLI.ReportGenerator.Generate(GeneratorSource source, Parameters parameters) in D:\a\1\s\src\SpecFlow.Integration\LivingDoc.CLI\ReportGenerator.cs:line 73
at LivingDoc.CLI.ArgumentResolver.Handle(String workingFolder, GeneratorSource source, Parameters parameters) in D:\a\1\s\src\SpecFlow.Integration\LivingDoc.CLI\ArgumentResolver.cs:line 214
at LivingDoc.CLI.ArgumentResolver.<>c__DisplayClass5_0.<Resolve>b__0(Parameters p) in D:\a\1\s\src\SpecFlow.Integration\LivingDoc.CLI\ArgumentResolver.cs:line 161
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Delegate.DynamicInvoke(Object[] args)
at System.CommandLine.Invocation.ModelBindingCommandHandler.InvokeAsync(InvocationContext context)
at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseParseErrorReporting>b__21_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass25_0.<<UseVersionOption>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass23_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__22_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseParseDirective>b__20_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseDebugDirective>b__11_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__10_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass14_0.<<UseExceptionHandler>b__0>d.MoveNext()
Many thanks in advance :)
Reason behind this issue was, you had set the Platform target version to x86/x64, So the assembly not able to support.
Solution :
Change Platform version to Any CPU => Refer the screenshot for the same.
I came across issue with Simulated TempSensor (on Windows). When trying to run it as a module I am getting following error (logs from docker):Using transport Mqtt_Tcp_Only
Unable to find a root certificate file at c:/mnt/edgemodule/edge-device-ca.cert.pem.
Unhandled Exception: System.AggregateException: One or more errors occurred. (One or more errors occurred. (The remote certificate is invalid according to the validation procedure.)) ---> System.AggregateException: One or more errors occurred. (The remote certificate is invalid according to the validation procedure.) ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, ExceptionDispatchInfo exception)
at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.PartialFrameCallback(AsyncProtocolRequest asyncRequest)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Net.Security.SslState.InternalEndProcessAuthentication(LazyAsyncResult lazyResult)
at System.Net.Security.SslState.EndProcessAuthentication(IAsyncResult result)
at System.Net.Security.SslStream.EndAuthenticateAsClient(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization)
--- End of inner exception stack trace ---
at Microsoft.Azure.Devices.Client.DeviceClient.<>c.b__79_2(Task t)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- 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 SimulatedTemperatureSensor.Program.d__4.MoveNext() in /opt/vsts/work/1/s/edge-modules/SimulatedTemperatureSensor/src/Program.cs:line 105
--- 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 Microsoft.Azure.Devices.Client.Transport.Mqtt.Util.d__14.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 Microsoft.Azure.Devices.Client.Transport.Mqtt.MqttIotHubAdapter.d__34.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at SimulatedTemperatureSensor.Program.Main() in /opt/vsts/work/1/s/edge-modules/SimulatedTemperatureSensor/src/Program.cs:line 28
I am trying to run a service fabric project in visual studio 2015.
The following service fabric dependencies has been installed in the machine.
Microsoft Azure Service Fabric 5.6.210.9494
Microsoft Azure Service Fabric SDK 2.6.210.9494
Microsoft azure Service Fabric tools for Visual studio 1.6.50508.2
The project is getting build successfully. But while running the project the following error is occurring. The same dll is present in the machine. Please Help.
Could not load file or assembly 'Autofac.Integration.ServiceFabric' or one of its dependencies. An attempt was made to load a program with an incorrect format.
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.BadImageFormatException: Could not load file or assembly 'Autofac.Integration.ServiceFabric' or one of its dependencies. An attempt was made to load a program with an incorrect format.
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.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Autofac.Integration.ServiceFabric' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = Autofac.Integration.ServiceFabric
(Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: Autofac.Integration.ServiceFabric | Domain ID: 3
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///C:/A/MVCApp/WebApp/
LOG: Initial PrivatePath = C:\A\MVCApp\WebApp\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\A\MVCApp\WebApp\web.config
LOG: Using host configuration file: C:\Users\xxt\Documents\IISExpress\config\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/c767d98c/be7d29af/Autofac.Integration.ServiceFabric.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/c767d98c/be7d29af/Autofac.Integration.ServiceFabric/Autofac.Integration.ServiceFabric.DLL.
LOG: Attempting download of new URL file:///C:/A/MVCApp/WebApp/bin/Autofac.Integration.ServiceFabric.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
Stack Trace:
[BadImageFormatException: Could not load file or assembly 'Autofac.Integration.ServiceFabric' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +36
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +152
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +77
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +21
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +38
[ConfigurationErrorsException: Could not load file or assembly 'Autofac.Integration.ServiceFabric' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +738
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +217
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +170
System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +92
System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +290
System.Web.Compilation.BuildManager.ExecutePreAppStart() +157
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +549
[HttpException (0x80004005): Could not load file or assembly 'Autofac.Integration.ServiceFabric' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10044672
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
Try to run this command on PM Console:
Install-Package Autofac.Integration.ServiceFabric
Note: If you want to completely remove the old Autofac.Integration.ServiceFabric references, you can remove them from Manage NuGet Packages>Installed Packages menu and then remove the related lines from packages.config file in your project. After that it will not comeback again during building of the project.
I was attempting to add a 3rd party plug in Formulate to my umbraco site.
Something failed during the installation and I can no longer see any of the entries in the back office tree, although the site still runs.
When setting the config to debug:
(Umbraco version 7.3.4 assembly: 1.0.5820.25371)
Received an error from the server
Failed to retrieve data for application tree users
Value cannot be null.
Parameter name: value
EXCEPTION DETAILS:
System.ArgumentNullException: Value cannot be null.
Parameter name: value
STACKTRACE:
at Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(String cacheKey, Func1 getCacheItem, Nullable1 timeout, Boolean isSliding, CacheItemPriority priority, CacheItemRemovedCallback removedCallback, CacheDependency dependency)
at Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(String cacheKey, Func1 getCacheItem, Nullable1 timeout, Boolean isSliding, CacheItemPriority priority, CacheItemRemovedCallback removedCallback, String[] dependentFiles)
at Umbraco.Core.Services.ApplicationTreeService.GetAppTrees()
at Umbraco.Core.Services.ApplicationTreeService.GetApplicationTrees(String applicationAlias, Boolean onlyInitialized)
at Umbraco.Web.Trees.ApplicationTreeController.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Threading.Tasks.TaskHelpersExtensions.d__3`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ApiControllerActionInvoker.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ActionFilterResult.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Dispatcher.HttpControllerDispatcher.d__1.MoveNext()
I heard from Nicholas Westby, the author of Formulate and that got my site back.
Hi James,
I'm guessing you are talking about Formulate (I have made several Umbraco packages). Here's the quick fix:
If you have source control, simply undo the changes made by Formulate. If not, here's a few more steps.
Remove the Formulate DLL's from the bin folder.
Remove Formulate references from the web.config.
Remove Formulate references from any of the files in the config folder (e.g., trees.config, applications.config, dashboard.config).
That should get your site working again. If you'd like some assistance getting Formulate up and running, post a message here and we can start troubleshooting: https://our.umbraco.org/projects/backoffice-extensions/formulate/formulate-questions/
Regards,
Nick
everytime cruise control checks for TFS modifications, we get the following error:
BUILD EXCEPTION
Error Message: System.FormatException: Die Zeichenfolge wurde nicht als gültiges
DateTime erkannt. bei System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi,
DateTimeStyles styles) bei
ThoughtWorks.CruiseControl.Core.Sourcecontrol.VstsHistoryParser.ParseChangeSet(StringBuilder
changeSet) bei ThoughtWorks.CruiseControl.Core.Sourcecontrol.VstsHistoryParser.Parse(TextReader
vstsLog, DateTime from, DateTime to) bei
ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vsts.GetModifications(IIntegrationResult from,
IIntegrationResult to) bei
ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModificationsWithLogging
(ISourceControl sc, IIntegrationResult from, IIntegrationResult to) bei
ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModifications(ISourceControl
sourceControl, IIntegrationResult lastBuild, IIntegrationResult thisBuild) bei
ThoughtWorks.CruiseControl.Core.IntegrationRunner.GetModifications(IIntegrationResult from,
IIntegrationResult to) bei
ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest request)
Project: JW.Consumer.DB
Date of build: 2011-03-01 08:56:13
Running time: 00:00:01
Integration Request: Build (IfModificationExists) triggered from continuous
Force build works well.
We use TFS 2010 and CC.Net 1.6
Our ccnet.config looks like this:
<sourcecontrol type="vsts" >
<server>http://tfsserver1:8080/tfs</server>
<project>$/ProjectXy</project>
<workingDirectory>C:\WorkingDir</workingDirectory>
<cleanCopy>false</cleanCopy>
<autoGetSource>true</autoGetSource>
<force>true</force>
<deleteWorkspace>false</deleteWorkspace>
</sourcecontrol>
<triggers>
<intervalTrigger name="continuous" seconds="300" buildCondition="IfModificationExists" initialSeconds="30" />
</triggers>
Does anybody know a solution?
My guess is there's bug with different date format (there are some bugs still open with no reply).
Try to modify date & time system regional settings.
HTH