DiscountASP.NET Forums                  

Go Back   DiscountASP.NET Forums > Site Programming, Development and Design > ASP.NET

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 03-20-2012, 10:04 PM   #1
jpweber
 
Join Date: Dec 2011
Location: Detroit suburbs, Michigan, USA
Posts: 28
Exclamation yetanotherforumm is not working; runtime error

I have a site made in Visual Studio / VB / .NET4. I downloaded yetanotherforum either from the web gallery or the Microsoft Web Platform Installer, and everything worked seemingly fine, locally. Upon uploading to production, however, I'm not sure if it's because I have netsted web.configs (the forum is located in the /knowledgbase/ directory, and there's a web.config there), or if I didn't do something with IIS. And I've googled it. It's been suggested that either nested web.configs or not having globalmachine.config permissions may be the issue. It's located here:

http://www.ussvision.com/knowledgebase/default.aspx

And you'll see the error message, which is:
Server Error in '/ussvision' 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.

Details: To enable the details of this specific error message to be viewable on the local server machine, 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 "RemoteOnly". To enable the details to be viewable on remote machines, please set "mode" to "Off".


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

<configuration>
<system.web>
<customErrors mode="RemoteOnly"/>
</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="On" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>

Any guidance you could offer would be greatly appreciated!
jpweber is offline  
Old 03-21-2012, 08:58 AM   #2
jayc
 
Join Date: Aug 2011
Posts: 232
Disable custom error as instructed to see the real exception thrown..

To enable the details of this specific error message to be viewable on the local server machine, 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 "RemoteOnly". To enable the details to be viewable on remote machines, please set "mode" to "Off".
jayc is offline  
Old 03-21-2012, 09:02 AM   #3
jpweber
 
Join Date: Dec 2011
Location: Detroit suburbs, Michigan, USA
Posts: 28
Thanks Jay. I had to purchase a database from discountasp (my sql 2008 R2) to get it to work. Then I had to put that connection string into the db.config section of the knowledgebase directory. So far, things are going okay, but I'm still trying to figure out how to do things.

For instance, I'm trying to figure out how to add questions to the registration process, and make registration mandatory. I'd like to know what company they're from, and what their company phone number is.

Do you have any suggestions?

Thanks again for your time!

Jason Weber
USS Vision Inc.
jpweber is offline  
Old 03-21-2012, 09:32 AM   #4
jayc
 
Join Date: Aug 2011
Posts: 232
Quote:
Originally Posted by jpweber View Post

For instance, I'm trying to figure out how to add questions to the registration process, and make registration mandatory. I'd like to know what company they're from, and what their company phone number is.
You meant make registration mandatory prior to visiting your site? If so, you can simply setup <authorization> and <authentication> node on web.config that check site visitor; If they are not registered, simply redirect them to registration page. If user is registered, allow access.

You can get user informations in the form that you setup (company, phone#, etc) If you fancy something more detail like visitor's IP addressed and which page they visited you can use Google's analytic service with neat GUI or create your own like the one here
http://www.mycsharpcorner.com/Post.aspx?postID=27
jayc is offline  
Closed Thread

Bookmarks

Tags
asp.net 4, visual-studio-2010, web.config, web.config file error

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
server application error...virtual directory? bcsmith Windows 2008/IIS 7 3 04-13-2009 10:18 AM
I m getting the error whenever i try to run pages under login page ... but these things working fine Millate ASP.NET 2 02-22-2008 02:53 AM
runtime error bahram ASP.NET Starter Kits 1 08-22-2006 06:53 AM
Server Error in '/' Application i.e runtime error BALUVEER_MUKKAMALA ASP.NET 1 05-26-2005 12:43 PM
Runtime Error calvin ASP.NET 7 01-19-2004 08:38 AM


All times are GMT -7. The time now is 10:27 AM.


vBulletin ©Jelsoft Enterprises Ltd.