Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 9th, 2009, 08:49 AM
jassi_tkm jassi_tkm is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2009
Posts: 23 jassi_tkm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 32 m 37 sec
Reputation Power: 0
Question Server Error in '/scalendar' Application

Hello,

I am totally new to IIS, this is my first time I am using it.

I have created a asp.net web site and want to host on net. In the domain under IIS Managemetn, I created new application folder "scalendar". I got this folder newly generated in File Manager. The application start with "LoginForm.aspx". I added LoginForm.aspx and LoginForm.aspx.vb and a Folder ErrorPAges which contains 3 html pages of errors. In my web.config, I modified the following

<customErrors mode="On" defaultRedirect="/ErrorPages/AppErrorPage.htm">
<error statusCode="403" redirect="/ErrorPages/403Error.htm" />
<error statusCode="404" redirect="/ErrorPages/404Error.htm" />
</customErrors>

and uploaded all 3 pages in ErroPages in my scalendar folder. When I run the site, I get the following error:

Server Error in '/scalendar' 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 -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


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

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>

In the web.config, now I don't find anything like above. I believe I need to do some settings or add something more which I am not aware of. The application runs normally on my VS 2008 under ASP DEveloper Center.

Can anybody help me know the nature of this error and how to solve it.

Thanks

Reply With Quote
  #2  
Old August 13th, 2009, 03:15 AM
micky's Avatar
micky micky is offline
Couch Potato Wizard
Click here for more information. Click here for more information
 
Join Date: Jan 2005
Location: India
Posts: 12,259 micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)  Folding Points: 1480 Folding Title: Novice Folder
Time spent in forums: 5 Months 4 Days 2 m 48 sec
Reputation Power: 2179
To find the error, replace these lines
Code:
<customErrors mode="On" defaultRedirect="/ErrorPages/AppErrorPage.htm">
<error statusCode="403" redirect="/ErrorPages/403Error.htm" />
<error statusCode="404" redirect="/ErrorPages/404Error.htm" />
</customErrors>

with this
Code:
<customErrors mode="Off"/>
__________________
Laziness is my religion and Sunday is my God

Get the Mantra!

Reply With Quote
  #3  
Old August 13th, 2009, 04:32 AM
jassi_tkm jassi_tkm is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2009
Posts: 23 jassi_tkm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 32 m 37 sec
Reputation Power: 0
I created index.html and the above error was gone. I was getting index.html, where I added a link to LoginForm.aspx. From then, I am getting "500 internal server error. There is a problem with the resource you are looking for, and it cannot be displayed."

I thought it might be not getting the database and required resources, so I copied all resources including the dll, etc from the Published folder to the site.

I changed <customErrors mode="Off" /> as you mentioned. But, yet all I can see is the same message - 500 internal error .....

I want to see the error stack, how do I see it - no idea.

Reply With Quote
  #4  
Old August 13th, 2009, 04:39 AM
micky's Avatar
micky micky is offline
Couch Potato Wizard
Click here for more information. Click here for more information
 
Join Date: Jan 2005
Location: India
Posts: 12,259 micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)  Folding Points: 1480 Folding Title: Novice Folder
Time spent in forums: 5 Months 4 Days 2 m 48 sec
Reputation Power: 2179
You need to Disable IE “Friendly HTTP error messages”
Go to Internet Options -> Advanced -> uncheck "Show Friendly HTTP error messages"

This might show the real error.

Reply With Quote
  #5  
Old August 13th, 2009, 05:08 AM
jassi_tkm jassi_tkm is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2009
Posts: 23 jassi_tkm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 32 m 37 sec
Reputation Power: 0
Quote:
Originally Posted by micky
You need to Disable IE “Friendly HTTP error messages”
Go to Internet Options -> Advanced -> uncheck "Show Friendly HTTP error messages"

This might show the real error.


Yet the same. I also tried on Mozilla, their also it showed the same - 500 internal server error

Can u see the error on your machine - http://qschedule.net/scalendar

Reply With Quote
  #6  
Old August 13th, 2009, 05:15 AM
micky's Avatar
micky micky is offline
Couch Potato Wizard
Click here for more information. Click here for more information
 
Join Date: Jan 2005
Location: India
Posts: 12,259 micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)micky User rank is General 18th Grade (Above 100000 Reputation Level)  Folding Points: 1480 Folding Title: Novice Folder
Time spent in forums: 5 Months 4 Days 2 m 48 sec
Reputation Power: 2179
I also see the same error, i can think of 2 reasons for this

1. This folder "scalendar" has not been set as "Virtual Directory" in IIS.

2. You might have to change your default page's name from "LoginForm.aspx" to "Default.aspx" .............. because some servers dont allow any other name as default page.

Reply With Quote
  #7  
Old August 13th, 2009, 07:24 AM
jassi_tkm jassi_tkm is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2009
Posts: 23 jassi_tkm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 32 m 37 sec
Reputation Power: 0
Quote:
Originally Posted by micky
I also see the same error, i can think of 2 reasons for this

1. This folder "scalendar" has not been set as "Virtual Directory" in IIS.

2. You might have to change your default page's name from "LoginForm.aspx" to "Default.aspx" .............. because some servers dont allow any other name as default page.


I already have index.html and Default.aspx. And in my web.config, I don't see that LoginFrom.aspx is set as starting page.

In IIS Management, I already have scalendar dir, due to which I got this dir name in File manager by default. I belive that the dir created under IIS Management is a virtual dir only.
Settings for the dir are set to True/sElected for Anonymous Access and Set Application Root. Dir Browsing is not selected. And is created under Content Root. Just for confirmity, I clicked Create, and it showed
"Creating directories

To create a new IIS virtual directory, select the parent directory and click Create. In the Create panel, enter a directory name and specify folder permissions. Multiple directories can be created by separating each directory name with a comma. When finished click Ok."

So Virtual dir is created. Now the folder already has index.html and default.aspx files. I changed the file name of Default.aspx. But no success.

One point might be on concern,
I have added files as they were in the published folder for eg,. the dll, etc was in bin folder and is saved in bin only.

Reply With Quote
  #8  
Old August 13th, 2009, 08:15 AM
jassi_tkm jassi_tkm is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2009
Posts: 23 jassi_tkm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 32 m 37 sec
Reputation Power: 0
Quote:
Originally Posted by micky
I also see the same error, i can think of 2 reasons for this

1. This folder "scalendar" has not been set as "Virtual Directory" in IIS.

2. You might have to change your default page's name from "LoginForm.aspx" to "Default.aspx" .............. because some servers dont allow any other name as default page.


Ok, I created a new Virtual directory whose properties are set as Anonuymous Access and Set Application Root as true. I have my published folder path as
/Admin - Aspx files
/bin - dll, pdb, xml file
/ErrorPages - html files
/Service References - Empty
other files - 1 master and
web.config

I added a newly made Default.aspx file and the site looks like this - http://qschedule.net/schdCal/
The site contain only 1 file i.e the Default.aspx.

How do I proceed adding other files?
How can I test that the db created and its DSN is working properly or not? As their is a module that access the db and handles all db operations.

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > Server Error in '/scalendar' Application


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek