| Author |
Messages |
|
Lini
Posts:7
 |
| 11/11/2009 10:28 AM |
|
Michael, I've followed this tutorial to the letter. http://dnnsilverlight.adefwebserver.com/Silverlight20/HelloWorld/tabid/67/Default.aspx Other silverlight samples run without any problem. I keep getting an error when trying to add the module to a page, full stack trace below. Can you or anyone tell me what I might be missing as I find this rather cryptic. Thanks DotNetNuke.Services.Exceptions.ModuleLoadException: Could not load file or assembly 'System.Web.Silverlight' or one of its dependencies. The system cannot find the file specified. ---> System.Web.HttpParseException: Could not load file or assembly 'System.Web.Silverlight' or one of its dependencies. The system cannot find the file specified. ---> System.Web.HttpParseException: Could not load file or assembly 'System.Web.Silverlight' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Web.Silverlight' or one of its dependencies. The system cannot find the file specified. File name: 'System.Web.Silverlight' at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.Load(String assemblyString) at System.Web.Configuration.CompilationSection.LoadAssembly(String assemblyName, Boolean throwOnFail) at System.Web.UI.TemplateParser.LoadAssembly(String assemblyName, Boolean throwOnFail) at System.Web.UI.TemplateParser.AddAssemblyDependency(String assemblyName, Boolean addDependentAssemblies) at System.Web.UI.MainTagNameToTypeMapper.ProcessTagNamespaceRegistrationCore(TagNamespaceRegisterEntry nsRegisterEntry) at System.Web.UI.MainTagNameToTypeMapper.ProcessTagNamespaceRegistration(TagNamespaceRegisterEntry nsRegisterEntry) at System.Web.UI.BaseTemplateParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.TemplateControlParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseReader(StreamReader reader, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseInternal() at System.Web.UI.TemplateParser.Parse() at System.Web.UI.TemplateParser.Parse(ICollection referencedAssemblies, VirtualPath virtualPath) at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() 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) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.ControlUtilities.LoadControl[T](TemplateControl containerControl, String ControlSrc) at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() --- End of inner exception stack trace --- |
|
|
|
|
Michael Washington (admin)
Posts:129

 |
| 11/11/2009 10:54 AM |
|
The problem is the latest Silverlight Tools for Silverlight 3 no longer use the 'System.Web.Silverlight' assembly. We have removed the tutorial because it is now outdated. Please use the Silverlight 3 Hello World tutorial. We apologize for the inconvenience. |
|
|
|
|
Lini
Posts:7
 |
| 11/11/2009 11:02 AM |
|
OK, just saw that was taken down... Looking at SL 3.0 tutorial, the webserve entry point to YOUR webservice. Do I NEED to have a webservice to run a SL app in a DNN module? I'm assuming that is only pertinent to THAT tutorial...no? Thanks |
|
|
|
|
Michael Washington (admin)
Posts:129

 |
| 11/11/2009 11:24 AM |
|
| It uses ADefWebserver.com as the "name space" but it doesn't actually point to a web service on ADefWebserver. Download the code and check it out. it will call a web service on your machine. |
|
|
|
|
Michael Washington (admin)
Posts:129

 |
| 11/11/2009 11:26 AM |
|
| You do need a web service to communicate with DotNetNuke from Silverlight. If you do not need to communicate with the DotNetNuke site you do not need a web service. |
|
|
|
|
Robert
Posts:2
 |
| 11/19/2009 12:50 PM |
|
the page.xaml.cs needs a little adjustment: if (e.Result != null) { UserName.Text = e.Result; } thx for the tutorial! |
|
|
|
|
Michael Washington (admin)
Posts:129

 |
| 11/19/2009 1:01 PM |
|
@Robert - e.Result should never be null. It can be empty, but it is a string so that would not throw an error. If e.result is null then we DO want an error to throw not to be trapped. |
|
|
|
|
Robert
Posts:2
 |
| 11/21/2009 5:16 AM |
|
Yes, my mistake. I recieved te message below, beacause i didn't set the object reference to an intance of an object: "An exception occurred during the operation, making the result invalid. Check InnerException for exception details." This error message lead me to the: refeference.cs: public HelloWorld3.HelloWorld.GetUsernameResponse EndGetUsername(System.IAsyncResult result) { object[] _args = new objectΎ] HelloWorld3.HelloWorld.GetUsernameResponse _result = ((HelloWorld3.HelloWorld.GetUsernameResponse)(base.EndInvoke("GetUsername", _args, result))); return _result; I don't want to be trapped, you're right :-) void objWebServiceSoapClient_GetUsernameCompleted(object sender, GetUsernameCompletedEventArgs e) { try { UserName.Text = e.Result; } catch { MessageBox.Show(e.Error.Message.ToString()); } } thx again, for the tutorial! |
|
|
|
|
|