Code error 2104 after moving aspx page to some folder

旧城冷巷雨未停 提交于 2019-12-04 15:50:07

I got the same result when following your instructions. The problem is the following line in your aspx page:

<param name="source" value="ClientBin/TestOnly.xap"/>

The page is trying to load the XAP file from a directory called ClientBin under your test directory. Change the line to this:

<param name="source" value="/ClientBin/TestOnly.xap"/>

Now the path will start at the root of the web site. I also noticed this line in the aspx page:

<script type="text/javascript" src="Silverlight.js"></script>

This won't load correctly either for the same reason. I changed the line to:

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