473,903 Members | 4,530 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IIS mis-Configuration? SSI referencing .aspx file

I think I may have an IIS / ASP.Net Configuration issue that I need some
guidance with resolving.

Here's the problem:
a) I have a .stm file.
b) I referenc a .aspx file on this .stm file using a server-side-include
directive:
<!-- include virtual="../../foobar.aspx"-->
c)When the .stm file is rendered: The .aspx file is included, but it doesn't
look like the ASP.NET engine is processing the page, because I see the raw
unprocessed .aspx page contents returned (I see <% @ Page language=c#
Codebehind="foo bar.aspx.cs"... ).

This seems to indicate to me that the ASP.Net processor isn't firing on the
server side include.

What gives?

An auxiliary question:
d) Is it possible to include query string parameters on SSI directives?
<!-- include virtual="../../foobar.aspx?que rystringparam=1 "-->

thanx muchly
Nov 19 '05 #1
4 2452

"TWEB" <tw******@noema il.nospam> wrote in message
news:25******** *************** ***********@mic rosoft.com...
I think I may have an IIS / ASP.Net Configuration issue that I need some
guidance with resolving.

Here's the problem:
a) I have a .stm file.
b) I referenc a .aspx file on this .stm file using a server-side-include
directive:
<!-- include virtual="../../foobar.aspx"-->
c)When the .stm file is rendered: The .aspx file is included, but it
doesn't
look like the ASP.NET engine is processing the page, because I see the raw
unprocessed .aspx page contents returned (I see <% @ Page language=c#
Codebehind="foo bar.aspx.cs"... ).

This seems to indicate to me that the ASP.Net processor isn't firing on
the
server side include.

What gives?

An auxiliary question:
d) Is it possible to include query string parameters on SSI directives?
<!-- include virtual="../../foobar.aspx?que rystringparam=1 "-->

thanx muchly


The server-side include is including the contents of the foobar.aspx page as
if it was hard-coded into the the page itself. Since an .stm (which I'm not
familiar with) does not go through the aspx process, the aspx page is not
parsed as aspx.

HTH,
Mythran

Nov 19 '05 #2
Thanks for Mythran's inputs.

Hi TWEB,

As Mythran has said, the serverside include just simply inject the includee
file's content as static text into the container page (without any
additional parsing). The actual parsing operation on the content depend on
the container document's extention mapping. For example, if you include a
simple txt file in an asp.net aspx page, the included txt file's content
will also be parsed because the container document is asp.net page. For
your scenario, since the container page is a static document (stm), the IIS
won't using asp.net engine to parse it , nor does the included content.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| From: "Mythran" <ki********@hot mail.comREMOVET RAIL>
| References: <25************ *************** *******@microso ft.com>
| Subject: Re: IIS mis-Configuration? SSI referencing .aspx file
| Date: Wed, 27 Jul 2005 14:50:24 -0700
| Lines: 37
| MIME-Version: 1.0
| Content-Type: text/plain;
| format=flowed;
| charset="Utf-8";
| reply-type=original
| Content-Transfer-Encoding: 7bit
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| Message-ID: <um************ **@TK2MSFTNGP10 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: 139.151.255.7
| Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP10.phx. gbl
| Xref: TK2MSFTNGXA01.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:1148 52
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
|
| "TWEB" <tw******@noema il.nospam> wrote in message
| news:25******** *************** ***********@mic rosoft.com...
| >I think I may have an IIS / ASP.Net Configuration issue that I need some
| > guidance with resolving.
| >
| > Here's the problem:
| > a) I have a .stm file.
| > b) I referenc a .aspx file on this .stm file using a server-side-include
| > directive:
| > <!-- include virtual="../../foobar.aspx"-->
| > c)When the .stm file is rendered: The .aspx file is included, but it
| > doesn't
| > look like the ASP.NET engine is processing the page, because I see the
raw
| > unprocessed .aspx page contents returned (I see <% @ Page language=c#
| > Codebehind="foo bar.aspx.cs"... ).
| >
| > This seems to indicate to me that the ASP.Net processor isn't firing on
| > the
| > server side include.
| >
| > What gives?
| >
| > An auxiliary question:
| > d) Is it possible to include query string parameters on SSI directives?
| > <!-- include virtual="../../foobar.aspx?que rystringparam=1 "-->
| >
| > thanx muchly
|
| The server-side include is including the contents of the foobar.aspx page
as
| if it was hard-coded into the the page itself. Since an .stm (which I'm
not
| familiar with) does not go through the aspx process, the aspx page is not
| parsed as aspx.
|
| HTH,
| Mythran
|
|

Nov 19 '05 #3
Great - thanks for the info.

I'm taking another line of direction here, and have chosen to go the way of
SSI with the exec directive.

