473,395 Members | 1,688 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Trouble Deploying ASP.NET Application

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

Nov 19 '05 #1
10 1419
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...
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

Nov 19 '05 #2
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

Nov 19 '05 #3
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

Nov 19 '05 #4
Is there anyone out there that can offer a little help re: this issue?
I have a small web app that compiles and runs on my machine but will
not run on the server after I FTP it to the server. Even the simplest
pages throw a "Server Error in '/' Application." error.

I've tried tweking web.config to display a more robust error but that
is not working.

Nov 19 '05 #5
First, if it is in a subdirectory off the main application you must make the
sub-directory it's own application. Otherwise the files in the bin directory
aren't paid attention to since they aren't in the bin directory for the main
application. To make a directory into an applicaton you open the IIS MMC and
select the properties for the particular directory and on the Directory tab
click the button that says Create Application.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"fenway" <ju************@gmail.com> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.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

Nov 19 '05 #6
THANK YOU!!!! Once I get ahold of the sys admin that's what I'll tell
him to do. I had read some similar things but was unsure if I needed
to make this sub-directory it's own application. Now I know the
answer. Hopefully that works.

Question, is there a way to create ASP.NET code that plugs into the
existing application without having to modify any settings in IIS? It
would be great if I could just drop this code on the server and have it
run "inside" the current application.

Thanks,

justin

Nov 19 '05 #7
re:
Now I know the answer. Hopefully that works.
Shouldn't you test that it works BEFORE saying that you know the answer ?

re: It would be great if I could just drop this code on the server
and have it run "inside" the current application.
As long as you drop the code in a subdirectory of your
application's directory, everything should work fine.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"fenway" <ju************@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com... THANK YOU!!!! Once I get ahold of the sys admin that's what I'll tell
him to do. I had read some similar things but was unsure if I needed
to make this sub-directory it's own application. Now I know the
answer. Hopefully that works.

Question, is there a way to create ASP.NET code that plugs into the
existing application without having to modify any settings in IIS? It
would be great if I could just drop this code on the server and have it
run "inside" the current application.

Thanks,

justin

Nov 19 '05 #8
True, I should test it before stating that it works.

So, If I'm reading your note correctly, I should be able to drop my
application in a sub-folder of an existing application and it should
run correctly? I tried that and got an error. Plus I tried to change
web.config to display a more verbose error message but it's still
display the friendly error message.

Nov 19 '05 #9
re:
I should be able to drop my application in a sub-folder of an
existing application and it should run correctly?
That's not what you asked.

You asked if you could drop *code* in a sub-folder
of an existing, and whether it would run correctly.

It *will* run correctly, if you drop it as *code*.

What you are attempting to do is *nest* applications, which since
ASP 1.0 has been *verboten* ( forbidden ), because it leads to
*kaput*, i.e., the end of your application.

If you want a different application, create a different application.

If you want a sub-application, just run it in a sub-directory of your main application.
You don't have to run a sub-application as a *different* application.

If you do, that application won't be able
to share any values with your main application

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"fenway" <ju************@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com... True, I should test it before stating that it works.

So, If I'm reading your note correctly, I should be able to drop my
application in a sub-folder of an existing application and it should
run correctly? I tried that and got an error. Plus I tried to change
web.config to display a more verbose error message but it's still
display the friendly error message.

Nov 19 '05 #10
One thing to note is that if you use VS.NET to create a ASP.NET web
application its forcing your project to become a virtual directory and it
treats is as 1 appliation. Now if you are uploading a folder to a already
working web app then you gotta check few things:

1. The .dll that VS.NET creates cannot be in the bin folder subdirectory
that you are uploading. The .dll file should be placed in the root directory
of your already working website. You can only place the .dll in the bin
folder within a sub directory if that directory is a virtual directory.

2. VS.NET creates a web.config file with standard elements that you would
find in a asp.net app defined as a virtual directory. Please be mindful that
there are certain elements that can only be declared at the machine level or
at the virtual level and NOT at the subdirectory level. So, check your
web.config file that vs.net creates for you and make sure elements like
<session>, <authentication>, I think thats it, are removed from the
web.config file since they can only be declared for a folder that is a
virtual directory..which your directory is not.

See if any of these helps. This is something I have to go through with
Virtual Hosting companies all the time.

"fenway" wrote:
Is there anyone out there that can offer a little help re: this issue?
I have a small web app that compiles and runs on my machine but will
not run on the server after I FTP it to the server. Even the simplest
pages throw a "Server Error in '/' Application." error.

I've tried tweking web.config to display a more robust error but that
is not working.

Nov 19 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Stefan | last post by:
I have a problem deploying a ASP.Net app on a 2003 Enterprise server. After installing the application I get 404's when I try to access the aspx pages on the server (not other pages like html or...
0
by: Stephen | last post by:
Hi I am having trouble with a third party component that I am attempting to use on our web application (Xceed Graph Component). When I develop locally it all works fine, but as soon as I try to...
1
by: Sean | last post by:
Tried both FTP and frontpage extensions method to the host server. Server has directory running as a ASP.NET application. If I take out ...Inherits="quizengine.WebForm1"...the page loads but no...
5
by: Richard Mintz | last post by:
Hi, I am trying to deploy a C# application to a Windows 2000 machine. When I try to run the app after the install i get a runtime error. the setup works on both XP and windows 2003 server...
0
by: Dave | last post by:
Hello The application I'm building an installer for uses dlls which were developed originally in C. Since the application itself is developed in C#, these dlls were wrapped using SWIG....
6
by: Ryan | last post by:
Is there any way to save a VB 2005 created application as an .MSI install file? The only method I see is to publish as a .EXE. Curious because I want to push out an application with Group Policy....
3
by: pooba53 | last post by:
I have a VB .NET 2003 application that communicates with an Access db. I am deploying the application using the Wizard that creates an install package and it IS properly grabbing the Access db and...
0
by: Amit | last post by:
Hi,I am new to .net 2.0 and have just built one web application and deployed the application on web server. The problem which i am facing is that if i make any changes in the .cs files or aspx...
3
by: kkao77 | last post by:
can you show me in more detail? I have same problem where on the page it's https://service.premilance.com/Company.svc, but the svcutil tells me to get it from https://pserver1/Company.svc?wsdl...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.