473,386 Members | 1,598 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,386 software developers and data experts.

My ASP.NET app won't run - why?

Hi;

This is a two part question. The first is we hit a case where a user on
Windows 2003 installed .NET and IIS, but not the IIS .NET extensions. How can
we programatically check for this so we can have our setup program tell the
user this is a problem? And is there a way to then install this ourselves?

Second, when out ASP.NET app is installed and won't run - is there a way to
run some program or look in one place that will tell us why? Figuring this
out remotely is going to be a giant pain - especially as a lot of our users
tend to not be technical.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
Jan 2 '07 #1
2 1354
David,

Since the ASP.NET extensions are not on you will have a hard time with
detecting it simply because no HTTP Module run under the ASP.NET
runtime will run for you.

What you can do is use the MSBuild Community Tasks which include
support for working with IIS.

http://msbuildtasks.tigris.org/

The ones you will be interested in are related to the AppPool. You can
create a script which will check if the desired AppPool exists and is
configured for ASP.NET 2.0 and if it is not it can create it. If it
fails to create it, you can generate a message telling them about the
likely error, like not having ASP.NET extensions installed.

Brennan Stehling
http://brennan.offwhite.net/blog/

David Thielen wrote:
Hi;

This is a two part question. The first is we hit a case where a user on
Windows 2003 installed .NET and IIS, but not the IIS .NET extensions. How can
we programatically check for this so we can have our setup program tell the
user this is a problem? And is there a way to then install this ourselves?

Second, when out ASP.NET app is installed and won't run - is there a way to
run some program or look in one place that will tell us why? Figuring this
out remotely is going to be a giant pain - especially as a lot of our users
tend to not be technical.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
Jan 2 '07 #2
I am pretty sure that MSBuild is included with the .NET 2.0 runtime.
You can have an MSI installer run a script as a part of the
installation which will use MSBuild. You can also specify .NET 2.0 as
a requirement for the MSI installer.

The .NET 2.0 requirement will help the user with the .NET 2.0
installation. In Visual Studio these projects are known as Setup
projects. When you have add one of these projects to your solution
right-click on the project and look at the View menu. You will be
interested in the Custom Actions which you can take during the Install,
Commit, Rollback and Uninstall steps. You can have it run a script or
even an assembly from the Application Folder which will look for the
necessary dependencies.

For the Setup projects I use, I add the Primary Output of the
Application Folder in the Filesystem View which will detect that it
requires .NET 2.0.

Brennan Stehling
http://brennan.offwhite.net/blog/

David Thielen wrote:
My problem is that this is for a setup program run on customer's computer so
msbuild is not available.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


"Brennan Stehling" wrote:
David,

Since the ASP.NET extensions are not on you will have a hard time with
detecting it simply because no HTTP Module run under the ASP.NET
runtime will run for you.

What you can do is use the MSBuild Community Tasks which include
support for working with IIS.

http://msbuildtasks.tigris.org/

The ones you will be interested in are related to the AppPool. You can
create a script which will check if the desired AppPool exists and is
configured for ASP.NET 2.0 and if it is not it can create it. If it
fails to create it, you can generate a message telling them about the
likely error, like not having ASP.NET extensions installed.

Brennan Stehling
http://brennan.offwhite.net/blog/

David Thielen wrote:
Hi;
>
This is a two part question. The first is we hit a case where a user on
Windows 2003 installed .NET and IIS, but not the IIS .NET extensions. How can
we programatically check for this so we can have our setup program tell the
user this is a problem? And is there a way to then install this ourselves?
>
Second, when out ASP.NET app is installed and won't run - is there a way to
run some program or look in one place that will tell us why? Figuring this
out remotely is going to be a giant pain - especially as a lot of our users
tend to not be technical.
>
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
>
Cubicle Wars - http://www.windwardreports.com/film.htm
Jan 2 '07 #3

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

Similar topics

16
by: Kerry Neilson | last post by:
For the past couple of months, Idle won't start when I invoke it. I am at a complete loss for why this is. When this happens, they python command line still starts, and python works fine...
4
by: Scott Nichols | last post by:
Hi, I'm trying to debuf an aspnet app. When I invoke the debugger I can place a break point in any file except one. This file always gives by the circle with the question mark in it. Also the...
5
by: Julia Baresch | last post by:
Hi everyone, I haven't found any reference to this problem on this group or in Access 97 help. I hope someone here knows this - probably a simple thing, but not obvious. I designed a query to...
3
by: DFS | last post by:
I've been working around this for years (I believe), so I figured someone here might know: Why won't a crosstab query accept a value from a form reference? TRANSFORM...
3
by: Footsie | last post by:
Hay guys, When I create a switchboard, everything works fine until the last step: the main (default) switchboard page won't show up. I've double-checked the macros and the individual pages...
2
by: Sam Miller | last post by:
Hi, I have a button event that won't fire. I left it on Friday and it worked fine. I came back in on Monday and it won't fire. I tried putting another button and just putting a...
7
by: simon | last post by:
I have simple html(aspx) page, but vertical height won't work. Even if i had set the height of a table=100%, the table is not 100% height. I spend a lot of time(my real page is more...
3
by: musosdev | last post by:
Hi guys Okay, I've setup my projects to open and compile fine in VS2005 using FPSE and remote web, but it's *really* slow. So I thought I'd have a go at doing it the normal way, by loading from...
2
by: Ryan Liu | last post by:
Hi, I need the MouseDown event be trigged everytime when you press mouse in a datagrid (System.Windows.Forms). But seems mouse event will only fire once, and it seems changed to edit mode...
2
tpgames
by: tpgames | last post by:
Two days ago, MS office Word would type JP fonts, I thought. I didn't think I was using Works. Now, it won't type in JP. Jasc Paint shop pro 8, should type JP fonts because I am using XP, according...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...

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.