473,809 Members | 2,724 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_windwa rd_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
Jan 2 '07 #1
2 1369
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_windwa rd_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_windwa rd_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_windwa rd_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
12937
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 otherwise. Most interesting to me is that a reboot won't fix the problem. But if I just try it again sometime later it will work. Anyone have any ideas? I'm running python 2.3 on windows 2000 professional.
4
2249
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 assembly doesn't take any of the changes I make in this file. So I now the file is not part of the compiled assembly and that's why I have this problem. But Why is it not part of the assembly?
5
7262
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 pull payment data from my database for accounting. It has 3 tables with one-to-many joins: Table1 --> one-to-many --> Table2 --> one-to-many --> Table3 The payment amount field is in Table3. I entered a few negative
3
6178
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 Format(First(QtrAvg),'Fixed') AS FirstQtrAvg SELECT PropertyCode, Survey, Question FROM SurveyData WHERE PropertyCode = Forms.MainForm.Subform.Form.PropertyCode GROUP BY PropertyCode, Survey, Question
3
2149
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 (under Tools-Database utilities-Switchboard Manager) and everything else is fine. What might the problem be, and how can I fix it?
2
3899
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 response.write on its click handler but it won't fire either telling me no button click events will fire. But my calendar control on the same page does fire. In the debugger I put a break point in the calendar event and the button
7
1779
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 complicated) to figured it out that this won't work because of attribute of a page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> I have visual studio 2005 beta2 and it appends this attribute to every...
3
5058
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 the network share. It loads in VS2005 fine, and I can edit and save code changes etc, but when I try and Build the solution, I get the following error... An error occured loading a configuration file: Failed to start monitoring
2
2606
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 for the cell (even the cell is read). The mouse event won't fire again until I click on some other cell and come back and click on the original again.
2
2974
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 to Corel's website, and Jasc uses whatever is in the XP font folder. But, it won't. All the JP fonts types as English, even with JP selected in the Language Bar. I can't afford to upgrade to any better paint program. I do have a free JP word...
0
9721
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9601
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10378
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7653
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
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
5550
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...
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3013
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.