DNN ModuleID not being passed from the code behind to the ascx - angularjs

Backstory: I use a DNN (DotNetNuke) content management system to host VB.NET/Angular1 modules.
I'm currently having an issue where a value in the code-behind is not accessible in the View.ascx of my module. This is causing a fatal runtime error.
The code behind where the value is being passed to a publicly defined variable
The View.ascx where the variable is being used
Erreur: icod est présentement indisponible.
DotNetNuke.Services.Exceptions.ModuleLoadException: C:\inetpub\wwwroot\FRANCO-NORD-www1\DesktopModules\icod\View.ascx(2): error BC30451: 'modID' n'est pas déclaré. Il peut être inaccessible en raison de son niveau de protection. ---> System.Web.HttpCompileException: C:\inetpub\wwwroot\FRANCO-NORD-www1\DesktopModules\icod\View.ascx(2): error BC30451: 'modID' n'est pas déclaré. Il peut être inaccessible en raison de son niveau de protection.
à System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
à System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
à System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
à System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath)
à DotNetNuke.UI.ControlUtilities.LoadControl[T](TemplateControl containerControl, String ControlSrc)
à DotNetNuke.UI.Modules.WebFormsModuleControlFactory.CreateModuleControl(TemplateControl containerControl, ModuleInfo moduleConfiguration)
à DotNetNuke.UI.Modules.ModuleControlFactory.LoadModuleControl(TemplateControl containerControl, ModuleInfo moduleConfiguration)
à DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() --- Fin de la trace de la pile d'exception interne --
I noticed that they reference View.ascx(2) as if there are two physical versions of the file in the project or on the server, but this is not the case.
Any ideas on what may be going on here? Please let me know should the post require additional information.

I've resolved the issue by rebuilding my local development instance of DNN to a version higher than that of the production instance and rebuilt the module. I believe one of the DLLs we use in our environment, PetaPoco was causing an issue when the module was installed on a lower version of DNN. Previously my local copy of DNN was 9.1.0.367, it is now 9.1.1.129 whereas the production instance is at 9.1.1.113 .
It's not ideal that fixing it required a total reinstantiation of my development environment, but I believe a simple upgrade to an equal or greater version of the destination site would have fixed the issue as well.

My best guess, based on the updated screenshot, is that your full class name is incorrect in your View.ascx. It is expecting a codebehind class "Christoc.Modules.icod.View", but no namespace is defined in your partial class which means it will default to your default project namespace (which I am assuming is different).
I would try two things.
1) Ensure the namespace is defined in your View.ascx.cs
Namespace Christoc.Modules.icod
Partial Class View
...
End Class
End Namespace
2) Make sure you are building your module's assembly into the correct /bin folder of your DNN installation.

Related

How to use code file that inherits `Custom.Dnn.Code12` within `Custom.Dnn.Razor12` file?

