在网站上放置ASP.NET页面时出现的问题 [英] problems in placing an ASP.NET page on a website

查看:61
本文介绍了在网站上放置ASP.NET页面时出现的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我不是一个非常有经验的asp.net开发人员,但对于它是如何工作的有一个很好的想法&b
更好的想法在vb.net上。

我的要求是在网站上放置一个asp.net页面 - 目前

有asp& html页面(不是asp.net) - 但是这个服务器上安装了asp.net

(.NET运行时文件)。


我只能通过ftp程序上传文件来访问这个服务器。

i创建了一个非常简单的asp.net项目(hello world) - 显示一个标签

with reads"你好世界,

&我将所有文件放在webfolder的根目录下(

当前的asp和html文件所在的位置)。


当我尝试浏览到webform1.aspx页面,我得到以下错误,

运行时错误

描述:服务器上发生了应用程序错误。此应用程序的当前自定义

错误设置会阻止应用程序的详细信息因远程查看而导致
错误(出于安全原因)。但是,可以在本地服务器计算机上运行的浏览器查看



详细信息:要使此特定错误消息的详细信息可见

在远程计算机上,请创建一个< customErrors>标记位于当前web

应用程序根目录下的web.config

配置文件中。这个< customErrors>然后,标签应该具有其模式。属性

设置为关闭。


i尝试了各种各样的东西,

(1)我试图改变网络。配置& set mode =" off" - 但没有好

(2)我试图改变web.config& set mode =" on" - 但没有好

(3)我试图改变web.config& set mode =" on" &安培;包括

defaultredirect =" error.htm" (在error.htm中 - 我只是显示一条消息

说页面中的错误 - 这就是全部。)


但我仍然得到同样的错误。


我需要做些什么才能查看这个非常简单的aspx页面。

i知道我做错了什么,因为我我只是将我的本地文件

上传到网上 - 在复制之前我可能需要做一些事情




请有人帮帮我吗?


希望找到解决方案,

logan


解决方案

Logan ..

将模式设置为Off ..

您是否在重新编译页面之前重新编译它再次???

Patrick


***通过Developersdex发送 http://www.developersdex.com ***

不要只是参加USENET ......获得奖励!

是的我做了。


Patrick Olurotimi Ige < ig*@iprimus.com.au>在消息中写道

news:eX ************** @ TK2MSFTNGP11.phx.gbl ...

Logan .. 您是否在重新编辑页面之前重新编译了该页面?
Patrick

***通过Developersdex发送 http://www.developersdex.com ***
不要只参加USENET。 ..得到奖励!



你能查看服务器上的事件日志吗?


当你had mode =" Off"你有更详细的错误消息吗?


-

Scott
http://www.OdeToCode.com/blogs/scott/



我不是一个非常有经验的asp.net开发人员,但对于
如何工作以及它的工作方式有一个很好的想法。更好的想法在vb.net上。
我的要求是在网站上放置一个asp.net页面 - 目前
有asp& html页面(不是asp.net) - 但是这个服务器上安装了asp.net
(.NET运行时文件)。
我只能通过上传文件来访问这个服务器通过一个ftp
程序。
我创建了一个非常简单的asp.net项目(hello world) - 显示一个
标签
带有读取hello world,
&我将所有文件放在webfolder的根目录下(
当前的asp& html文件所在的位置)。
当我尝试浏览webform1.aspx页面时,我得到了以下错误,
运行时错误
说明:服务器上发生应用程序错误。此应用程序的当前
自定义
错误设置可防止远程查看
应用程序错误的详细信息(出于安全原因)。但是,它可以被运行在本地服务器计算机上的浏览器查看。
详细信息:要使远程计算机上可以查看此特定错误消息的详细信息,请创建一个< customErrors>
aweb.config中的标记配置文件位于
当前Web应用程序的根目录中。这个< customErrors>标签应该具有其模式模式。属性设置为关闭。