(reference:
http://msdn.microsoft.com/library/de...e82116e67f.asp)

Example:
<!#exec cgi="foobar.asp x?querystringpa rm=1">

The trouble is now, that the #exec directive is sending down a bunch of HTTP
headers I don't need.

HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Thu, 28 Jul 2005 14:51:32
GMT X-Powered-By: ASP.NET Connection: close X-AspNet-Version: 1.1.4322
Transfer-Encoding: chunked Cache-Control: private Content-Type: text/html

KB Article: q290569 shows how to fix this using ASP. The same technique
doesn't appear to work when you include a .aspx file.

thanx muchly
Nov 19 '05 #4
Thanks for your further followup TWEB,

Yes, when using the SSI #exec directive with ASP.NET page, you may meet
some problems since ASP.NET is a well encapuslate dynamic document model it
doesn't like the classic ASP which just simply execute the scripts in the
file from top to end. There exists complex processing steps during the
asp.net page's processing. So IMO, I don't quite recommend you include aspx
page in your SSI file. I think raw ISAPI filters or CGI programs is the
best choice for such scenario.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| Thread-Topic: SSI referencing .aspx file - #exec
| thread-index: AcWThrYZ1hMKg1m zSqmt/WaCrPEgJw==
| X-WBNR-Posting-Host: 24.211.160.251
| From: "=?Utf-8?B?VFdFQg==?=" <tw******@noema il.nospam>
| References: <25************ *************** *******@microso ft.com>
<um************ **@TK2MSFTNGP10 .phx.gbl>
<QK************ *@TK2MSFTNGXA01 .phx.gbl>
| Subject: SSI referencing .aspx file - #exec
| Date: Thu, 28 Jul 2005 08:12:04 -0700
| Lines: 22
| Message-ID: <28************ *************** *******@microso ft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GXA02.phx.gbl!T K2MSFTNGXA03.ph x.gbl
| Xref: TK2MSFTNGXA01.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:1149 58
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Great - thanks for the info.
|
| I'm taking another line of direction here, and have chosen to go the way
of
| SSI with the exec directive.
|
| (reference:
|
http://msdn.microsoft.com/library/de...us/iissdk/html
/b7e19c37-0693-4e55-aefe-8ee82116e67f.as p)
|
| Example:
| <!#exec cgi="foobar.asp x?querystringpa rm=1">
|
| The trouble is now, that the #exec directive is sending down a bunch of
HTTP
| headers I don't need.
|
| HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Thu, 28 Jul 2005 14:51:32
| GMT X-Powered-By: ASP.NET Connection: close X-AspNet-Version: 1.1.4322
| Transfer-Encoding: chunked Cache-Control: private Content-Type: text/html
|
| KB Article: q290569 shows how to fix this using ASP. The same technique
| doesn't appear to work when you include a .aspx file.
|
| thanx muchly
|

Nov 19 '05 #5

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

Similar topics

1
1447
by: Richard_Flaherty | last post by:
I will be out of the office starting 07/19/2004 and will not return until 07/26/2004. I will respond to your message when I return.
4
2543
by: inquisitiveman2002 | last post by:
Hello, My webpage looks fine on my computer using IE v6.0, but looks way mis-aligned on my friend's computer eventhough he is using IE v6.0 also. Why is this happening? I do remember his IE saying something about Virtual Java machine should be installed a while back, but not sure if this has anything to do with it. Any thoughts? thanks. BTW, the webpage is http://www.myhousephoto.com
6
2462
by: Jon | last post by:
using Borland Compiler. x = "this is a string" strcat(x,x) strcat(x,x) will produce "this is a stringthis is a stringthis is a stringthis is a stringt"
1
2046
by: JMUApache | last post by:
Where can I download some C# MIS System Source code. Any help would be appreciate! Thanks //Chen Hui
3
1568
by: Boris | last post by:
I notice the following strange behavior of the applications running under ..NET Framework. Let say I have application MyApp.exe which reference assembly MyAssembly.dll. The MyAssembly.dll is strong named assembly, which is installed in the GAC. I notice that if MyAssembly.dll is not installed in GAC or the different version of MyAssembly.dll is installed in GAC then MyApp.exe starts OK. But as soon as the MyApp.exe app tries to call...
7
2065
by: nadahalli | last post by:
Hello, I have an XSL file that has something like this: <xsl:if test-condition1> <body attribute1 attribute2> </xsl:if> <xsl:if test-condition2> <body attribute3 attribute4> </xsl:if>
0
1716
by: jimnl69 | last post by:
Does anyone have solutions to the MS Access Database problems in the book MIS CASES - Decision Making with Application Software? Or, does anyone know where I could purchase solutions? Thanks...
19
4163
by: glchin | last post by:
Does a compiler guarantee that the variable w below is placed on an eight-byte aligned address? void myFunction( long iFreq ) { const double w = two_pi * iFreq; ... ... }
0
931
by: billybarker | last post by:
I have a club website - www.nercr.net made mostly by FP It has fames. the Top frame contains the menu and uses target= to open pages in the 'main' frame. Almost every person I speak to tells me their PC handles this correctly but my 2 PCs and laptop all fail to open the new page in the 'main' frame but open it in _self or _default when using IE6 2 x XPhome & 1 x XPpro all fully MS updated online. When I use Firefox the script is handled...
1
7787
NeoPa
by: NeoPa | last post by:
Access QueryDefs Mis-save Subquery SQL Access stores its SQL for Subqueries in a strange manner :s It seems to replace the parentheses "()"with square brackets "" and (often) add an extraneous "." after it. For instance, a simple example illustrates how it works : SELECT subA.* FROM (SELECT , FROM ) AS subA becomes (after saving as a querydef in Access) : SELECT subA.*
0
9999
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
11282
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...
1
10983
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,...
0
10500
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...
1
8048
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
7206
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
6088
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4726
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
3
3324
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.