无法让aspx文件在服务器上运行,但它确实在本地运行(cannot get aspx files to run on server but it does run locally)

编程入门 行业动态 更新时间:2024-10-18 12:27:51
无法让aspx文件在服务器上运行,但它确实在本地运行(cannot get aspx files to run on server but it does run locally)

我使用asp.net在Visual Studio中创建了一个网站,我的默认页面是default.aspx。 我使用FileZilla将文件添加到服务器,并添加了一切。 但是当我输入URL时,它表示找不到default.aspx,即使它肯定存在。 另外,我将同一页面转换为default.html,并将其上传,并且工作正常。 有谁知道为什么我看不到我的.aspx文件,以及如何解决它。 谢谢

Ive made a website in Visual Studio using asp.net, my default page is default.aspx. Im using FileZilla to add the files to the server, and Ive added everything. But when i type in the URL, it says that it cannot find default.aspx, even though its definitely there. also, I converted the same page to default.html, and uploaded that and it works fine. Does anyone know why I cant see my .aspx file, and how to fix it. Thanks

最满意答案

确保已将所有文件和.dll文件上载到服务器中。 确保已给出正确的路径,并且iis指向项目的虚拟目录。 检查配置文件删除调试模式。 检查所有.dll是否已编译。

In my experience the pages did not work because the server did not support aspx files, although I cannot tell you which version of it it was. I bought a Windows server and it worked fine.

更多推荐

本文发布于:2023-04-28 04:14:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1329753.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:但它   器上   确实   文件   aspx

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!