Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Site does not show 2

Status
Not open for further replies.

electronicmonkey

Technical User
Feb 19, 2007
45
GB
I have a rather strange problem here. I have developed a site in DotNetNuke framework on my office machine. I now moved all the files to a production server after changing all the required values. However all I get is a 404 error message in trying to access any aspx files through the browser. ASP.NET seem not to recognise the request:

"The page cannot be found" ( see )
I reinstalled ASP.NET with no luck. The htm pages in my folder load though. Has anyone ever come across a problem like this ?
 
What version of the windows is the server running? Have you set the site to use the correct version of the framework? Are ASP.NET scripts allowed or prohibited?




____________________________________________________________
Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]

Need help finding an answer? Try the Search Facility or read FAQ222-2244 on how to get better results.
 
what version of IIS are you running? starting with IIS 6.0 MS finally realized off by default is good. most of the features are disabled by default, so you need to activate them.

make sure the virtual directory is setup to be an application, not just a website. allow script and executables to execute. allow .net 2.0 (or 1.1 depending on your version) to execute. also make sure the web.config authentication is setup correctly (or turned off).

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
I am running Windows Server 2003, I am new to ASP.NET so please be patient with me . How exactly do I :

1. See is ASP.NET scripts are allowed or prohibited ?
2. Check if virtual directory is an application/website ?
3. Allow scripts/executables to execute ?
4. Allow .net2.0 to execute ?

Thanks

 
these questions relate to IIS, not necessarily asp.net. here are the steps to take
[ol]
[li]log onto the server hosting your website.[/li]
[li]open IIS Start > Settings > Control Panel > Administrative Tools > IIS[/li]
[li]click Web Service Extensions[/li]
[li]enable/disable the services you need. I don't know what DNN requires other than asp.net. on our server we only allow asp.net 1.1 and asp.net 2.0.[/li]
[li]expand Web Sites > Default Web Site[/li]
[li]view the virtual directory's properties. you will see a list of tabs.
[ol]
[li]Virtual Directory Tab:[ol]
[li]Check Read, Uncheck Write, Uncheck Directory Browsing[/li]
[li]Appication Settings: If Application Name is disabled click the button to make it an application.[/li]
[li]ExecutePermissions: Scripts and Executables[/li]
[li]Application Pool: DefaultAppPool[/li]
[/ol][/li]
[li]Directory Security Tab:[ol]
[li]if you only want Domain Users to access the site then set up Authentiation and access control.[/li]
[li]Click Edit[/li]
[li]Uncheck enable anonymous access[/li]
[li]Check Integrated Windows Authentication[/li]
[li]click OK[/li]
[/ol][/li]
[li]ASP.NET Tab:[ol]
[li]select asp.net version: 2.0.XXX[/li]
[/ol][/li][/ol]
[/li]
[li]click OK[/li]
[li]open IE view webpage[/li]
[/ol]

if you get another error message post it here so we know what the exact problem is. (minus any passwords of course)

If it does work then try if from a remote computer. if that doesn't work post the message.

you may get a generic error message. for debugging set customErrors="off" in the web.config to view the message. once everything is working set it back to either "on" or "RemoteOnly".


Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Thanks for your help so far. Web Service Extensions were as you said not enabled. Please view the progress so far. at .
I am accessing from a remote machine and will like to make the site accessible from a remote machine not in network. I'm sure that you'll crack this !!
 
i get a page time out error when attempting to view the link you supplied. I tried with the same results.

since this is a public site, you won't want Windows Integrated Authentation enabled. not that this is the cause of the timeout, just an FYI.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
I tried what it says in the error message ( created custom error tag ). This changes nothing.
There is no page time out error as far as I can see.

 
You can't have created the custom error tag correctly as the error page still states:
The current custom error settings for this application prevent the details of the application error from being viewed remotely


____________________________________________________________
Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]

Need help finding an answer? Try the Search Facility or read FAQ222-2244 on how to get better results.
 
you don't want to create a custom error tag. instead you want to turn custom errors off.

1. log onto the server.
2. open the web.config file for the site.
3. search for [tt]customErrors[/tt].
4. set cusomerErrots="off"

on the sever open IE and visit the site if there is an error or invalid data post the contents here.

if there is not an error. use your workstation to visit the site if there is an error or invalid data post the contents here.

if there is not an error. find an external workstation (one that doesn't traverse into your network) and visit the site if there is an error or invalid data post the contents here.

if there is no error then it works.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
I have turned customerrors off in the web.config file .
This is the error message from
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The code subdirectory '/NEWWEBSITE/App_Code/Reports/' does not exist.

Source Error:


Line 86: -->
Line 87: <codeSubDirectories>
Line 88: <add directoryName="Reports" />
Line 89: <add directoryName="Survey" />
Line 90: <add directoryName="DnnSiteMap" />


Source File: C:\Inetpub\WebSites\NEWWEBSITE\web.config Line: 88

------------------

Thanks
 
I know nothing about DNN, but my guess it it wan't to write files to the directories. If this is the case continue through the website tree in IIS. view the properties of the specified folders. Allow Read and Write access.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Strangely though I can see this folder from my ftp client but not through IIS

 
I have changed permission on App_Code directory to read and write and still no change in the error message. Like I said I can only see /App_Code/reports in FTP and not in IIS. Strange isn't it ?

 
not at all. App_Code, App_Browser, App_Data, App_Themes are all protected by IIS. This is by design. you don't want people browsing this from the internet.

Since this doesn't change the error message remove the Write premission to the folder.

At this point I think it's a DNN configuration issue. Read up on what exactly DNN requires to operate. From there you should be able to correct your problem. If DNN has a forum i would utilize users there. They will have far more experience on the subject.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top