Why is nancy complaining about a missing reference for System? - nancy

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.

Related

DB2 - Cannot create PoolableConnectionFactory - The DDM command is not supported

I try to connect my rest application to DB2 database. I use Tomcat 9 to test my application.
IMPORTANT : I work into a virtual machine.
I set the context.xml with the jndi configuration:
Context.xml
<Resource name="jdbc/reeval" type="javax.sql.DataSource"
auth="Container" username="XXX" password="XXX"
driverClassName="com.ibm.db2.jcc.DB2Driver"
url="jdbc:db2://host.sample.fr:4461/DB2PROA" />
When my application try to execute a SQL request, I have this error message:
16:26:49,502 DEBUG SqlExceptionHelper:124 - Unable to acquire JDBC Connection [n/a]
**java.sql.SQLException: Cannot create PoolableConnectionFactory ([jcc][t4][20104][11269][3.65.131] La commande DDM n'est pas prise en charge. Point de code de la commande DDM non prise en charge : 0x106d. ERRORCODE=-4499, SQLSTATE=58014**)
at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2303)
at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2043)
at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1543)
at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122)
at org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:386)
at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:84)
at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.getPhysicalConnection(LogicalConnectionManagedImpl.java:109)
at org.hibernate.engine.jdbc.internal.StatementPreparerImpl.connection(StatementPreparerImpl.java:47)
at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$5.doPrepare(StatementPreparerImpl.java:146)
at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:172)
at org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareQueryStatement(StatementPreparerImpl.java:148)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1934)
at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1903)
at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1881)
at org.hibernate.loader.Loader.doQuery(Loader.java:925)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:342)
at org.hibernate.loader.Loader.doList(Loader.java:2622)
at org.hibernate.loader.Loader.doList(Loader.java:2605)
at .....
**Caused by: com.ibm.db2.jcc.am.DisconnectNonTransientException: [jcc][t4][20104][11269][3.65.131] La commande DDM n'est pas prise en charge. Point de code de la commande DDM non prise en charge : 0x106d. ERRORCODE=-4499, SQLSTATE=58014**
at com.ibm.db2.jcc.am.cd.a(cd.java:323)
at com.ibm.db2.jcc.am.cd.a(cd.java:387)
at com.ibm.db2.jcc.t4.z.lb(z.java:3142)
at com.ibm.db2.jcc.t4.z.y(z.java:763)
at com.ibm.db2.jcc.t4.z.n(z.java:674)
at com.ibm.db2.jcc.t4.z.a(z.java:475)
at com.ibm.db2.jcc.t4.z.a(z.java:118)
at com.ibm.db2.jcc.t4.b.c(b.java:1351)
at com.ibm.db2.jcc.t4.b.b(b.java:1222)
at com.ibm.db2.jcc.t4.b.b(b.java:789)
at com.ibm.db2.jcc.t4.b.a(b.java:761)
at com.ibm.db2.jcc.t4.b.a(b.java:422)
at com.ibm.db2.jcc.t4.b.a(b.java:397)
at com.ibm.db2.jcc.t4.b.<init>(b.java:335)
at com.ibm.db2.jcc.DB2SimpleDataSource.getConnection(DB2SimpleDataSource.java:233)
at com.ibm.db2.jcc.DB2SimpleDataSource.getConnection(DB2SimpleDataSource.java:199)
at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:475)
at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:116)
at org.apache.tomcat.dbcp.dbcp2.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
at org.apache.tomcat.dbcp.dbcp2.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:257)
at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.validateConnectionFactory(BasicDataSource.java:2313)
at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2299)
... 73 more
16:26:49,510 WARN SqlExceptionHelper:129 - SQL Error: 0, SQLState: null

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

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.

Deploying issue with SQL Server 2014 Reporting Services

I'm trying to deploy a report with SQL Server 2014, through Visual Studio 2013. The report is building well, it is deploying well, I can see it on my web page but when I click on it, I have the following error
Impossible de terminer l'action en cours. Les informations d'identification de la source de données de l'utilisateur ne répondent pas à la configuration requise pour exécuter ce rapport ou dataset partagé. Elles ne sont pas stockées dans la base de données du serveur de rapports ou la source de données de l'utilisateur est configurée pour ne pas exiger d'informations d'identification, mais le compte d'exécution sans assistance n'est pas spécifié. (rsInvalidDataSourceCredentialSetting)
It means the user data identification does not match or answer, the required config to run this report.
I've configured my datasource with an odbc and I've put the following string within the datasource:
Dsn=SQLPOITTOWN;uid=sa;persist security info=False
For my credentials, I've put "Use this username and password" with the username sa. I let the password field empty as there is no password.
What am I doing wrong?
Thanks
To spare you all the comments , the solution is to create a user in the db with a password (see below).
Dsn=SQLPOITTOWN;uid=POITTOWNReport;Pwd=Xb521Aabc;persist security info=False
The report is appearing correctly.
Thanks #TT. for his valuable help

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