Register  Login
Forums

 (you must be logged in to post)

Subject: Silverlight3 helloworld vb.net
Prev Next
You are not authorized to post a reply.

Author Messages
scippyUser is Offline

Posts:4

09/15/2009 2:53 AM  
Hi, it could be a good help if you add a vb.net tutorial about the hello world example for silverlight3
ThankYou!
scippyUser is Offline

Posts:4

10/01/2009 8:34 AM  
No chance to have the HelloWorld in vb version?
I'm trying with C# version but I can't compile the WebService because is in a different language from my DNN installation, see below:

Server Error in '/dnn5' Application.
--------------------------------------------------------------------------------

I file '/dnn5/App_Code/Webservice.cs' e '/dnn5/App_Code/AssemblyInfo.vb' utilizzano una lingua diversa e ciò non è consentito poiché devono essere compilati insieme.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: I file '/dnn5/App_Code/Webservice.cs' e '/dnn5/App_Code/AssemblyInfo.vb' utilizzano una lingua diversa e ciò non è consentito poiché devono essere compilati insieme.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[HttpException (0x80004005): I file '/dnn5/App_Code/Webservice.cs' e '/dnn5/App_Code/AssemblyInfo.vb' utilizzano una lingua diversa e ciò non è consentito poiché devono essere compilati insieme.]
System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() +452
System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +42
System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +8809466
System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +128
System.Web.Compilation.BuildManager.CompileCodeDirectories() +265
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +320

[HttpException (0x80004005): I file '/dnn5/App_Code/Webservice.cs' e '/dnn5/App_Code/AssemblyInfo.vb' utilizzano una lingua diversa e ciò non è consentito poiché devono essere compilati insieme.]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +58
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +512
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729

[HttpException (0x80004005): I file '/dnn5/App_Code/Webservice.cs' e '/dnn5/App_Code/AssemblyInfo.vb' utilizzano una lingua diversa e ciò non è consentito poiché devono essere compilati insieme.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8890735
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +333


Thanks!
Michael Washington (admin)User is Offline

Posts:126


10/01/2009 9:29 AM  
Delete the file at:

'/dnn5/App_Code/Webservice.cs'
Michael Washington (admin)User is Offline

Posts:126


10/01/2009 10:13 AM  
The reason you got the error is because you forgot to:

"Add a Web Service called Webservice.asmx. Make sure the box "Place code in a separate file" is un-checked."

I will have a VB tutorial with DNN and Silverlight in my upcoming book from Packt publishing (probably in January)
scippyUser is Offline

Posts:4

10/03/2009 2:08 AM  
Thanks, this is a great notice, I'll buy it certainly.
Now I've followed with more attention step by step your tutorial and all seems work fine but the result is dramatic :crazy: When I add the HelloWorld3 module on my page I receive this exception:

DotNetNuke.Services.Exceptions.ModuleLoadException: c:\Inetpub\wwwroot\Gruppo8\DesktopModules\HelloWorld3\View.ascx.cs(7): error CS0501: 'HelloWorld3.View.SilverlightApplication.get' deve dichiarare un corpo perché non è contrassegnato come abstract o extern ---> System.Web.HttpCompileException: c:\Inetpub\wwwroot\Gruppo8\DesktopModules\HelloWorld3\View.ascx.cs(7): error CS0501: 'HelloWorld3.View.SilverlightApplication.get' deve dichiarare un corpo perché non è contrassegnato come abstract o extern at System.Web.Compilation.BuildManager.PostProcessFoundBuildResult(BuildResult result, Boolean keyFromVPP, VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetBuildResultFromCacheInternal(String cacheKey, Boolean keyFromVPP, VirtualPath virtualPath, Int64 hashCode) at System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(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.ControlUtilites.LoadControl[T](TemplateControl containerControl, String ControlSrc) at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() --- End of inner exception stack trace ---

Is possible that this is the easiest solution to integrate Silverlight application with Dotnetnuke framework!???

Thanks, for your help!
scippyUser is Offline

Posts:4

10/03/2009 4:20 AM  
Sorry, I've no updated the DNN framework to 3.5
Now it work!
I hope to find a vb.net helloworld tutorial very soon!
Thanks!!!
You are not authorized to post a reply.
Forums > DNN Silverlight Forum > Silverlight and DotNetNuke > Silverlight3 helloworld vb.net



ActiveForums 3.7
Terms Of Use | Privacy Statement | Copyright 2007-2008 by Adefwebserver.com Dynnamite DotNetNuke Skins & Modules