How to deploy the silverlight web site on localhost (IIS 7)

狂风中的少年 提交于 2019-12-11 01:33:06

问题


I am new to Silverlight, I have created an application having DLL Project, Silverlight project, and Silverlight.web project. Now I wanted to publish or deploy it in the IIS so that I can test the Silverlight web application. Can someone help me to deploy and publish silverlight web application?


回答1:


Right Click the Silverlight.Web project in Visual Studio.
Select the publish option.
Enter your web site configuration in "Publish Web" window.

If you are really new to IIS you can find a very basic setting to get started with in the "e.g." below the text boxes in the "Publish Web" window that opens up viz. "localhost" & "Default Web Site/MyApp". Add the Silverlight mime type (application/x-silverlight-app) to your IIS config. How to? > http://learn.iis.net/page.aspx/262/configuring-iis-for-silverlight-applications/

http://localhost/MyApp/SilverlightApplicationTestPage.aspx
should point you to your site.

Response to your extended issue from comment,
Since you now see login page, further steps
var canYouSeeAnySLonIIS = Is your login page made in SL?
try
{
If (!canYouSeeAnySLonIIS)
{
probably you won't have IIS setup for Silverlight apps. Add the silverlight mime type to your IIS. How to > http://learn.iis.net/page.aspx/262/configuring-iis-for-silverlight-applications/
}
else
{
I don't have the specific solution to your problem but here since you can launch some SL from your IIS now, here is a tip that will help this and any other similar issue. You might want to try debugging the SL app inside IIS using VS. How?
Launch your login(SL) page in IE (for simplicity). In vS, Tools > Attach to Process > search for iexplore.exe, make sure you select the one where the type column indicates "Silverlight, x86", this is the SL plugin sandbox process. Attach. Voila!
A slight variation if you are using firefox, the process name will be plugin-container.exe
}
}
finally
{
Generic debugging tips > http://boxbinary.com/2010/04/debugging-silverlight-in-visual-studio-breakpoints-not-being-hit/
}



来源:https://stackoverflow.com/questions/11704133/how-to-deploy-the-silverlight-web-site-on-localhost-iis-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!