使用Web部署程序包在IIS 7上部署Silverlight 4应用程序 [英] using the Web Deployment package to deploy a Silverlight 4 app on IIS 7

查看:143
本文介绍了使用Web部署程序包在IIS 7上部署Silverlight 4应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Silverlight 4应用程序部署到同一台计算机上的IIS7服务器上.有人会认为这并不难,但是我不断收到500.19 Internal Server Error.配置错误消息为无法添加具有唯一键属性名称"设置为域服务模块的类型为添加"的重复收集实体.

我试图压缩整个包装及其庞大的包装.基本上,我只是在Adventureworks_lt数据库中添加了一个模型和一个域服务.然后,我在主页上添加了一个Silverlight网格,该网格绑定到具有ria域源的products表.该应用程序在VS2010服务器上运行良好.然后,我将该应用程序编译到一个部署程序包中,然后使用IIS 7 Import Application正常运行.

我可以将代码发送给任何有兴趣的人.我看不到将其上传到此帖子的方法.

Larry

I am trying to deploy a Silverlight 4 app to an IIS7 server on the same machine. One would think this would not be that difficult however I keep getting a 500.19 Internal Server Error. The config error messsage is Cannot add duplicate collection entity of type ''add'' with unique key attribute ''name'' set to Domain Service Module.

I tried to zip up the whole package and its huge. Basically I just took the adventureworks_lt database added a model and a domain service. Then I just addeda silverlight grid on the home page bound to the products table witha ria domain source. The app runs fine on the VS2010 server. I then Compiled the app into a deployment package and then used IIS 7 Import Application which worked fine.

I can send the code to anyone interested. I don''t see a way to upload it to attach to this post.

Larry

推荐答案

Larry,

您可以上传到 SkyDrive [ ^ ]并将链接发布到此处.
Hi Larry,

You can upload to SkyDrive[^] and post the link here.


< pre lang =" sql>我终于可以使用了,不用了,谢谢微软.现在,我们必须处理Silverlight 4过期消息.难以置信的.我打算写下我的经验,但是基本上我不知道配置文件没有发布到网站上,所以我所做的任何更改都没有发送到应用程序发布的位置.感谢您的协助.
一旦我们通过MSDN升级到VS2010,Larry</pre>
<pre lang="sql">I finally got it working, no thanks to Microsoft. Now we have to deal with the Silverlight 4 expired message. Unbelievable. I intend to write up my experience but basically I din&#39;t realize that the config file was not being published to the website so any changes I was making were not being sent to where the application was published. Thanks for your offer of assistance.
Larry</pre>


.下载Silverlight 4 relase2.在实际运行的服务器上重新编译并重新安装所有内容.我最后要做的唯一其他事情就是将框架版本更改为最新的4.03 ...或其他.

希望这可以帮助那些通过我的所作所为而获知的人.
Once we upgraded to VS2010 through MSDN. Download Silverlight 4 relase 2. Recompiled and reinstalled everything on the sever it actually worked. The only other things I ended up doing were changing the framework release to the latest 4.03... or whatever.

Hope this helps someone who wnet through what I did.


这篇关于使用Web部署程序包在IIS 7上部署Silverlight 4应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