RE: Web application and publishing

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi Oriane,

From your description, you're encountering some problem when try deploying
an ASP.NET web application into IIS web application folder,correct?

Based on the error message you attached, I think the problem is likely due
to the IIS virtual directory(where your application deployed) is not
configured as an "Application" directory. are you using IIS6 or IIS5 or
IIS7? You can perform the check on the "virtual directory" via the
following steps:

**launch IIS management console, locate the virtual directory node(where
your ASP.NET app deployed)

** right click the node in navigation treeview and select "properites" in
context menu

** in the "directory" or "virtual directory" tab of the dialog, you can
find an "Application Name" field, if it is disabled, that means the virtual
directory is not an application virtual directory, you need to click the
"create" button to make it an application directory. Otherwise, the ASP.NET
application cannot run correctly in it.

BTW, if you're using Visual studio's "publish website" to deploy the web
application, it may help you automatically create an application virtual
directory. For more information about IIS asp.net deployment, here are some
further web reference:

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/2
f45f2ea-bcf8-4d23-9f15-5caf7ebdc2ef.mspx?mfr=true

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/e
317e63b-7572-4740-90bb-073eef1bcb17.mspx?mfr=true

http://www.codeproject.com/KB/aspnet/IIS7ASPNet.aspx

If there is anything unclear, please feel free to let me know.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://support.microsoft.com/select/default.aspx?target=assistance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
From: "Oriane" <oriane@xxxxxxxxxxxxxxx>
Subject: Web application and publishing
Date: Mon, 1 Sep 2008 11:47:29 +0200


Hi,

I'm developinf an Asp.Net 3.5 site on W2k3, and I use a Web application
Visual Studio 2008 project. This Web app is configured on IIS 6 as an
"application" under a web site.

When I start an aspx page from IIS (or directly on the navigator), I get
an
error about the <system.web> section in the web.config file. Something
like:
using a section registered as allowDefinition="MachineToApplication"
beyond
the application level is an error. This error is probably due to a virtual
directory not configured as an application in IIS".

So perhaps I should deployed my web app on a web site, and not on IIS web
app ? If I installed it on a client site, I suppose that I should also
create a new web site, and avoid to use an IIS Web ap ?

What a IIS web app is useful for ? Only for the development phase ?


Best regards



.


Quantcast