|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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"/> |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
||||
|
||||
|
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. |
|
#5
|
|||
|
|||
|
Quote:
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 |
|
#6
|
||||
|
||||
|
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. |
|
#7
|
|||
|
|||
|
Quote:
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. |
|
#8
|
|||
|
|||
|
Quote:
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. |
![]() |
| Viewing: ASP Free Forums > System Administration > Microsoft IIS > Server Error in '/scalendar' Application |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|