DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Can't Upload Images - HTTP 405 Error

 2 Replies
 0 Subscribed to this topic
 30 Subscribed to this forum
Sort:
Author
Messages
Growing Member
Posts: 107
Growing Member

I am evaluating active forums 6.5 on dnn 9.8.1. as a test, i tried to post a message with an image attachment. the program reports that the image type is not allowed, but it is allowed on my site (jpg). so i tried the easydnn forums module but it reports http 405. its support agent says that it is permissions but he is off the mark because the apppool identity has full control to the root of the web folder (and below).

i am able to upload images in my theme manager, the html module, and the site and global resources modules. so i think that this issue might be ckeditor related - but not sure. i tried looking at some of its settings, but it is not clear what to change - if even that is the culprit.

i do have content security policy policies, but removing them did not help.

Growing Member
Posts: 107
Growing Member
mea culpa on the active forums issue. it has its own list of allowed files and does not include jpg by default. adding it allowed the file to upload. unfortunately, viewing the uploaded image causes a nasty runtime sql error. i will open a new posting on it, but for those who must look at a bad accident:

AbsoluteURL:/DesktopModules/ActiveForums/viewer.aspx

DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke

ExceptionGUID:810ad2c6-d9bf-41c2-8afc-5900d4c2d80a

AssemblyVersion:9.8.1

PortalId:0

UserId:1

TabId:22

RawUrl:/DesktopModules/ActiveForums/viewer.aspx?portalid=0&moduleid=409&attachmentid=1

Referrer:https://www.etiquemarket.com/forums/aft/1

UserAgent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36

ExceptionHash:/VFfOZMMg9MveQQqJsZTO0DUn/8=

Message:Invalid object name 'dbo.vw_activeforums_TopicView as tv on tv.ContentId = A.ContentId INNER JOIN dbo.[activeforums_ForumTopics'.

StackTrace:

InnerMessage:Invalid object name 'dbo.vw_activeforums_TopicView as tv on tv.ContentId = A.ContentId INNER JOIN dbo.[activeforums_ForumTopics'.

InnerStackTrace:

at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)
at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters, SqlConnectionOwnership connectionOwnership)
at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters)
at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, String spName, Object[] parameterValues)
at DotNetNuke.Modules.ActiveForums.Data.AttachController.Get(Int32 attachmentId, Int32 fileId, Boolean withSecurity)
at DotNetNuke.Modules.ActiveForums.af_viewer.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Source:

FileName:

FileLineNumber:0

FileColumnNumber:0

Method:
Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!

I think it's better is you log this on github https://github.com/DNNCom.../Dnn.CommunityForums :-)

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved