# \[68285 Closed\] Value cannot be null

**URL:** https://talk.remobjects.com/t/68285-closed-value-cannot-be-null/4364
**Category:** Oxygene
**Created:** [May 23, 2014, 4:11pm UTC](https://talk.remobjects.com/t/68285-closed-value-cannot-be-null/4364 "2014-05-23T16:11:11Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![stemlett](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@stemlett](https://talk.remobjects.com/u/stemlett)
#### Post date: [May 23, 2014, 4:11pm UTC](https://talk.remobjects.com/t/68285-closed-value-cannot-be-null/4364/1 "2014-05-23T16:11:12Z")

</div>

Hi,

When trying to create a new project i get an exception in Visual Studio:

Value cannot be null.  
Parameter name: key

I get this if try creating an iOS project or Android. I’ve just tried WPF and that worked ok.

As a bit of background, you provided me with a private build to test a fix for using an Android JAR (TeeChart) which also seemed to include Hydrogene. I have since uninstalled this and then re-installed from the Oxygene download (7.1.73.1515) I don’t know if this is significant.

I’m using the Visual Studio 2012 Shell.

Best regards,

Simon

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [May 23, 2014, 5:04pm UTC](https://talk.remobjects.com/t/68285-closed-value-cannot-be-null/4364/2 "2014-05-23T17:04:03Z")

</div>

> [@stemlett](#):
>
> I don’t know if this is significant.

it could be.normally its safe to downgrade, but this does sound odd. cany reason tou downmgraded? can you try the latest Gamma we just published today?

---

<div class="post-metadata">

### Author: ![stemlett](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@stemlett](https://talk.remobjects.com/u/stemlett)
#### Post date: [May 23, 2014, 5:13pm UTC](https://talk.remobjects.com/t/68285-closed-value-cannot-be-null/4364/3 "2014-05-23T17:13:34Z")

</div>

I uninstalled because when you provided me with a build to test (7.1.72.1496) it included Hydrogene for which i don’t have a licence and so I thought I’d better use the latest release version.

I’ll download the gamma…

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [May 23, 2014, 5:31pm UTC](https://talk.remobjects.com/t/68285-closed-value-cannot-be-null/4364/4 "2014-05-23T17:31:08Z")

</div>

> [@stemlett](#):
>
> it included Hydrogene for which i don’t have a licence and so I thought I’d better use the latest release version.

Ah, no worries. You’d have been in trial mode got Hydrogene…

---

<div class="post-metadata">

### Author: ![stemlett](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@stemlett](https://talk.remobjects.com/u/stemlett)
#### Post date: [May 23, 2014, 5:53pm UTC](https://talk.remobjects.com/t/68285-closed-value-cannot-be-null/4364/5 "2014-05-23T17:53:04Z")

</div>

Hi,

Downloaded and installed the Gamma but with the same result. When I click ok to create the new solution i get the error. Visual Studio has created the folder and the .sln file but it is empty.

---

<div class="post-metadata">

### Author: ![stemlett](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@stemlett](https://talk.remobjects.com/u/stemlett)
#### Post date: [May 30, 2014, 10:11am UTC](https://talk.remobjects.com/t/68285-closed-value-cannot-be-null/4364/6 "2014-05-30T10:11:18Z")

</div>

Hi,

Just tried installing Oxygene again with Visual Studio 2013 (7.1.73.1515) and I get the same error (I was previously using VS2012). A fresh install on a virtual machine on my mac works ok.

As I said, I can create a WPF application ok, just not an Android or iOS app.

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [June 6, 2014, 11:36am UTC](https://talk.remobjects.com/t/68285-closed-value-cannot-be-null/4364/7 "2014-06-06T11:36:26Z")

</div>

Thanks, logged as bugs://68285: Value cannot be null

---

<div class="post-metadata">

### Author: ![stemlett](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@stemlett](https://talk.remobjects.com/u/stemlett)
#### Post date: [August 21, 2014, 9:41am UTC](https://talk.remobjects.com/t/68285-closed-value-cannot-be-null/4364/8 "2014-08-21T09:41:30Z")

</div>

Is there any more information on this? I’ve tried completely uninstalling Oxygene and deleting the RemObjects folder from Program Files (x86). I then re-installed Oxygene and I’ve downloaded my licence file again. Whenever I try and create a new project in Visual Studio 2012 or 2013 then I get

`Value cannot be null. Parameter name: key`

If I try and open an existing application Visual Studio crashes and restarts. This is proving to be a bit of a pain in the backside at the moment as I want to use my main development machine.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [August 21, 2014, 11:38am UTC](https://talk.remobjects.com/t/68285-closed-value-cannot-be-null/4364/9 "2014-08-21T11:38:48Z")

</div>

Do you get any crash log in Windows Event Viewer for the crash? If not, do you get offered to try and debug the crash when it happens (and if so, can you say Yes, and then report back the call stack you see when it launches the debugger)?

I also apologize that this issue has not been followed up with since June; this should not have happened. I hope we can resolve this quick, now.

thanx,  
marc

---

<div class="post-metadata">

### Author: ![stemlett](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@stemlett](https://talk.remobjects.com/u/stemlett)
#### Post date: [August 21, 2014, 12:39pm UTC](https://talk.remobjects.com/t/68285-closed-value-cannot-be-null/4364/10 "2014-08-21T12:39:01Z")

</div>

If I try and create a new project e.g. Android Application the folder gets created for the new project which contains the project folder (which is empty) and a solution file. Visual Studio then thows up a dialog headed ‘Microsoft Visual Studio’ containing a red warning cross and ‘Value cannot be null. Parameter name: key’. I click OK and am returned to an empty Visual Studio.

If I try and open an existing Android project,the VS window goes white and restarts after checking for a problem I don’t get any option to debug the crash. In the event log is the following .NET Runtime Error:

> Application: devenv.exe  
> Framework Version: v4.0.30319  
> Description: The process was terminated due to an unhandled exception.  
> Exception Info: System.NullReferenceException  
> Stack:  
> at System.Runtime.CompilerServices.AsyncMethodBuilderCore.b\_\_0(System.Object)  
> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)  
> at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)  
> at System.Windows.Threading.DispatcherOperation.InvokeImpl()  
> at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)  
> at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)  
> at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)  
> at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)  
> at System.Windows.Threading.DispatcherOperation.Invoke()  
> at System.Windows.Threading.Dispatcher.ProcessQueue()  
> at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)  
> at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)  
> at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)  
> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)  
> at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)  
> at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)  
> at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)  
> at Microsoft.VisualStudio.Shell.Interop.IVsUIDataSource.Invoke(System.String, System.Object, System.Object ByRef)  
> at Microsoft.Internal.VisualStudio.PlatformUI.DataSource.Invoke(System.String, System.Object, System.Object ByRef)  
> at Microsoft.VisualStudio.PlatformUI.VsCommand.Execute(System.Object)  
> at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(System.Windows.Input.ICommandSource, Boolean)  
> at System.Windows.Controls.MenuItem.InvokeClickAfterRender(System.Object)  
> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)  
> at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)  
> at System.Windows.Threading.DispatcherOperation.InvokeImpl()  
> at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)  
> at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)  
> at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)  
> at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)  
> at System.Windows.Threading.DispatcherOperation.Invoke()  
> at System.Windows.Threading.Dispatcher.ProcessQueue()  
> at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)  
> at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)  
> at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)  
> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)  
> at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)  
> at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)  
> at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

