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, 07: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, 02: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,684 micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)  Folding Points: 1480 Folding Title: Novice Folder
Time spent in forums: 5 Months 1 Week 5 Days 2 h 33 m 36 sec
Reputation Power: 2358
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, 03: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, 03: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,684 micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)  Folding Points: 1480 Folding Title: Novice Folder
Time spent in forums: 5 Months 1 Week 5 Days 2 h 33 m 36 sec
Reputation Power: 2358
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, 04: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, 04: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,684 micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)micky User rank is General 21st Grade (Above 100000 Reputation Level)  Folding Points: 1480 Folding Title: Novice Folder
Time spent in forums: 5 Months 1 Week 5 Days 2 h 33 m 36 sec
Reputation Power: 2358
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, 06: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, 07: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!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

 

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





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