I want to write a custom view using new version of razor page in 2sxc module. My view "_MyView.cshtml" inherits Custom.Dnn.Razor12. So I've created a file "_MyView.code.cshtml" which starts with #inherits Custom.Dnn.Code12 (tried #inherits ToSic.Sxc.Dnn.RazorComponent as well but didn't help).
So when I'm trying to call something like this within "_MyView.cshtml":
#{
Code.MyMethod();
}
it gives me error:
Error: System.Web.HttpCompileException (0x80004005): d:\Projects\mywebsite.com.ua\Host\Portals\2\2sxc\MyApp_MyView.cshtml(5): error CS0103: The name 'Code' does not exist in the current context at System.Web.Compilation.AssemblyBuilder.Compile() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) at System.Web.Compilation.BuildManager.GetCompiledType(VirtualPath virtualPath) at ToSic.Sxc.Engines.RazorEngine.CreateWebPageInstance() in C:\Projects\2sxc\2sxc\Src\Dnn\ToSic.Sxc.Dnn.Razor\Engines\Razor\RazorEngine.cs:line 146 at ToSic.Sxc.Engines.RazorEngine.InitWebpage() in C:\Projects\2sxc\2sxc\Src\Dnn\ToSic.Sxc.Dnn.Razor\Engines\Razor\RazorEngine.cs:line 155 at ToSic.Sxc.Engines.RazorEngine.Init() in C:\Projects\2sxc\2sxc\Src\Dnn\ToSic.Sxc.Dnn.Razor\Engines\Razor\RazorEngine.cs:line 80 at ToSic.Sxc.Engines.EngineBase.Init(IBlock block) in C:\Projects\2sxc\2sxc\Src\Sxc\ToSic.Sxc\Engines\EngineBase.cs:line 77 at ToSic.Sxc.Blocks.BlockBuilder.GetEngine() in C:\Projects\2sxc\2sxc\Src\Sxc\ToSic.Sxc\Blocks\BlockBuilder_Render.cs:line 227 at ToSic.Sxc.Dnn.Web.DnnClientResources.NeedsPre1025Behavior() in C:\Projects\2sxc\2sxc\Src\Dnn\ToSic.Sxc.Dnn.Core\Dnn\Web\DnnClientResources.cs:line 95 at ToSic.Sxc.Dnn.View.<>c__DisplayClass13_0.<Page_Load>b__1() in C:\Projects\2sxc\2sxc\Src\Dnn\ToSic.Sxc.Dnn\View.ascx.cs:line 82 at ToSic.Sxc.Dnn.View.TryCatchAndLogToDnn(Action action, LogCall timerWrap) in C:\Projects\2sxc\2sxc\Src\Dnn\ToSic.Sxc.Dnn\View.ascx.Errors.cs:line 22 - CONTEXT: Page: 126; Module: 1724
I understand that if I keep using old classes it might work now but it might stop working later. So how do I use this one?
I tried to look through 2sxc documentation and github code, but I didn't find a single example of it.
So what am I doing wrong? How do I use it?
The Code.xxx convention was introduced around v11 because it looked like a good idea. It kind of felt like a separation of code and layout.
https://docs.2sxc.org/net-code/razor/code-behind.html
Basically it was a kind of simplification, but not major, since you could already just do something like var code = CreateInstance("razorfile.cshtml"); to get the same effect.
But as we went to v12 and supported Oqtane - which was .net Core 3.0 at that time, we realized that this will never work on Oqtane. To us it's really important to keep the API consistent across platforms because otherwise the docs get really confusing.
Since it was such a minor feature, we decided to not support it any more on newer base classes.
So if you do have shared code, just use a something.cs file and use CreateInstance("something.cs").
For a simulated code-behind which utilizez Razor features you can still create a _xyz.code.cshtml and also instantiate it with CreateInstance(...) but this would never work in Oqtane.

2sxc 9.10 Cannot assign method group to an implicitly-typed local variable