Followed by the follwing Application Error:

> Faulting application name: devenv.exe, version: 12.0.21005.1, time stamp: 0x524fcb34  
> Faulting module name: KERNELBASE.dll, version: 6.1.7601.18409, time stamp: 0x53159a86  
> Exception code: 0xe0434352  
> Fault offset: 0x0000c42d  
> Faulting process id: 0x75c  
> Faulting application start time: 0x01cfbd3a9202af1e  
> Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe  
> Faulting module path: C:\Windows\syswow64\KERNELBASE.dll  
> Report Id: 1c793a30-292f-11e4-8ddb-3cd92b792ad6

I just installed VS2012 and VS2013 and Oxygene and re-installed OXygene 7.1.75.1557 with VS2013 and it the behaviour is the same.

Edited to add Windows Error Report:

[Report - Copy.txt](https://talk.remobjects.com/uploads/default/738/98dfee04d28883bf.txt) (41.9 KB)

---

<div class="post-metadata">

### Author: ![viktoriad](https://talk.remobjects.com/user_avatar/talk.remobjects.com/viktoriad/32/11148_2.png) [@viktoriad](https://talk.remobjects.com/u/viktoriad)
#### Post date: [August 28, 2014, 12:16pm UTC](https://talk.remobjects.com/t/68285-closed-value-cannot-be-null/4364/11 "2014-08-28T12:16:49Z")

</div>

Hello,

We still have problems in reproducing the issue locally. Could you please try to find where exactly the issue happens using next steps:

1. Start two VS instances.
2. Attach one VS to another (using Debug =\> Attach to Process).
3. Enable breaking on Common Language Runtime Exceptions using Debug =\> Exceptions =\> enable the checkbox.
4. Swith to another VS instance and try to create the new android (or ios) project.  
During creating there might happen several other exceptions (e.g. FileNotFoundException or SocketException) but they do not influence the workability.  
When the Value cannot be null exception occurs please copy the callstack here.

Thanks in advance.

---

<div class="post-metadata">

### Author: ![stemlett](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@stemlett](https://talk.remobjects.com/u/stemlett)
#### Post date: [September 1, 2014, 4:44pm UTC](https://talk.remobjects.com/t/68285-closed-value-cannot-be-null/4364/12 "2014-09-01T16:44:46Z")

</div>

Hello,

Sorry for the delay but I was away on holiday last week. Stack as requested:

```
    System.ArgumentNullException crossed a native/managed boundary
  HResult=-2147467261
  Message=Value cannot be null.
Parameter name: key
  Source=mscorlib
  ParamName=key
  StackTrace:
       at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
       at System.Collections.Generic.Dictionary`2.set_Item(TKey key, TValue value)
       at RemObjects.Oxygene.CrossBox.ManagerBase.InitRegistryServers()
       at RemObjects.Oxygene.CrossBox.ManagerBase..ctor()
       at RemObjects.Oxygene.CrossBox.CooperManager..ctor()
       at RemObjects.Oxygene.CrossBox.CooperManager.GetInstance()
       at RemObjects.Oxygene.CrossBox.CooperManager.get_Instance()
       at RemObjects.Oxygene.VisualStudio.OxygeneProject.OxygeneProjectFactory.CreateProject(Project aProject)
       at RemObjects.VisualStudio.Project.ProjectFactory.PreCreateForOuter(IntPtr outerProjectIUnknown)
       at Microsoft.VisualStudio.Shell.Flavor.FlavoredProjectFactoryBase.Microsoft.VisualStudio.Shell.Flavor.IVsAggregatableProjectFactoryCorrected.PreCreateForOuter(IntPtr outerProjectIUnknown, IntPtr& projectIUnknown)
  InnerException: 

```

Best regards,

Simon

---

<div class="post-metadata">

### Author: ![viktoriad](https://talk.remobjects.com/user_avatar/talk.remobjects.com/viktoriad/32/11148_2.png) [@viktoriad](https://talk.remobjects.com/u/viktoriad)
#### Post date: [September 2, 2014, 8:53am UTC](https://talk.remobjects.com/t/68285-closed-value-cannot-be-null/4364/13 "2014-09-02T08:53:52Z")

</div>

Hello,

Thank you for the callstack. The bug is fixed, the fix will be available in the next release (or you can use betta build).

Best regards.

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [September 2, 2014, 8:54am UTC](https://talk.remobjects.com/t/68285-closed-value-cannot-be-null/4364/14 "2014-09-02T08:54:17Z")

</div>

bugs://68285 got closed as fixed for release Andromeda Class

---

<div class="post-metadata">

### Author: ![viktoriad](https://talk.remobjects.com/user_avatar/talk.remobjects.com/viktoriad/32/11148_2.png) [@viktoriad](https://talk.remobjects.com/u/viktoriad)
#### Post date: [September 2, 2014, 9:33am UTC](https://talk.remobjects.com/t/68285-closed-value-cannot-be-null/4364/15 "2014-09-02T09:33:25Z")

</div>

Also if you need to continue right now you can try to clear the C:\Users\Viktoria\AppData\Roaming\RemObjects Software\Oxygene\CrossBoxServers.xml file. Open it, find the item that has no name for it, e.g.

```
<server address="192.168.0.93" port="8721" />
```

and remove that entry.

Best regards.

---

<div class="post-metadata">

### Author: ![stemlett](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@stemlett](https://talk.remobjects.com/u/stemlett)
#### Post date: [September 2, 2014, 9:51am UTC](https://talk.remobjects.com/t/68285-closed-value-cannot-be-null/4364/16 "2014-09-02T09:51:00Z")

</div>

Brilliant, that works perfectly.

Thank you,

Simon
