.aspx files imported into FP2002

B

Brent

I've spent 3.5 days trying to figure out how to put
a .aspx file into an existing sub-directory of an
existing frontpage based website. I get the following
error every time when I try to view it:

==========================================
Server Error in '/ZenWorldNet' Application.
----------------------------------------------------------
----------------------

Runtime Error
Description: An application error occurred on the server.
The current custom error settings for this application
prevent the details of the application error from being
viewed remotely (for security reasons). It could,
however, be viewed by browsers running on the local
server machine.

Details: To enable the details of this specific error
message to be viewable on remote machines, please create
a <customErrors> tag within a "web.config" configuration
file located in the root directory of the current web
application. This <customErrors> tag should then have
its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

...

============================================

I know the .aspx file works because I can run it from the
directory created by Visual Studio in the wwwroot. I
tried Importing all the files from the VS project into my
Frontpage project, and it doesn't work.. nor can I get
debug information.. it ignores any changes I make to the
web.config file.

Is there anything I have to modify in IIS to make this
work? I have duplicated just about every security and
permissions property that VS sets up in IIS when I run
the .aspx file standalone, but it simply NEVER works when
I try to run it in my Frontpage web! Everything else
seems the same for the IIS configuration of the existing
FP website and VS-created website.

HELP ME!!

Brent
 
J

Jim Cheshire

Brent,

You'll need to make sure of several things:

1. You also copy the web.config into the root folder of your FrontPage Web
site.
2. Copy your primary assembly (.dll file) for your ASP.NET application into
the /bin folder of your FrontPage Web site. If one's not there, you'll need
to create it.
3. You need to make sure that your Web site is marked as an application
root in IIS. If it's not, you'll likely get a different error once you copy
over your web.config.

If you can browse the site from the Web server itself, you'll be able to see
what the error is.

--
Jim Cheshire
Jimco Add-ins
Add-ins for FrontPage 2000-2003
http://www.jimcoaddins.com
===============================
Co-author of Special Edition
Using Microsoft FrontPage 2003
 
J

Jim Cheshire

By repairing in Server Health, you have removed the ASPNET account from
permissions on content. You just need to go back in and give the ASPNET
account default permissions on wwwroot and as long as all subdirectories of
that are inheriting permissions (which they should be), you'll be fine.

The error message you are getting (assuming you have changed the
customErrors mode to "Off", and it is case sensitive) indicates that the
site might NOT be an app root. You do that in IIS. Right-click on the root
folder of the Web site, choose Properties, click the Home Directory or
Directory tab (depending on which you have) and clicking the Create button.
If there is no Create button but a Remove button instead, it's already an
app root. I would then click Remove and then click Create to re-create the
application.

--
Jim Cheshire
Jimco Add-ins
Add-ins for FrontPage 2000-2003
http://www.jimcoaddins.com
===============================
Co-author of Special Edition
Using Microsoft FrontPage 2003
 
B

Brent

FINALLY!!!!!!!!!!!!!!!!!!!!!!

It works!

My Frontpage website was not in wwwroot, it was mapped to
a virtual directory elsewhere on my PC.. which the ASPNET
account had no permissions to!

I kept seeing posts about 'setting permissons' to this
and that directory, and it turns out that you need to go
into control panel and uncheck 'Use Simple File Sharing
(Recommended)' in the View Tab in order to even EDIT
these permissions in XP Pro. After I did that, I was able
to add the ASPNET account to my Frontpage web outside
wwwroot, and now it works!

Thanks a ton Jim! I never would have figured that out
without your help. Can I get your email addy to discuss
asp.net & FrontPage in the future? You can drop me a line
at (e-mail address removed), I'd like to be able to repay
you someday..

Brent
 
J

Jim Cheshire

There are a few folks hanging around here who have that kind of experience.
Someone would have answered if I hadn't. :)

--
Jim Cheshire
Jimco Add-ins
Add-ins for FrontPage 2000-2003
http://www.jimcoaddins.com
===============================
Co-author of Special Edition
Using Microsoft FrontPage 2003
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top