In moving a ASP.NET site from a W2K IIS5 server to a new W2K3 IIS6 server,
we are having trouble with what appears to be ASP.NET server side includes
in the .shtml files. I did not set up the old server or code the site and
have just been brought onto this project so I'm hoping someone out there
with a tad more experience can help me.
The code in the shtml file looks like this:
<%@ Page language="c#" AutoEventWireup="false"
Inherits="MySite.Web.BasePages.MySiteBasePage" %> <%@ Register
TagPrefix="MS" TagName="Header" Src="~/Controls/BasePagesl/Header.ascx" %>
<%@ Register TagPrefix="MS" TagName="Footer"
Src="~/Controls/BasePages/Footer.ascx" %>
I have mapped the .shtml files on the site to use the aspnet_isapi dll which
matches the settings on the old server. Once I did this, I got an error:
"Server cannot access application directory <my directory>. The directory
does not exist or is not accessable due to security settings".
Fine. I went and granted rights to the folder to my ASPNET account as per
documentation. Still same error. Then I looked at the old server and noticed
that the Everyone account has access to the web folders. Fine. I granted
that permission. When I did that, the server dumps the the whole file to the
browser and does not interpret anything. Its just like it read it like a
text file.
Any ideas?
- Ron 5 1211
So on a whim, I renamed the page to have a .aspx extension and it works fine
that way!! But the page with
the .shtml extension does not, even though it *should* be mapped to execute
using the .NET framework. The
application extension mapping is the same as the .aspx pages. Seems that the
mapping is not working correctly???
"Ron Weldy" <ro******@msn.com> wrote in message
news:uk**************@TK2MSFTNGP15.phx.gbl... In moving a ASP.NET site from a W2K IIS5 server to a new W2K3 IIS6 server, we are having trouble with what appears to be ASP.NET server side includes in the .shtml files. I did not set up the old server or code the site and have just been brought onto this project so I'm hoping someone out there with a tad more experience can help me.
The code in the shtml file looks like this:
<%@ Page language="c#" AutoEventWireup="false" Inherits="MySite.Web.BasePages.MySiteBasePage" %> <%@ Register TagPrefix="MS" TagName="Header" Src="~/Controls/BasePagesl/Header.ascx" %> <%@ Register TagPrefix="MS" TagName="Footer" Src="~/Controls/BasePages/Footer.ascx" %>
I have mapped the .shtml files on the site to use the aspnet_isapi dll which matches the settings on the old server. Once I did this, I got an error:
"Server cannot access application directory <my directory>. The directory does not exist or is not accessable due to security settings".
Fine. I went and granted rights to the folder to my ASPNET account as per documentation. Still same error. Then I looked at the old server and noticed that the Everyone account has access to the web folders. Fine. I granted that permission. When I did that, the server dumps the the whole file to the browser and does not interpret anything. Its just like it read it like a text file.
Any ideas?
- Ron
So on a whim, I renamed the page to have a .aspx extension and it works fine
that way!! But the page with
the .shtml extension does not, even though it *should* be mapped to execute
using the .NET framework. The
application extension mapping is the same as the .aspx pages. Seems that the
mapping is not working correctly???
"Ron Weldy" <ro******@msn.com> wrote in message
news:uk**************@TK2MSFTNGP15.phx.gbl... In moving a ASP.NET site from a W2K IIS5 server to a new W2K3 IIS6 server, we are having trouble with what appears to be ASP.NET server side includes in the .shtml files. I did not set up the old server or code the site and have just been brought onto this project so I'm hoping someone out there with a tad more experience can help me.
The code in the shtml file looks like this:
<%@ Page language="c#" AutoEventWireup="false" Inherits="MySite.Web.BasePages.MySiteBasePage" %> <%@ Register TagPrefix="MS" TagName="Header" Src="~/Controls/BasePagesl/Header.ascx" %> <%@ Register TagPrefix="MS" TagName="Footer" Src="~/Controls/BasePages/Footer.ascx" %>
I have mapped the .shtml files on the site to use the aspnet_isapi dll which matches the settings on the old server. Once I did this, I got an error:
"Server cannot access application directory <my directory>. The directory does not exist or is not accessable due to security settings".
Fine. I went and granted rights to the folder to my ASPNET account as per documentation. Still same error. Then I looked at the old server and noticed that the Everyone account has access to the web folders. Fine. I granted that permission. When I did that, the server dumps the the whole file to the browser and does not interpret anything. Its just like it read it like a text file.
Any ideas?
- Ron
Hi Ron..
U can try checking:- http://www.microsoft.com/india/msdn/articles/57.aspx
It shoud hELP u..
Patrick
"Ron Weldy" wrote: So on a whim, I renamed the page to have a .aspx extension and it works fine that way!! But the page with the .shtml extension does not, even though it *should* be mapped to execute using the .NET framework. The application extension mapping is the same as the .aspx pages. Seems that the mapping is not working correctly???
"Ron Weldy" <ro******@msn.com> wrote in message news:uk**************@TK2MSFTNGP15.phx.gbl... In moving a ASP.NET site from a W2K IIS5 server to a new W2K3 IIS6 server, we are having trouble with what appears to be ASP.NET server side includes in the .shtml files. I did not set up the old server or code the site and have just been brought onto this project so I'm hoping someone out there with a tad more experience can help me.
The code in the shtml file looks like this:
<%@ Page language="c#" AutoEventWireup="false" Inherits="MySite.Web.BasePages.MySiteBasePage" %> <%@ Register TagPrefix="MS" TagName="Header" Src="~/Controls/BasePagesl/Header.ascx" %> <%@ Register TagPrefix="MS" TagName="Footer" Src="~/Controls/BasePages/Footer.ascx" %>
I have mapped the .shtml files on the site to use the aspnet_isapi dll which matches the settings on the old server. Once I did this, I got an error:
"Server cannot access application directory <my directory>. The directory does not exist or is not accessable due to security settings".
Fine. I went and granted rights to the folder to my ASPNET account as per documentation. Still same error. Then I looked at the old server and noticed that the Everyone account has access to the web folders. Fine. I granted that permission. When I did that, the server dumps the the whole file to the browser and does not interpret anything. Its just like it read it like a text file.
Any ideas?
- Ron
Thanks. Great article. Unless I'm missing something, it's implying that I
need to create a http handler for this extension as well. I checked the
web.config file on the old server and I don't see anything in there like
this, and the .shtml files serve up correctly from there, so that makes me
somewhat suspicious.
Now there are several web sites hosted on the server although this site is
the only one where the original techie had overridden the mapping for the
..shtml files. I suppose it could be in a global configuration file... but I
am not sure where that is at. I would place a handler in the local file just
to see if that works but I am not sure of the correct class to use. I guess
it would be just System.Web?
- Ron
"Patrick.O.Ige" <Pa*********@discussions.microsoft.com> wrote in message
news:AF**********************************@microsof t.com... Hi Ron.. U can try checking:- http://www.microsoft.com/india/msdn/articles/57.aspx It shoud hELP u.. Patrick
"Ron Weldy" wrote:
So on a whim, I renamed the page to have a .aspx extension and it works fine that way!! But the page with the .shtml extension does not, even though it *should* be mapped to execute using the .NET framework. The application extension mapping is the same as the .aspx pages. Seems that the mapping is not working correctly???
"Ron Weldy" <ro******@msn.com> wrote in message news:uk**************@TK2MSFTNGP15.phx.gbl... > In moving a ASP.NET site from a W2K IIS5 server to a new W2K3 IIS6 > server, > we are having trouble with what appears to be ASP.NET server side > includes > in the .shtml files. I did not set up the old server or code the site > and > have just been brought onto this project so I'm hoping someone out > there > with a tad more experience can help me. > > The code in the shtml file looks like this: > > <%@ Page language="c#" AutoEventWireup="false" > Inherits="MySite.Web.BasePages.MySiteBasePage" %> <%@ Register > TagPrefix="MS" TagName="Header" Src="~/Controls/BasePagesl/Header.ascx" > %> > <%@ Register TagPrefix="MS" TagName="Footer" > Src="~/Controls/BasePages/Footer.ascx" %> > > > I have mapped the .shtml files on the site to use the aspnet_isapi dll > which matches the settings on the old server. Once I did this, I got an > error: > > "Server cannot access application directory <my directory>. The > directory > does not exist or is not accessable due to security settings". > > Fine. I went and granted rights to the folder to my ASPNET account as > per > documentation. Still same error. Then I looked at the old server and > noticed that the Everyone account has access to the web folders. Fine. > I > granted that permission. When I did that, the server dumps the the > whole > file to the browser and does not interpret anything. Its just like it > read > it like a text file. > > Any ideas? > > - Ron >
That was it. It was in the machine.config file. The class was
System.Web.UI.PageHandlerFactory.
Patrick, you are the man!
Thanks!
- Ron
"Ron Weldy" <ro******@msn.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... Thanks. Great article. Unless I'm missing something, it's implying that I need to create a http handler for this extension as well. I checked the web.config file on the old server and I don't see anything in there like this, and the .shtml files serve up correctly from there, so that makes me somewhat suspicious.
Now there are several web sites hosted on the server although this site is the only one where the original techie had overridden the mapping for the .shtml files. I suppose it could be in a global configuration file... but I am not sure where that is at. I would place a handler in the local file just to see if that works but I am not sure of the correct class to use. I guess it would be just System.Web?
- Ron
"Patrick.O.Ige" <Pa*********@discussions.microsoft.com> wrote in message news:AF**********************************@microsof t.com... Hi Ron.. U can try checking:- http://www.microsoft.com/india/msdn/articles/57.aspx It shoud hELP u.. Patrick
"Ron Weldy" wrote:
So on a whim, I renamed the page to have a .aspx extension and it works fine that way!! But the page with the .shtml extension does not, even though it *should* be mapped to execute using the .NET framework. The application extension mapping is the same as the .aspx pages. Seems that the mapping is not working correctly???
"Ron Weldy" <ro******@msn.com> wrote in message news:uk**************@TK2MSFTNGP15.phx.gbl... > In moving a ASP.NET site from a W2K IIS5 server to a new W2K3 IIS6 > server, > we are having trouble with what appears to be ASP.NET server side > includes > in the .shtml files. I did not set up the old server or code the site > and > have just been brought onto this project so I'm hoping someone out > there > with a tad more experience can help me. > > The code in the shtml file looks like this: > > <%@ Page language="c#" AutoEventWireup="false" > Inherits="MySite.Web.BasePages.MySiteBasePage" %> <%@ Register > TagPrefix="MS" TagName="Header" > Src="~/Controls/BasePagesl/Header.ascx" %> > <%@ Register TagPrefix="MS" TagName="Footer" > Src="~/Controls/BasePages/Footer.ascx" %> > > > I have mapped the .shtml files on the site to use the aspnet_isapi dll > which matches the settings on the old server. Once I did this, I got > an > error: > > "Server cannot access application directory <my directory>. The > directory > does not exist or is not accessable due to security settings". > > Fine. I went and granted rights to the folder to my ASPNET account as > per > documentation. Still same error. Then I looked at the old server and > noticed that the Everyone account has access to the web folders. Fine. > I > granted that permission. When I did that, the server dumps the the > whole > file to the browser and does not interpret anything. Its just like it > read > it like a text file. > > Any ideas? > > - Ron >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Penn Markham |
last post by:
Hello all,
I am writing a script where I need to use the system() function to call
htpasswd. I can do this just fine on the command line...works great
(see attached file, test.php). When my...
|
by: GuyInTn |
last post by:
Hi all,
I have been given the task of moving an sql database from one server
to another. These servers are not on the same network. I know I can
detach the database, copy it to a new location,...
|
by: Nirbho |
last post by:
Hi,
I've got a c#.net web app that uses SQl Server 2000. It all works very well
on my Development PC, but now I've got to install the app onto some real
servers. I have 3 servers: 2 for the web...
|
by: Daniel Walzenbach |
last post by:
Hi,
I have a web application which sometimes throws an “out of memory”
exception. To get an idea what happens I traced some values using performance
monitor and got the following values (for...
|
by: MartyNg |
last post by:
I have been looking online for pointers, and read mixed things. I was
hoping if I post direct questions here, I could get some solid answers.
I work for a small company with less than 10 web...
|
by: Paul Wagstaff |
last post by:
Hi all
Our organisation is moving form Win NT / full version of Acc 97 to Win XP /
run-time version of Acc 03 (as part of Office 03) for the users. We have
heaps of mdbs on the servers - some...
|
by: rick |
last post by:
Hi
I m trying to move only stored procedures from one database to another
and also onto a database on another server, I tried
db2 -x "select text from syscat.procedures where procschema =...
|
by: Bookham Measures |
last post by:
Hello
We are planning to set-up a load balanced web environment. Accordingly, we
are going to change the session management on our website from the classic
ASP Session State and session...
|
by: gar598 |
last post by:
I don't have much experience moving these types of site, but we're
changing sites, and I've been asked to move the site to a new server.
It's your typical setup Windows server, ASP.Net 2.0., a few...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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...
|
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...
|
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...
|
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,...
|
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...
| |