Beta2 App works in Visual Studio but not on iis6 - Just get a blank page with no error
Silverlight.net -
I have a little application which I have developed using silverlight2 beta 2.
When I run in VS2008 it works fine but when I copy it up to the server running iis 6 it runs but you only see a blank page but IE says the page is completed and you get no error.
I have read a few posts which suggest you need the mime types set but I have done this for the three types - xbap, xap, xaml but I still does not work.
Would anyone have any other ideas as to what I am doing wrong.
The app uses a webservice but the webservice runs correctly when you browse to it (it is in the same project so cross domain shouldn't be an issue) and when you ran it in vs2008 it was able to build the screen background first before it had the data back from the webservice as it is async. So I dont think the data is the issue although I am open to any advice.
Any help would be appreciated.
Many thanks,
G
Silverlight.net -
hi,
i am wondering about the needed effort to realize a live stream on my homepage that uses a video on the file system. the video is a live stream of an ip webcam. perhaps there is always an example or article about it? i'm still a beginner and i don't get a lot of time for this unfortunately :(
Silverlight.net -
I need to create a Silverlight application that accesses the local client computer's drives. I'm creating something like a photo uploading tool and I'd like the user to be able browse their drives from within my Silverlight application, choosing files to act on, etc. Browsing for 1 file at a time isn't good enough and I'd rather not create an ActiveX control, WPF control, etc. as it needs to be cross-platform, a small download, etc. I realize this is not something Silverlight can do according to the documentation currently, but is there a way to do it by calling out to Javascript or something?
Although I'd prefer to use Silverlight for this, another possibility is Adobe AIR, as it does offer this functionality. Thanks.
Silverlight.net -
Hello,
I am trying to do something that I assume is really simple. All I want to do is host a page on my server that will then display some silverlight content from another server. Here is an example of the code on my page:
<
div id="silverlightControlHost">
<object data="data:application/x-silverlight," type="application/x-silverlight-2-b2" width="100%" height="100%">
<param name="source" value="http://some.otherhost.com/ClientBin/WebLabView.xap"/>
<param name="onerror" value="onSilverlightError" />
<param name="background" value="white" />
<a href="http://go.microsoft.com/fwlink/?LinkID=115261" style="text-decoration: none;">
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
</a>
</object>
<iframe style='visibility:hidden;height:0;width:0;border:0px'></iframe>
</div>
When I do this all I get is a blank screen. I added a clientaccesspolicy.xml file to the root of the web server that allows all public traffic to connect to it. Honestly, I don't really know where the clientaccesspolicy file should go if it should go in the root of the host server or in my directory I am trying to load the .xap file from. Any help would really be appreciated.
-Jeremy
Silverlight.net -
(I'm trying my post here b/c it was not answered in getting started group, and I am ready to give up.)
I am having trouble getting Silverlight to display on the client. For instance, the HelloSilverlight app works great on my development machine, but when an SP client accesses the same page, the webpart only displays the title and not the SL control. Does anyone know if this has something to do with permissions to the ClientBin folder in IIS, where the XAP file is located? I am running Windows 2008 with IE 7 SL 2 Beta and developed in VS 2008.
Silverlight.net -
Hi All,
I am new to this Silverlight Streaming.
I have followed this link for encoding a video file.
http://msdn.microsoft.com/en-us/library/bb851594.aspx
I have encoded the video file in expression encoder 2.
I have created a .ZIP archive containing the following files:
-
manifest.xml - The file you created in the previous step
-
player.xaml - The XAML file output by Expression Encoder
-
Your encoded .wmv video file
-
The JavaScript files that you listed in the application manifest.
After uploading the zip file to https://silverlight.live.com, when I click on "Test Page" link it will just show a black block for that video file on the page, it will display nothing there.
After some trials I found that I am missing baseplayer.js file, that was mentioned in manifest.xml.
But I am not getting any baseplayer.js file when I encode a video using expression encoder.
Can anybody point me, where I am doing wrong.
Thanks in advance,
Rams.
Silverlight.net -
I have an educational project for a Silverlight VB application that requires me to implement a function that allows me to modify http header parameters. I’m using VS2008 with Silverlight 2 beta 2 on Vista Business. Reading through the documentation, it appears that the recommended way to do this is to use WCF to implement the function server-side. The functionality is fairly straightforward, and is only slightly complicated by the fact that I also need to make some function calls to a third-party library (for which I have the source in C#).
After several failed attempts, I decided to strip the project down to a “bare bones” implementation, which just makes a WCF service call from a VB Silverlight application. The service takes a string of text as a parameter, annotates it, and then passes it back. Here are the steps to recreate the project:
1. Use VS2008 to create a new VB Silverlight project using the “Silverlight Application” template. Name the project testsite, and opt to add a new web to the solution named testsite.com.
2. In the web project for testsite.com, add a new item using the “Silverlight-enabled WCF service” template, and call it testservice.svc
3. In testservice.vb, modify the code for operation DoWork() to read:
<OperationContract()> _ Public Function DoWork(ByVal Text As String) As String Return "Annotated " + Text End Function
4. Build the website project.
5. In the Silverlight project for testsite, modify the Page.xaml code to read:
... xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > <StackPanel x:Name="LayoutRoot" Background="White"> <TextBox x:Name="Input" /> <Button x:Name="Request" Content="Request" Click="Request_Click" /> <TextBlock x:Name="Output" /> </StackPanel></UserControl>
6. Add a service reference to testsite.com/testservice.svc, and set the namespace to be ServiceTest.
7. In the code-behind file Page.xaml.vb, modify the code to read:
Imports testsite.ServiceTest ... Private Sub Request_Click(ByVal sender As System.Object, ByVal e AsSystem.Windows.RoutedEventArgs) Dim Proxy As testserviceClient = New testserviceClient() AddHandler Proxy.DoWorkCompleted, AddressOf DoWorkCompleted Proxy.DoWorkAsync(Input.Text)End Sub Private Sub DoWorkCompleted(ByVal sender As Object, ByVal e As DoWorkCompletedEventArgs) Output.Text = e.ResultEnd Sub
8. If you now run the project, type something into the TextBox, and click on the Request button, you get the following error:
InvalidOperationException was unhandled by user code:
Could not find default endpoint element that references contract 'testsite.ServiceTest.testservice' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.
It turns out that the reason for this fairly cryptic error message is down to the code that is automatically generated by VS2008. To fix it, open ServiceReferences.ClientConfig, and change the client endpoint contract parameter to read “testsite.ServiceTest.testservice”. In other words, add the namespace of the project back in (I understand that this does not happen in C#). OK, so far so good, the project should now behave as expected, a little tweak required, but nothing too difficult.
What I now want to do is publish this site on the web. I have a domain name registered, and can get free hosting for it as long as I can put up with banner ads from the hosting provider. (This is an educational project remember – so budgets are tight!). By way of illustration, let’s say that my domain name is “domainname.com”. I can recreate the project, replacing “testsite” with “domainname” and everything is hunky dory.
For whatever reason, VS2008 creates a fairly empty default page for the website “Default.aspx”, I replace its contents with those of domainnameTestPage.aspx, and change the title to be something like “Default Page For ...” so that I can see it’s a different file when viewed in a browser.
I then select “Publish Website” from the Website menu, and enter the appropriate details to publish it via ftp to my hosted domain site, and select to delete any existing files in the destination. I get a message indicating that “Publish succeeded”, and the build output ends in the lines:
========== Build: 2 succeeded or up-to-date, 0 failed, 0 skipped ==================== Publish: 1 succeeded, 0 failed, 0 skipped ==========
I fire up IE, point it at my website, and can see that the Silverlight app is there. However, hitting the request button appears to do nothing. No message is returned.
I guess there must be something I’m missing. I’m not going cross domain or anything like that, and the service is as simple as it gets. Do I need to setup IIS? Do I need to alter any of the configuration files to indicate where the application is being hosted? Any help would be much appreciated.
Silverlight.net -
Hi,
Could somebody guide me on how to deploy a silverlight database application that ustilizes a database service. Can we host the service on the windows live streaming server itself or do i have to run the service on a third party hosting server and call the webservice from my silver light app on the windows live streaming server.?
Basically I want the ability to populate data from database into the silverlight controls..
since I've just started learning, I would prefer a free web service hosting solution...
Can someone help me out on how to go about developing such an app? I am a beginner in silverlight and any help will be greatly appreciated..
Thank you
Silverlight.net -
I have Silverlight site, which calls webservices.
The WSs communicate with server via socket and the server has data conenction to the SQL server.
Does any one know how can I test the site stress capabilites?
Are there any limitations for number of WS connections, socket connections or data connections one one machine?
Are there any other programable\configurable parameters (e.g. timeout) to handle many users in one site?
Thanks
Silverlight.net -
I need to know if silverlight to need to be installed on my web server so I can code for it ? my server dose have .net 3.5 installed ?