I have a 2sxc app with a list and details view in a Razor template. I have used it on a few site without issue. I normally export the app and import it into the new site and it works fine. However I'm currently getting an error trying to use the app in DNN 8.4 and 2sxc 9.10 when I select the app:
Error: System.Web.HttpCompileException (0x80004005): c:\inetpub\vhosts\xxxxxxxxxx.co.nz\httpdocs\Portals\1\2sxc\Projects\_projectsSLS.cshtml(10): error CS0815: Cannot assign method group to an implicitly-typed local variable at System.Web.Compilation.AssemblyBuilder.Compile() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) at System.Web.Compilation.BuildManager.GetCompiledType(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetCompiledType(String virtualPath) at ToSic.SexyContent.Engines.RazorEngine.CreateWebPageInstance() in C:\Projects\2SexyContent\Web\DesktopModules\ToSIC_SexyContent\2Sexy Content Razor\RazorEngine.cs:line 71 at ToSic.SexyContent.Engines.RazorEngine.InitWebpage() in C:\Projects\2SexyContent\Web\DesktopModules\ToSIC_SexyContent\2Sexy Content Razor\RazorEngine.cs:line 106 at ToSic.SexyContent.Engines.RazorEngine.Init() in C:\Projects\2SexyContent\Web\DesktopModules\ToSIC_SexyContent\2Sexy Content Razor\RazorEngine.cs:line 26 at ToSic.SexyContent.Engines.EngineBase.Init(Template template, App app, ModuleInfo hostingModule, IDataSource dataSource, InstancePurposes instancePurposes, SxcInstance sxcInstance, Log parentLog) in C:\Projects\2SexyContent\Web\DesktopModules\ToSIC_SexyContent\SexyContent\Engines\EngineBase.cs:line 58 at ToSic.SexyContent.SxcInstance.GetRenderingEngine(InstancePurposes renderingPurpose) in C:\Projects\2SexyContent\Web\DesktopModules\ToSIC_SexyContent\SexyContent\SxcInstance.cs:line 265 at ToSic.SexyContent.SxcInstance.Render() in C:\Projects\2SexyContent\Web\DesktopModules\ToSIC_SexyContent\SexyContent\SxcInstance.cs:line 222
This normally just runs. Any advice on what the issue may be?
I get the same error trying to run the Simple Parent/Child App with 2 Pages app.
This is probably due to a minor breaking change in 9.3 or 9.8. 2sxc 9.14 gives you better error messages so you can fix it yourself, but it basically points you to this blog post: https://2sxc.org/en/blog/post/fixing-the-breaking-change-on-tosic-eav-ientity-in-2sxc-9-3 or this one https://2sxc.org/en/blog/post/fixing-the-breaking-change-in-2sxc-9-8-list-instead-of-dictionary

Why is nancy complaining about a missing reference for System?

I added a X509Certificate2 property to my model, and now my razor view won't compile. The exact error message is...
[CS0012] Line: 84 Column: 18 - Le type
'System.Security.Cryptography.X509Certificates.X509Certificate2' est
défini dans un assembly qui n'est pas référencé. Vous devez
ajouter une référence à l'assembly 'System, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089'. (show)
Sorry for my french, but you get the idea.
X509Certificate2 is defined in System.dll, and I have a reference for System in the project.
Ok silly me again. References needed by razor need to be explicitly listed in web.config. It's not asking for a project reference. This is all explained here, in the "Configuring Razor" section.

WPF designer fails to load in VS 11 beta

I'm experiencing a weird error with the visual studio 11 beta WPF designer (i.e. google does not return any results while searching for a part of the stacktrace)
Here is the problem:
When I create a WPF application project, and then add windows or usercontrols to it, I have no problems editing them in the embedded WPF designer.
But when I create a WPF user control project, I cannot manage to get it working: I have the weird error I pasted below.
I'm targeting .Net 4.5 ... and my VS is in french (sorry).
I pasted the text for this question to be searcheable, and an image as well, for readability.
EDIT: I would translate the first part of the error message as (sorry for my english...)
Trying to load an assembly from a network source, which has implied using the assembly in sandbox mode in previous version of .Net framework. Since this .Net framework version does not activate CAS strategy by default, this loading might be dangerous.
etc...
System.NotSupportedException Tentative de chargement d'un assembly à
partir d'un emplacement réseau qui aurait entraîné l'utilisation de
l'assembly en mode Bac à sable (sandbox) dans les versions antérieures
du .NET Framework. Cette version du .NET Framework n'activant pas la
stratégie CAS par défaut, ce chargement peut être dangereux. Si ce
chargement n'est pas destiné à utiliser l'assembly en mode Bac à sable
(sandbox), activez le commutateur loadFromRemoteSources. Pour plus
d'informations, consultez
http://go.microsoft.com/fwlink/?LinkId=155569. à
Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.DirectInvoke[T](WaitHandle
abort, Func1 func) à
Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle1
targetObject, Func1 func) à
Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle1
targetObject, Func`2 func) à
Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner(IHostSourceItem
item, IHostTextEditor editor) à
Microsoft.Expression.DesignHost.IsolatedDesignerService.CreateDesignerViewInfo(IIsolationTarget
isolationTarget, IHostSourceItem item, IHostTextEditor editor,
CancellationTokenSource cancelSource)
System.NotSupportedException Tentative de chargement d'un assembly à
partir d'un emplacement réseau qui aurait entraîné l'utilisation de
l'assembly en mode Bac à sable (sandbox) dans les versions antérieures
du .NET Framework. Cette version du .NET Framework n'activant pas la
stratégie CAS par défaut, ce chargement peut être dangereux. Si ce
chargement n'est pas destiné à utiliser l'assembly en mode Bac à sable
(sandbox), activez le commutateur loadFromRemoteSources. Pour plus
d'informations, consultez
http://go.microsoft.com/fwlink/?LinkId=155569.
Server stack trace: at
Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.CallQueue.WaitForCompletion(BlockingCall
call) at
Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.CallQueue.Invoke(BlockingCall
call) at
Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.CallQueue.Invoke[T](Func1
func, WaitHandle aborted) at
Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn[TResult](IRemoteObject
targetObject, Func1 func) at
Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem
remoteItem, IRemoteHostTextEditor remoteEditor) at
System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr
md, Object[] args, Object server, Object[]& outArgs) at
System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage
msg)
Exception rethrown at [0]: à
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg) à
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type) à
Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem
remoteItem, IRemoteHostTextEditor remoteEditor) à
Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass8.b__7(IRemoteDesignerService
d) à
Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass42.<MarshalOut>b__3()
à
Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.DirectInvoke[T](WaitHandle
abort, Func1 func)
System.NotSupportedException Tentative de chargement d'un assembly à
partir d'un emplacement réseau qui aurait entraîné l'utilisation de
l'assembly en mode Bac à sable (sandbox) dans les versions antérieures
du .NET Framework. Cette version du .NET Framework n'activant pas la
stratégie CAS par défaut, ce chargement peut être dangereux. Si ce
chargement n'est pas destiné à utiliser l'assembly en mode Bac à sable
(sandbox), activez le commutateur loadFromRemoteSources. Pour plus
d'informations, consultez
http://go.microsoft.com/fwlink/?LinkId=155569. at
System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence
evidence) at System.Reflection.Assembly.LoadFile(String path) at
Microsoft.Expression.Utility.AssemblyHelper.LoadFile(String path)
at
Microsoft.Expression.DesignSurface.Assemblies.AssemblyService.CreateClassicShadowCopy(IHostProject
project, String assemblySourcePath) at
Microsoft.Expression.DesignSurface.Assemblies.AssemblyService.ResolveShadowCopyAssembly(IHostProject
project, String path) at
Microsoft.Expression.DesignSurface.Assemblies.AssemblyService.ResolveAssembly(IHostProject
project, String path) at
Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyResolver.GetAssemblyInformation(String
path) at
Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyResolver.GetAssemblyInformation(IHostReferenceItem
reference) at
Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyResolver.UpdateAssemblyReferences(IEnumerable1
referencesToUpdate) at
Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyResolver..ctor(IHostProject
project, DesignerContext designerContext) at
Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyService.<.ctor>b__0(IHostProject
project) at
Microsoft.Expression.Utility.Collections.SuspendableKeyedCollection2.CreateItems(TKey
key) at
System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey
key, Func2 valueFactory) at
Microsoft.Expression.Utility.Collections.SuspendableKeyedCollection2.GetItem(TKey
key) at
Microsoft.Expression.DesignSurface.Assemblies.ProjectAssemblyService.GetProjectAssemblyResolver(IHostProject
project) at
Microsoft.Expression.DesignSurface.Project.ProjectContextBase.Initialize()
at
Microsoft.Expression.DesignSurface.Project.XamlProjectContext.Initialize()
at
Microsoft.Expression.DesignSurface.Project.ProjectContextManager.GetProjectContext(IHostProject
project, IPlatform platform) at
Microsoft.Expression.DesignSurface.Project.ProjectContextManager.<GetContextsInActiveSolution>d__20.MoveNext()
at
Microsoft.Expression.DesignSurface.Project.XamlProjectContext.get_Application()
at
Microsoft.Expression.DesignSurface.Documents.SceneDocument.GetApplicationDocument(IXamlProjectContext
activeContext) at
Microsoft.Expression.DesignSurface.Documents.SceneDocument.get_ApplicationSceneDocument()
at
Microsoft.Expression.DesignSurface.DocumentViewContext.CreateAndOpenView(ISourceItemContext
sourceItem, Boolean activate, Boolean ensureOpen) at
Microsoft.Expression.DesignSurface.DesignerService.CreateDesigner(IHostSourceItem
item, IHostTextEditor editor) at
Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass9.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__8()
at
Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.CallQueue.<>c__DisplayClassa1.b__9()
at
Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.CallQueue.Call.Invoke()
I appear to have fixed things by setting loadFromSources to enabled as described here:
Go to C:\Program Files\Microsoft Visual Studio 11.0\Common7\IDE
Open the files XDesProc.exe.config, devenv.exe.config, and XDesProc.exe.appx.config using a text editor (likely requires administrator mode)
Find </runtime> and before it, add <loadFromRemoteSources enabled="true"/> (If you copy/paste, make sure the doublequotes come through as ASCII or VS will have a fit)
(Source: http://www.sehajpal.com/index.php/2010/10/how-to-solve-loadfromremotesources-error-in-vs-2010/)
Perhaps it is only really necessary to do this for XDesProc.exe.config, I don't know.
After that, I got a different error, Method not found: 'Boolean Microsoft.Windows.Design.PropertyEditing.PropertyFilter.get_IsFiltering()' :
Fix:
Copy the file Microsoft.Windows.Design.Interaction.dll from c:\Program Files (x86)\Microsoft Expression\Blend for Visual Studio\Microsoft.Windows.Design.Interaction\ to c:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PublicAssemblies\ (You may wish to make a backup of the existing file first.)
(Source: http://connect.microsoft.com/VisualStudio/feedback/details/728263/xaml-editor-reports-unexpected-error-microsoft-expression-designhost-isolation-remoting-remoteexception)
Someone from Microsoft said installing the Beta over the Developer Preview isn't supported so maybe that's why I had this 2nd problem.

Silverlight calling Windows Workflow Foundation as a web service

I'm trying to call a Windows Workflow Foundation published as a web service from a Silverlight project. When I call it from a console application it works fine because I can add a web reference, make an instance of that webservice, and invoke the method I want. The problem is in the Silverlight project because I can just add a service reference so I find myself working with SOAP stuff that doesn't work at all, and here is the code:
private void btnUpdate_Click(object sender, RoutedEventArgs e)
{
xxxxxxx.Workflow1_WebServiceSoapClient zer = new xxxxx.Workflow1_WebServiceSoapClient();
zer.demanderSubmitReportCompleted += new EventHandler<xxxxxxxxxxxxxxx.demanderSubmitReportCompletedEventArgs>(service2);
zer.demanderSubmitReportAsync("zzz", 20000);
}
public void service2(object sender, xxxxx.demanderSubmitReportCompletedEventArgs e)
{
string a = e.Result;
}
Update:
This is the error message. I know it may look difficult because it's in French:
L'exception System.ServiceModel.CommunicationException n'a pas été gérée par le code utilisateur
Message="Une erreur s'est produite en tentant d'effectuer une demande à l'URI 'http://localhost:49783/AED_DA_Workflow_Services_WebService/AED_DA_Workflow_Services.Workflow1_WebService.asmx'. Ce problème peut être dû à une tentative d'accès à un service entre domaines sans qu'une stratégie entre domaines appropriée soit en place, ou une stratégie inadaptée aux services SOAP. Il est possible que vous soyez contraint de contacter le propriétaire du service pour publier un fichier de stratégie entre domaines et veiller à ce qu'il autorise l'envoi d'en-têtes HTTP SOAP. Cette erreur peut également être liée à l'utilisation de types internes dans le proxy de service Web sans utiliser l'attribut InternalsVisibleToAttribute. Consultez l'exception interne pour plus de détails."
StackTrace:
à System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
à System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
à System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
à System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)
à AEDSilverlightIntegrated.AED_DA_Workflow_Services_WebService.Workflow1_WebServiceSoapClient.Workflow1_WebServiceSoapClientChannel.EnddemanderSubmitReport(IAsyncResult result)
à AEDSilverlightIntegrated.AED_DA_Workflow_Services_WebService.Workflow1_WebServiceSoapClient.AEDSilverlightIntegrated.AED_DA_Workflow_Services_WebService.Workflow1_WebServiceSoap.EnddemanderSubmitReport(IAsyncResult result)
à AEDSilverlightIntegrated.AED_DA_Workflow_Services_WebService.Workflow1_WebServiceSoapClient.EnddemanderSubmitReport(IAsyncResult result)
à AEDSilverlightIntegrated.AED_DA_Workflow_Services_WebService.Workflow1_WebServiceSoapClient.OnEnddemanderSubmitReport(IAsyncResult result)
à System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)
InnerException: System.Security.SecurityException
Message=""
StackTrace:
à System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
à System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
à System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
InnerException: System.Security.SecurityException
Message="Erreur de sécurité."
StackTrace:
à System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
à System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)
à System.Net.Browser.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState)
InnerException:
Did you check whether or not the WCF service is callable by Silverlight?
Make sure a cross domain policy file is present and correctly configured on the server
Make sure a binding is used that can be called from within Silverlight
There is more but my bet is on #1
Take a look at Windows Workflow Foundation (WF4) - Silverlight / State Machine Workflow Service

Resources