无法部署ASP.NET应用程序 [英] Trouble Deploying ASP.NET Application

查看:58
本文介绍了无法部署ASP.NET应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我是ASP.NET的新手,刚刚完成了一个小应用程序。

基本上它只是一个表单用户填写表单后,将数据写入

服务器上的CSV文件。代码编译并在我的开发机器(VS.NET 2002)上运行
但是当我将所有文件FTP到服务器的
时,我得到一个服务器错误 '/''申请。错误。我不能ñ
弄清楚为什么它不会跑。几个笔记:


~我不知道服务器设置。它是客户端的机器而且我只是告诉它是一台.NET机器。


~我似乎无法改变Cusomt错误web.config中的消息甚至

虽然我更改了XML,重新编译代码并将其FTP到服务器。


~此代码驻留在子代码中 - 主要Web应用程序的目录。


~我已经尝试删除web.config和Global.asax以查看是否会有帮助但是没有运气。


任何帮助将不胜感激,

Ju *** *@Cutroni.Com

Hi,

I''m new to ASP.NET and just finished up a small application.
Essentially it''s just a form that writes data to a CSV file on the
server after a user fills in the form. The code compiles and runs on
my development machine (VS.NET 2002) but when I FTP all the files to
the server I get a "Server Error in ''/'' Application." error. I can''t
figure out why it won''t run. A couple notes:

~ I have no idea of the server settings. It''s a clients machine and I
was only told it is a .NET machine.

~ I can''t seem to change the Cusomt Error Message in web.config even
though I change the XML, recompile the code and FTP it to the server.

~ This code is residing in a sub-directory of the main web application.

~ I''ve tried deleteing web.config and Global.asax to see if that would
help but no luck.

Any help would be appreciated,

Ju****@Cutroni.Com

推荐答案

男人,你是一个真正的泡菜,贾斯汀。


让我猜一想。在你的情况下,关于你唯一可以做的事情就是你可以尝试的页面中的痕迹,但我确定

不想拥有我对你的所有限制,特别是如果我是b / b的新手。


你说它写入文件。因此,运行它的帐户必须有权写入文件

所在的文件夹。我的猜测是它在一个不成熟的

账户下运行,但你需要以某种方式找到它。


-

HTH,


Kevin Spencer

Microsoft MVP

..Net开发人员

有时候你吃大象。

有时候大象会吃掉你。


fenway <菊************ @ gmail.com>在消息中写道

news:11 ********************* @ g49g2000cwa.googlegro ups.com ...
Man, you are in a true pickle, Justin.

Let me venture a guess. Under your circumstances, about the only thing you
could do would be a trace IN the page, which you might try, but I sure
wouldn''t like to have all the constraints on me that you have, especially if
I was new to .Net!

You say it writes to a file. Therefore, the account under which it is
running must have permission to write to the folder in which the file
resides. My guess would be that it is running under an underpriveleged
account, but you will need to find this out somehow.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Sometimes you eat the elephant.
Sometimes the elephant eats you.

"fenway" <ju************@gmail.com> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.com...


我是ASP.NET的新手,刚刚完成了一个小应用程序。
基本上它只是一个将数据写入CSV文件的表单用户填写表单后的
服务器。代码在我的开发机器(VS.NET 2002)上编译和运行,但当我将所有文件FTP到服务器时,我在''/''应用程序中得到了服务器错误。错误。我不能弄明白为什么它不会跑。几个笔记:

〜我不知道服务器设置。它是客户端机器,我只被告知它是一台.NET机器。

〜我似乎无法改变web.config中的Cusomt错误消息甚至
〜此代码驻留在主Web应用程序的子目录中。

〜我已经尝试删除web.config和Global.asax,看看是否会帮助但没有运气。

任何帮助都将不胜感激,

Ju****@Cutroni.Com



嗨凯文,


感谢您的回复。我正在逐行浏览

文件,试图找出错误的原因。

我同意,它可能是CSV文件的权限问题。

不幸的是,获取sys admin的时间是耗费时间的过程

并且我对服务器的唯一访问是FTP访问。


贾斯汀

Hi Kevin,

Thanks for your response. I''m in the process of stepping throught the
file line by line trying to find what''s throwing the error.

I agree, it may be a permissions issue with the CSV file.
Unfortunately getting ahold of the sys admin is a time consuimg process
and the only access I have to the server is FTP access.

Justin


所以我一直试图调试一下,我发现了什么东西

有趣。我在我的项目中添加了一个空白的ASPX页面。除了Response.write()调用之外,这个文件绝对没有任何内容。但是,如果我编译项目,将其FTP到服务器,然后尝试加载这个

ASPX页面我仍然得到通用的服务器错误''/' '申请'。


有什么想法吗?我真的可以用一只手。


谢谢,


贾斯汀

So I''ve been trying to debug a bit and I''ve found something
interesting. I added a blank ASPX page to my project. This file has
absolutely nothing in it excep a Response.write() call. But if I
compile the project, FTP it to the server and then try to load this
ASPX page I still get the generic "Server Error in ''/'' Application".

Any thoughts? I could really use a hand.

Thanks,

Justin


这篇关于无法部署ASP.NET应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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