我尝试了各种各样的东西,
(1)我试图改变web.config& set mode =" off" - 但没有好处
(2)我试图改变web.config& set mode =" on" - 但没有好处
(3)我试图改变web.config& set mode =" on" &安培;包括
defaultredirect =" error.htm" (在error.htm中 - 我只是显示一条
消息说页面中的错误 - 这就是全部。)
但我仍然得到同样的错误。

我需要做些什么才能查看这个非常简单的aspx页面。
我知道我做错了什么,因为我只是上传我当地的
文件
网络 - 在我复制
之前我可能需要做一些事情。
请有人帮助我吗?

希望有一个解决方案,
logan



Hi,

I am not a very experienced asp.net developer, but have a fair idea on how
it works & better idea on vb.net.
My requirement is to place an asp.net page on a website - which currently
has asp & html pages (not asp.net) - but this server has asp.net installed
on it (.NET run time files).

I can only access this server by uploading files to it via an ftp program.
i created a very simple asp.net project (hello world) - to display a lable
with reads "hello world",
& i placed ALL the files on the root directory of the webfolder (where the
current asp & html files reside).

When i try to browse to the webform1.aspx page, i get the below error,
Runtime Error
Description: An application error occurred on the server. The current custom
error settings for this application prevent the details of the application
error from being viewed remotely (for security reasons). It could, however,
be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable
on remote machines, please create a <customErrors> tag within a "web.config"
configuration file located in the root directory of the current web
application. This <customErrors> tag should then have its "mode" attribute
set to "Off".

i tried various things,
(1) i tried to change the web.config & set mode = "off" - but no good
(2) i tried to change the web.config & set mode = "on" - but no good
(3) i tried to change the web.config & set mode = "on" & include
defaultredirect="error.htm" (where in error.htm - i just display a message
saying "error in the page" - that is all).

but still i get the same error.

what do i need to do to be able to view this very simple aspx page.
i know i am doing somthing wrong, because i am just uploading my local files
to the web - there may be some thing taht i need to do before i copy them
across.

please can someone help me?

hoping for a solution,
logan


解决方案

Logan ..
after setting the mode to Off..
Did you recompile the page before viwing it again???
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!


yes i did.

"Patrick Olurotimi Ige" <ig*@iprimus.com.au> wrote in message
news:eX**************@TK2MSFTNGP11.phx.gbl...

Logan ..
after setting the mode to Off..
Did you recompile the page before viwing it again???
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!



Can you check the event log on the server?

When you had mode="Off" did you have a more detailed error msg?

--
Scott
http://www.OdeToCode.com/blogs/scott/

Hi,

I am not a very experienced asp.net developer, but have a fair idea on
how
it works & better idea on vb.net.
My requirement is to place an asp.net page on a website - which
currently
has asp & html pages (not asp.net) - but this server has asp.net
installed
on it (.NET run time files).
I can only access this server by uploading files to it via an ftp
program.
i created a very simple asp.net project (hello world) - to display a
lable
with reads "hello world",
& i placed ALL the files on the root directory of the webfolder (where
the
current asp & html files reside).
When i try to browse to the webform1.aspx page, i get the below error,
Runtime Error
Description: An application error occurred on the server. The current
custom
error settings for this application prevent the details of the
application
error from being viewed remotely (for security reasons). It could,
however,
be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be
viewable on remote machines, please create a <customErrors> tag within
a "web.config" configuration file located in the root directory of the
current web application. This <customErrors> tag should then have its
"mode" attribute set to "Off".

i tried various things,
(1) i tried to change the web.config & set mode = "off" - but no good
(2) i tried to change the web.config & set mode = "on" - but no good
(3) i tried to change the web.config & set mode = "on" & include
defaultredirect="error.htm" (where in error.htm - i just display a
message
saying "error in the page" - that is all).
but still i get the same error.

what do i need to do to be able to view this very simple aspx page.
i know i am doing somthing wrong, because i am just uploading my local
files
to the web - there may be some thing taht i need to do before i copy
them
across.
please can someone help me?

hoping for a solution,
logan



这篇关于在网站上放置ASP.NET页面时出现的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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