cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
steffen_mangold
Level 2

Visual Studio Designer: ArgumentNullException - Parameter: sp

Hi,

there is still a Major bug, with makes it me impossible to get it run in VS 2012.

My enviroment:
VS 2012 (SP1)
InstallShield express 2012 Spring

I had a big Project map with many different Projects inside.
One of them is a InstallShield Setup Project.
If the installShield Project is loaded to the Project map, if I open a Xaml designer (no matter with other Project) after a few seconds the designer Show an error.

Error:
ArgumentNullException: Value can not be null.
Parameter name: sp

StackTrace:
bei Microsoft.VisualStudio.Shell.ServiceProvider..ctor(IServiceProvider sp, Boolean defaultServices)
bei Microsoft.VisualStudio.ExpressionHost.Platform.CodeDomLanguageInformation.get_CodeDomProvider()
bei Microsoft.VisualStudio.ExpressionHost.Platform.CodeDomLanguageInformation.get_FileExtension()
bei Microsoft.VisualStudio.ExpressionHost.HostServices.HostProject.Microsoft.Expression.DesignHost.IHostProject.get_CodeDocumentTypeIdentifier()
bei Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteHostProject.b__18()
bei Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass16`1.b__15()
bei Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

As soon as I unload the installShield Project from the Project map, all works normal, without the error.

I can reproduce this on two different Computers (with the same Project map).

Regards Steffen
Labels (1)
0 Kudos
(1) Reply
Jason_Rolls
Level 2

I have exactly the same problem and it is driving me nuts. I don't get it on a machine without installshield. Does anyone have a solution to this issue?

I came here from this link also discussing the problem
http://social.msdn.microsoft.com/Forums/en/winformsdesigner/thread/7f073745-6b97-4ab3-8d4e-38ddf117fe2d

Thanks


Windows 7 VS2012.

ArgumentNullException: Value cannot be null.
Parameter name: sp

at Microsoft.VisualStudio.Shell.ServiceProvider..ctor(IServiceProvider sp, Boolean defaultServices)
at Microsoft.VisualStudio.ExpressionHost.Platform.CodeDomLanguageInformation.get_CodeDomProvider()
at Microsoft.VisualStudio.ExpressionHost.Platform.CodeDomLanguageInformation.get_FileExtension()
at Microsoft.VisualStudio.ExpressionHost.HostServices.HostProject.Microsoft.Expression.DesignHost.IHostProject.get_CodeDocumentTypeIdentifier()
at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteHostProject.b__18()
at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass16`1.b__15()
at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
0 Kudos