question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

An unhandled exception occurred: Value cannot be null. Parameter name: self

See original GitHub issue

I’m using Fody for the first time and I’m getting an unhandled exception. It’s a netstandard 1.1 library project. I added both Fody and ReactiveUI.Fody packages and then added the FodyWeavers.xml by hand. The view model has two constructors (one without parameters and another with a parameter). It has two ObservableAsProperty but exceptions still happens when I remove them.

1> Fody: Fody (version 1.29.4.0) Executing 1> Fody/ReactiveUI: ReactiveUI 7.0.0.0 1> Fody/ReactiveUI: ReactiveUI.Fody.Helpers 2.0.65.0 1> Fody/ReactiveUI: ReactiveUI 7.0.0.0 1> Fody/ReactiveUI: ReactiveUI.Fody.Helpers 2.0.65.0 1>MSBUILD : error : Fody: An unhandled exception occurred: 1>MSBUILD : error : Exception: 1>MSBUILD : error : Value cannot be null. 1>MSBUILD : error : Parameter name: self 1>MSBUILD : error : StackTrace: 1>MSBUILD : error : at Mono.Cecil.Rocks.TypeDefinitionRocks.GetConstructors(TypeDefinition self) 1>MSBUILD : error : at ReactiveUI.Fody.ObservableAsPropertyWeaver.Execute() in C:\projects\reactiveui-fody\ReactiveUI.Fody\ObservableAsPropertyWeaver.cs:line 41 1>MSBUILD : error : at ReactiveUI.Fody.ModuleWeaver.Execute() in C:\projects\reactiveui-fody\ReactiveUI.Fody\ModuleWeaver.cs:line 31 1>MSBUILD : error : at lambda_method(Closure , Object ) 1>MSBUILD : error : at InnerWeaver.ExecuteWeavers() in C:\projects\fody\FodyIsolated\InnerWeaver.cs:line 161 1>MSBUILD : error : at InnerWeaver.Execute() in C:\projects\fody\FodyIsolated\InnerWeaver.cs:line 82 1>MSBUILD : error : Source: 1>MSBUILD : error : Mono.Cecil.Rocks 1>MSBUILD : error : TargetSite: 1>MSBUILD : error : System.Collections.Generic.IEnumerable`1[Mono.Cecil.MethodDefinition] GetConstructors(Mono.Cecil.TypeDefinition) 1>MSBUILD : error : 1> Fody: Finished Fody 22ms.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
kswollcommented, Aug 24, 2017

Thanks for looking into it, @RostislavST, I’ll get to it this weekend.

2reactions
kswollcommented, Nov 19, 2016

Hi, sorry for not getting back to you sooner. I’ll take a look at it this weekend.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Value cannot be null. Parameter name: source
I got this error when I had an invalid Type for an entity property. public Type ObjectType {get;set;}. When I removed the property...
Read more >
Value cannot be null. Parameter name: _unity_self - ...
I am making 2d game using newest unity, 2022.2.17f1 Now I met this error and this does not indicate any of my code's...
Read more >
[Solved] Value cannot be null. Parameter name: source
This error is usually related to the EF. Try using debugger and narrow down your issue and the post the relevant code and...
Read more >
Why do I get an error "value cannot be null (Parameter ...
I tried to create a sample using your json string and the Endpoint class. The result is that the appsettings.json file was updated,...
Read more >
Question - Value cannot be null. Parameter name: source
Based on the error message, it's fairly obvious that Login_Form.Upic is null . You have shown us how that property/field is declared or ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found