0

我使用 Valence 站点来检索用于 ASP.NET 的 SDK。修改后,我尝试将我的 aspx 和 aspx.cs 文件上传到位于我公司 D2L 站点的测试课程。当我点击上传时,我得到这个:“要上传的文件有一个受限的扩展名”。这让我感到惊讶,因为我从 D2L 获得了 .NET 代码。

这是我们网站管理员更改的内容还是 D2L 更改的内容?

谢谢。

4

1 回答 1

2

C# files are restricted due to the way ASP.NET can perform dynamic compilation. That restriction will not be lifted.

If you are uploading the C# files for students to look at, you can zip the solution folder or appropriate files and upload the resulting zip archive.

If you intend to use the the ASP.NET page to serve up dynamic content, you have a couple options. You could re-code your app in JavaScript and host it in the content area. Alternatively, you could host your ASP.NET site on another server and create a content topic that links out to your page on that server.

于 2013-08-08T20:34:53.560 回答