Sign In  |  Register
 
 DotNetNuke Powered!
DotNetNuke Support Forums

String.Format Error in FileManager

Rate this topic:

Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

AuthorMessages
rdieter
Posts:5



01/16/2007 3:52 PM  

 Now to a more self serving issue. I have successfully upgraded one of my websites from DNN 3.3 to 4.4 with one glaring exception (all puns intended). When I attempt to access the file manager, either as a host or admin, I get a page load exception with message being the same as the message under the second Block of data I am sending. When I go into the log viewer I find two entries the first being a Module Load Exception followed by a Page Load Exception. I took the liberty of placing break points at the line numbers listed in the Module Load Exception in a source code version that I am running as localhost on ISS on my own box. Incidentally, I don't have a problem there. The pregnent point seems to be at line

************************************************************************************************************************
1241 ClientAPI.AddButtonConfirm(lnkDeleteFile, String.Format(Localization.GetString("EnsureDeleteFile", Me.LocalResourceFile), lnkDeleteFile.CommandName))
************************************************************************************************************************

 It occured to me that there might be a permissions problem, as this seems to be the first place that it is requesting a file name from the /0/ directory. So I tried to fix it through Brinkster tech support to no avail. I can view that directory with no problem using FTP (I use FileZilla). Any thoughts as to what it might be?

Robert Dieter
rdieter@embedtech.com


************************************************************************************************************************
Module Load Exception
************************************************************************************************************************

ModuleId: 358
ModuleDefId: 21
FriendlyName: File Manager
ModuleControlSource: Admin/Files/FileManager.ascx
AssemblyVersion: 04.04.00
PortalID: 0
PortalName: Country Club Estates
UserID: 3
UserName: Webmaster
ActiveTabID: 46
ActiveTabName: File Manager
RawURL: /DNN/Default.aspx?tabid=46
AbsoluteURL: /DNN/Default.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04324.17)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: fabbdba2-b161-454e-be55-c82d5ee5eb0d
InnerException: Value cannot be null. Parameter name: format
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.String.Format
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Value cannot be null. Parameter name: format --->

System.ArgumentNullException: Value cannot be null. Parameter name: format at System.String.Format(IFormatProvider provider, String format, Object[] args) at System.String.Format(String format, Object arg0) at DotNetNuke.Modules.Admin.FileSystem.FileManager.dgFileList_ItemDataBound(Object sender, DataGridItemEventArgs e) in C:\Sites\Single7\personalrobot\webroot\DNN\Admin\Files\FileManager.ascx.vb:line 1241 at System.Web.UI.WebControls.DataGrid.OnItemDataBound(DataGridItemEventArgs e) at System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex, Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object dataItem, DataGridColumn[] columns, TableRowCollection rows, PagedDataSource pagedDataSource) at System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.BaseDataList.DataBind() at DotNetNuke.Modules.Admin.FileSystem.FileManager.GetFilesByFolder(String strFolderName) in C:\Sites\Single7\personalrobot\webroot\DNN\Admin\Files\FileManager.ascx.vb:line 648 at DotNetNuke.Modules.Admin.FileSystem.FileManager.BindFileList() in C:\Sites\Single7\personalrobot\webroot\DNN\Admin\Files\FileManager.ascx.vb:line 390 at DotNetNuke.Modules.Admin.FileSystem.FileManager.Page_Load(Object sender, EventArgs e) in C:\Sites\Single7\personalrobot\webroot\DNN\Admin\Files\FileManager.ascx.vb:line 1105 --- End of inner exception stack trace ---
Source:
SINGLE7

************************************************************************************************************************
Page Load Exception
************************************************************************************************************************

AssemblyVersion: 04.04.00
PortalID: 0
PortalName: Country Club Estates
UserID: 3
UserName: Webmaster
ActiveTabID: 46
ActiveTabName: File Manager
RawURL: /DNN/Default.aspx?tabid=46
AbsoluteURL: /DNN/Default.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04324.17)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 806eafe4-7849-448a-bcba-fafbd7c91965
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Security.Permissions.Controls.FolderPermissionsGrid.SaveViewState
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Security.Permissions.Controls.FolderPermissionsGrid.SaveViewState() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Control.SaveViewStateRecursive() at System.Web.UI.Page.SaveAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
SINGLE7

************************************************************************************************************************

John Mitchell
Posts:3084



01/16/2007 4:01 PM  
The error says that Localization.GetString("EnsureDeleteFile", Me.LocalResourceFile) is returning null.

Which probably means that there isn't a "EnsureDeleteFile" key in the admin\Files\App_LocalResources\FileManager.ascx.resx file.

Or maybe that file is not there at all. If that file isn't there, you may wan't to check for other missing .resx files.
rdieter
Posts:5



01/16/2007 4:31 PM  
I viewed the file from "admin\Files\App_LocalResources\FileManager.ascx.resx" with the FileZilla and then did a search for EnsureDeleteFile this is the single entry I found.


Are You Sure You Wish To Delete The File {0} ?

rdieter
Posts:5



01/16/2007 4:33 PM  
I viewed the file from "admin\Files\App_LocalResources\FileManager.ascx.resx" with the FileZilla and then did a search for EnsureDeleteFile this is the single entry I found.


Are You Sure You Wish To Delete The File {0} ?


Are You Sure You Wish To Delete The File {0} ?




rdieter
Posts:5



01/16/2007 4:38 PM  
Apparently I cannot directly enter XML code.

(Imagine a left carrot) data name="EnsureDeleteFile.Text"(Imagine a right carrot)
(Imagine a left carrot)value(Imagine a right carrot) Are You Sure You Wish To Delete The File {0} ?(Imagine a left carrot)/value(Imagine a right carrot)
(Imagine a left carrot)/data(Imagine a right carrot)
John Mitchell
Posts:3084



01/16/2007 9:50 PM  

Hmm, It must be the lnkDeleteFile.CommandName parameter then. What is in that variable? I don't know whay that String.Format would even use that variable as the format paramater come to think of it.
Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

Forums >DotNetNuke Support >General-DNN-Help > String.Format Error in FileManager



ActiveForums 3.7
Visit our Store for great DotNetNuke Modules and Skins
DNNMasters Sitemap/Google Sitemap 3.0

Item codeSM3-01
Price$29.00
Product Information 
DotNetNuke CSS NavMenu 3.3 (Developers)

Item codeCSSNM33DEV
Base Price$149.00
Product Information 
Snapsis PageBlaster 3.3.2 for DotNetNuke - Professional Edition

AuthorJohn Mitchell
Base Price$79.00
Product Information