473,698 Members | 2,873 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1440
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******** *************@g 49g2000cwa.goog legroups.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******** *************@g 49g2000cwa.goog legroups.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.goo glegroups.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.goo glegroups.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

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

Similar topics

2
1299
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 stylesheets). I installed IIS after the .Net runtime and ran aspnet_regiis afterwards. I checked, that the .aspx extension is mapped to the aspnet_isapi.dll for all verbs. Still no luck. An example W3C log entry is:
0
1193
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 deploy it to our web hosts server it has a security problem. I contacted our web host and they sent me their machine.config and web_minimaltrust.config files so I could debug using their settings. But whilst I can now replicate the problem on...
1
1391
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 functionality... of course becuase I have code behind on it. My problem is extreemly basic. Make an application on my machine, then publish to host, fire application and I get the following error. I am completely lost and totally stunned how...
5
2165
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 machines. Any Ideas Thanks for your help
0
1415
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. Initially, the machine environment variables were set to enable code development; however, I am facing problem deploying the application. To work with these wrapped libraries, the application seems to access a specific dll, for instance, let's say the C...
6
5528
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. Thanks, Ryan
3
2611
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 putting it in the Program Files directory along with the application executable, no problem. The problem is this... The OleDbConnection knows of the database in an absolute location (i.e. C:\Documents and Settings\ApplicationDB\data.mdb
0
1368
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 files then everytime i have to publish the site and give new upload for whole site everytime which i feel is not correct way of doing it.and if i give only appcode.dll file for upload then the application returns some parse error but if i give fresh...
3
2777
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 which is incorrect.. I have no clue how to fix it and i'm struggling for two days already :( On Mar 13, 3:09 pm, "Tiago Halm" <th...@nospam.hotmail.comwrote:
0
9170
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9031
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8876
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7741
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4624
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2341
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.