Where to find this namespace
-
2012年3月15日 11:17
I am trying to use ImageEditorControl from Microsoft.LightSwitch.Extensions.
I found and included Microsoft.LightSwitch.Extensions.Client assembly but when I try to build my control
I get this error:
Invalid XmlnsDeclaration occurs in assembly 'Microsoft.LightSwitch.Extensions.Client, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. XmlnsDeclaration references a namespace 'Microsoft.LightSwitch.Extensions.Model.Storage.Internal' that is not in the assembly.
I cannot find a relevant dll nowhere in _Pvt_Extensions (where I found the other dll). Can anyone please help?
1+1 = 3 for large values of 1
全部回复
-
2012年3月16日 4:30
I don't think it's a matter of a missing assembly....
1. Create a LS app that includes the ImageEditorControl somewhere.
2. Note all the assemblies that are referenced... add every one of them to your extensions project...
3. You'll still get the error (at least I did when I tried it).
-
2012年3月16日 7:29
Hi Jewel
First of all thanks for the ratings on my samples :-)
Secondly, I have realized what you say very soon, using common sense. I was not implementing an extension but custom control within my client project (as I needed my custom control to be domain-aware) so as you say all references where in place. So what I did was do drop (not without pain) the idea of using ImageEditorControl for my custom control. I found an other way around it. Actually what I wanted was to take advantage of the load and clear image buttons for the image.
1+1 = 3 for large values of 1
- 已编辑 Kostas Christodoulou 2012年3月16日 9:04
- 已编辑 Kostas Christodoulou 2012年3月16日 9:05
-
2012年4月3日 6:55
Hey Kostas,
did you ever get around to solving your issue (one way or the workaround way)?
Are you 100% sure that the missing namespace is "Microsoft.LightSwitch.Extensions.Model.Storage.Internal"? I accidentely found one VERY similar namespace:
1. Open the LS solution and flip to "file view". On the solution, select "show all files/folders".
2. In the ClientGenerated project (non existing in LS 11), open the references
3. The Microsoft.LightSwitch.Model.Xaml.Client.dll assembly seems to contain a similar namespace to what you were looking for.
Either way, don't give up! There's always a way :-)
It's your story - time to switch on the innovation. || About me || <a href="http://janvanderhaegen.wordpress.com>LightSwitch blog
- 已标记为答案 Dino HeModerator 2012年4月11日 8:25

