Posted by: netghost - Saturday, 11 February 2012 20:34:42
i get a timeout when i try uploading a file of about 5mb .. "Request Timed out" ...
Posted by: tha_watcha - Saturday, 11 February 2012 21:09:35
[quote=netghost;53203]i get a timeout when i try uploading a file of about 5mb .. "Request Timed out" ...[/quote]
Then simply increase the maxRequestLength Value
[code=xml][/code]
In that case you can upload files about 10 MB
Posted by: Dr-Hack - Saturday, 11 February 2012 21:27:47
[b]Very Simple ..[/b]
1. Open Google.com
2. Type "Upload Timeout YAF"
3. Press the "I'm Feeling Lucky Button" or Enter.
4. Select the First Result.
5. Read the [url=http://forum.yetanotherforum.net/yaf_postsm46916_Timeout-error-when-uploading-YAF-module.aspx#post46916]2nd Pos[/url]t on that Page written by the_watcha.
Posted by: netghost - Thursday, 16 February 2012 01:11:36
i get a runtime error when i add the http runtime tag to my web.config file
Posted by: tha_watcha - Thursday, 16 February 2012 01:51:47
[quote=netghost;53258]i get a runtime error when i add the http runtime tag to my web.config file [/quote]
Please post the full error message
Posted by: netghost - Thursday, 16 February 2012 11:22:56
[code=xml]
Server Error in '/' 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 tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".
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 configuration tag to point to a custom error page URL.
[/code]
Posted by: tha_watcha - Thursday, 16 February 2012 11:55:25
Please do what the error message says and turn off custom errors to see the real error.
[code=xml] [/code]
Posted by: squirrel - Thursday, 16 February 2012 14:31:30
You said you get an error when you "ADD" the tag for httpruntime. Look and make sure you don't already have one and make changes to it. You can't have two httpruntime tags in one web.config
Posted by: netghost - Thursday, 16 February 2012 19:35:08
[code=xml]
Server Error in '/' Application.
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: Unrecognized attribute 'requestValidationMode'. Note that attribute names are case-sensitive.
Source Error:
Line 13:
Line 14:
Line 15:
Line 16:
Line 17:
Source File: C:\Inetpub\vhosts\woonick.com\httpdocs\web.config Line: 15
[/code]
error message
Posted by: squirrel - Thursday, 16 February 2012 20:36:23
[quote=netghost;53297][code=xml]
Server Error in '/' Application.
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: Unrecognized attribute 'requestValidationMode'. Note that attribute names are case-sensitive.
Source Error:
Line 13:
Line 14:
Line 15:
Line 16:
Line 17:
Source File: C:\Inetpub\vhosts\woonick.com\httpdocs\web.config Line: 15
[/code]
error message[/quote]
If it's complaining about the "requestValidationMode" parameter, everything I read states that you need to verify that your app is actually running in a .NET 4.0 application pool. That error generally means that the pool is running in 2.0/3.5 mode. If anything, paste the 'bottom' of that error into a reply here. The last line in the error page usually states the '.NET version' of the pool that is running the code that generated the error.
Posted by: JP - Thursday, 16 February 2012 21:53:26
As squirrel says, your forum application is probably running in a .Net 2.0 application pool. The web.config backwards compatibility parameter requestValidationMode is not recognized there.
Have had the same issue - Been there, done that...
Posted by: netghost - Friday, 17 February 2012 10:12:38
[b]requestValidationMode="2.0"[/b]
i removed the above section from the code and it works fine
Posted by: squirrel - Friday, 17 February 2012 13:56:48
Be aware, if you are running forum version 1.9.6 or higher, you must have .NET 4.0 or you will run into problems. If by removing that value from web.config that pretty much confirms you are running in a .NET 2.0/3.5 pool, which is not right for YAF v1.9.6 (any) and higher.