The view 'cpdpopupeditactionsview' does not exist.
I just installed UCM without any issues as far as I could see, but when I log in as sysadmin at http://localhost/idc/ I always get a popup box saying:
"The view 'cpdpopupeditactionsview' does not exist."
Looking for the cpdpopupeditactionsview string in the UCM installation directory gives me this:
grep -i cpdpopupeditactionsview -R $UCM
$UCM/server/custom/ContentFolios/templates/idc_folio_display.js: "CpdPopupEditActionsView", idc.folio.display._popupEditActions);
$UCM/server/custom/ContentFolios/templates/idc_folio_display.js: idc.folio.util.loadFolioView("CpdPopupEditActionsView", null, null, callback);
$UCM/server/weblayout/help/admin/folios_admin/wwhdata/js/search/search0.js:if(x.t("cpdpopupeditactionsview"))y.f("7,1");
$UCM/server/weblayout/help/admin/folios_admin/wwhdata/java/search.xml:<i t="cpdpopupeditactionsview" l="7#1"/>
$UCM/server/weblayout/help/admin/folios_admin/page_1_08.htm:<a name="wp1090240"> </a><div class="pSmartList1"><li>CpdPopupEditActionsView</li></div>
$UCM/server/weblayout/resources/folios/util.js: "CpdPopupEditActionsView", idc.folio.display._popupEditActions);
$UCM/server/weblayout/resources/folios/util.js: idc.folio.util.loadFolioView("CpdPopupEditActionsView", null, null, callback);Anyone know why this is happening?
Thanks
Hi
This issue is resolved by manually uninstalling the ContentFolios component via editing the database directly. This only works if the client does not have any ContentFolio data - created or migrated; if they do have existing Content Folio data this will cause great harm to the integrity of their collection.
1. Uninstall the ContentFolios component.
2. Delete the following tables from the database;
CpdArchivedLinks, CpdBasketLinks, CpdChangeHistory, CpdLinks
3. Delete the entry for ContentFolios from the Config table.
4. Restart the Content Server.
5. Install the ContentFolios component.
Hope this helps
Thanks
Srinath
Similar Messages
-
Hi,
I am getting this error in most of our WSUS servers.
Content file download failed.
Reason: HTTP status 404: The requested URL does not exist on the server.
Source File: /Content/FB/134501186F4C81089054E4EC3376E74EEC895EFB.exe
Destination File: d:\wsus\WsusContent\FB\134501186F4C81089054E4EC3376E74EEC895EFB.exe
After few minutes, getting below error as well. But i could see the synchronization has completed successfully.
Log Name: Application
Source: Windows Server Update Services
Date: 12/19/2014 4:45:55 PM
Event ID: 10032
Task Category: 7
Level: Error
Keywords: Classic
User: N/A
Computer: ******
Description:
The server is failing to download some updates.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Windows Server Update Services" />
<EventID Qualifiers="0">10032</EventID>
<Level>2</Level>
<Task>7</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-12-19T08:45:55.000000000Z" />
<EventRecordID>496887</EventRecordID>
<Channel>Application</Channel>
<Computer>*****</Computer>
<Data>The server is failing to download some updates.</Data>
This error is happening everyday. Please advise for a fix.Reason: HTTP status 404: The requested URL does not exist on the server.
Source File: /Content/FB/134501186F4C81089054E4EC3376E74EEC895EFB.exe
Destination File: d:\wsus\WsusContent\FB\134501186F4C81089054E4EC3376E74EEC895EFB.exe
Source: Windows Server Update Services
Description:
The server is failing to download some updates.
This error is happening everyday. Please advise for a fix.
If this is happening on an UPSTREAM server it is because you have approved updates that are no longer available from Microsoft. Almost always this involves approvals of *EXPIRED* updates (which have been pulled from the catalog and cannot be downloaded).
If this is happening on a DOWNSTREAM server it's because something/someone deleted the files from the upstream server. It can also happen if the entire upstream ~\WSUSContent folder has gone amuk.
For an upstream server, find the expired updates, remove the approvals, cancel the downloads, and then decline the updates.
For a downstream server, figure out what the affected updates are and fix the upstream server.
Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
SolarWinds Head Geek
Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
http://www.solarwinds.com/gotmicrosoft
The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds. -
The requested resource does not exist - EAR - Jsp
Hy!
Following a tutorial I'm trying to create a small application in the Developer Studio.
I created a Table, an EJB-Project with an Entity Bean and a Stateless Session Bean, a Web-Project with a JSP-File and an EAR which I deployed. Now the JSP form should be available at http://[server-name]:50000/employee/view.
But I get:
404 Not Found - SAP J2EE Engine/6.40
The requested resource does not exist.
Details: Go to main page of this application!
"main page" is a link which refers to http://localhost:50000/index.html which is the SAP Engine Start Page.
This is my first experience with sap netweaver. So I don't know where I should start to search for the problem or how to solve it.
In the web.xml of the WebProject there is the following code for the servlet mapping:
<servlet>
<servlet-name>NewEmployee.jsp</servlet-name>
<jsp-file>/NewEmployee.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>NewEmployee.jsp</servlet-name>
<url-pattern>/view</url-pattern>
</servlet-mapping>
This is the code in the application.xml of the ear which should make it possible to access the webproject under .../employee.
<module>
<web>
<web-uri>EmployeeWeb.war</web-uri>
<context-root>employee</context-root>
</web>
</module>
Best Regards,
CarinaHy!
I tried several changes and found out, I just had to remove the ' / ' bevor NewEmployee.jsp in the jsp-file - tag.
<servlet>
<servlet-name>NewEmployee.jsp</servlet-name>
<jsp-file>NewEmployee.jsp</jsp-file>
</servlet>
Now it works and I'm able to test the jsp. There's a form and after a submit a jndi-lookup is performed.
Object ref=jndiContext.lookup("java:comp/ev/ejb/EmployeeService");
It seems the EJB reference in the web.xml:
<ejb-ref>
<ejb-ref-name>ejb/EmployeeService</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.sap.bsp.EmployeeServicesHome</home>
<remote>com.sap.bsp.EmployeeServices</remote>
<ejb-link>EmployeeEjb.jar#EmployeeServicesBean</ejb-link>
</ejb-ref>
doesn't work, because I get:
com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at java:comp, the whole lookup name is java:comp/ev/ejb/EmployeeService.
Looking forward to a hint
Best regards,
Carina -
Hi to all,
I tried to compile my .sln with VS2010 but I had this error.
error MSB4057: The target "PlatformPrepareForBuild" does not exist in the project.
It occurs only compiling with win32 configuration but not with x64 one.
Ideas?
Thank you in advancedIn which version of Visual Studio did you create this solution? And What type of the project in this solution? And could you please post the proj file here?
If this solution is created in VS2012 or VS2013, please make sure the original solution is not corrupt, it can be opened and built successfully in the corresponding Visual Studio. For probable compatibility issues, you could check the documents here:
Visual Studio 2012 Compatibility
Visual Studio 2013 Compatibility
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Azure - The name 'model' does not exist in the current context
I am getting the error below but only on Azure, everything builds and runs fine on multiple machines running locally. But when I deploy to Azure I get the error below trying to login. Not even sure where to start researching this one
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0103: The name 'model' does not exist in the current context
Source Error:
Line 1: @model Web.Models.LoginViewModelhi,
From the error message, it seems like a MVC issue.
I suggest you could re-configure your web configuration follow those solutions The name 'model' does not exist in current context in MVC3
and
Razor View throwing “The name 'model' does not exist in the current context” .
And then you could try to deploy project to azure again. I think this error may be disappeared. Please try it.
Regards,
Will
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Error: The plugin -65221 does not exist in the CMS
Hi,
I uploaded my Crystal Reports in the Business Objects InfoView. I can schedule them using the Schedule link but when I use the Reschedule link in the History and click on the paramater value, I' getting the following error:
An error has occurred: The plugin -65221 does not exist in the CMS
Did I miss a configuration? The source of the Crystal Report is a direct connection to the Oracle database. I also configured the Username and Password connection in the Business View tool.
Thanks!Hi,
I am not sure but I assume that the error has to do with the business views. Some component was not available in your repository and it was created when you imported the report using the CR Designer.
It may also be the case that this error has been corrected in a newer service pack (SP5 is the latest SP for BOBJ XI R2) To be honest I could not match your case to any of the the corrections contained in SP4 and SP5 but this does not mean that the issue is not corrected.
Regards,
Stratos -
The requested column does not exist in this table
Hi All,
I am getting the following error:
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59014] The requested column does not exist in this table. (HY000)
SQL Issued: SELECT "Customers - Dim".CITY FROM MVDEMO ORDER BY 1
When I tried viewing data online I am able to view the data in the physical Layer. Also I tried connecting thru ODBC Client and issued the same SQL (above) and it returns the data.
I am using Oralce BIEE 10.1.3.2.1 version.
Please let me know if any faced this kinda issue and how to resolve this.
Thank you.Check your column mapping in the BMM layer in your Customers - Dim logical table. Does the CITY column point to a physical table column?
-
"The key 'LocalizedPerfCounter' does not exist in the appSettings" when creating Socket
Hi all,
Some time ago, I've installed the nuGet package for self-hosted signalR applications on a project. Today, I went to start a completely unrelated project, one that does not have that package (or any package at all), and has absolutely nothing to do with owin,
asp.net, signalR or anything else related to that package.
Now in this project, when I try to create a Socket, I get an InvalidOperationException: "The key 'LocalizedPerfCounter' does not exist in the appSettings".
The exception seems to be handled and the program proceeds, but it's annoying.
Also, I'm seriously concerned. Here I'm not trying to create some arcane ASP.NET thing that calls down into a dozen layers and six different configuration frameworks before actually getting to the TCP stack. I'm doing a plain straight new Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp).
How is it possible for a nuGet package that installs unrelated DLLs to another solution entirely to affect something that resides in the basic System.dll? What business does it have interfering with very low-level network calls?Hello Zappo,
For this InvalidOperationException, please check this hotfix to see if you are under those scenario:
http://support.microsoft.com/kb/2784156
>> How is it possible for a nuGet package that installs unrelated DLLs to another solution entirely to…
For this, since it is related with the NuGet, I suggest that you could post it to the NuGet forum,
https://nuget.codeplex.com/workitem/list/basic
The current forum is specifical for .NET Framework Class Libraries.
Discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection. Discuss and ask questions
about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection.
Thanks&Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
I have a 8 node cluster with Hyper-V, which will be 10 nodes when it's finally done.
Recently I've been try to add nodes and though that went fine, after about a week I could not open the Failover Cluster Manager anymore.
After some checking I found out that the latest added node was giving problems.
VM's on the node still run and function properly, but most Powershell commands result in a "The requested object does not exist. (Exception from HRESULT: 0x80010114)".
I can suspend the node with Suspend-ClusterNode, but draining roles was unsuccesful in one case.
In the other there were no VM's on the node so suspending went fine.
What I did find out was that when I tried to ping the node from another, proper functioning node, it took a while before the pinging started. It felt like the interface had to come back online on the problem node.
After that, I could add the cluster to the Failover Cluster Manager. However, Powershell commands still give a 0x80010114 error or a CIM error for when I use Get-NetAdapter.
A reboot resolves the problem, but only for about a week.
I know there is a topic with the same title already, but the wbemtest en rollup update "answer" is totally unclear to me why I should change something with wbemtest, or why to install updates that to me have nothing to do with this problem.
Before I did the ping test from a functioning node I pinged my DC and another node from the problem node just fine.
No waiting at all.
The cluster has three networks. Management (host only), Live Migration and iSCSI (also a VMSwitch for certain VM's).
I have no idea where to look. Evenviewer doesn't give me anything I can work with that I can find...Hi,
Are you using the HP servers? It seems is the HP Nic team service was causing the issue, please try to
disabled the HP NIC team service from services and restarted the WMI service.
The related third party information:
Advisory: (Revision) HP ProLiant Servers - Systems Running Microsoft Windows Server 2012 or 2012 R2 May Experience a Memory Leak Up To 5 Mb/ Hour for Some NIC Teaming Configurations
http://h20566.www2.hp.com/portal/site/hpsc/template.PAGE/public/kb/docDisplay/?javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken&javax.portlet.prp_ba847bafb2a2d782fcbb0710b053ce01=wsrp-navigationalState%3DdocId%253Demr_na-c04209163-2%257CdocLocale%253D%257CcalledBy%253D&javax.portlet.tpst=ba847bafb2a2d782fcbb0710b053ce01&ac.admitted=1401176219136.876444892.199480143
Hope this helps.
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Error: The preference path does not exist
Subject:
Error: The preference path does not exist:
Oracle.Portal.Page(WWC-51000)]
I can not resolve this error.
Have you already experienced this error?
I'm sending more information below.
Regards, Dime
DETAILS:
========
ORACLE Product: iAS 9i EE, v1.0.2
Platform: RedHat Linox 6.2, kernel 2.2.18
HW Platform:
IBM Intellistation 6889, Intel P2 350MHz, 384MB
Problem:
After successful installation of the Application Server and data base creation, the installation of ORACLE Portal 3.0.6 is successful too, but the following message
appears when we try to access the URL http://servername:port/pls/portal30:
Error: The preference path does not exist:
Oracle.Portal.Page (WWC-51000)
About the Attachments:
- init.ora.original (the original init.ora file)
- init.ora.try1 (the file modified as described in the configuration guide)
- init.ora.try2 (according suggestions in the discussion group on
the ORACLE Metal Partners Site)
- install.log (install.log generated with init.ora.try2)
Regards,
Dimitar Indovski,
GORD Systems
ATTACHMENT-1 (init.ora.original)
db_name=DEFAULT
db_files= 80 # SMALL
db_file_multiblock_read_count = 8 # SMALL
db_block_buffers = 100 # SMALL
shared_pool_size = 3500000 # SMALL
log_checkpoint_interval = 10000
processes = 50 # SMALL
parallel_max_servers = 5 # SMALL
log_buffer = 32768 # SMALL
max_dump_file_size = 10240 # limit trace file size to 5 Meg each
global_names = TRUE
control_files = (ora_control1, ora_control2)
ATTACHMENT-2 (init.ora.try1)
db_name=DEFAULT
db_files = 80 # SMALL
db_file_multiblock_read_count = 8 # SMALL
db_block_buffers = 100 # SMALL
shared_pool_size = 3500000 # SMALL
log_checkpoint_interval = 10000
processes = 50 # SMALL
parallel_max_servers = 5 # SMALL
log_buffer = 32768 # SMALL
max_dump_file_size = 10240 # limit trace file size to 5 Meg each
global_names = TRUE
control_files = (ora_control1, ora_control2)
max_enabled_roles = 25
open_cursors = 50
compatible = 8.1.0
java_pool_size = 20
ATTACHMENT-3 (init.ora.try2)
db_name=DEFAULT
db_file_multiblock_read_count = 16
db_block_buffers = 550
shared_pool_size = 31457280
log_checkpoint_interval = 10000
processes = 100
parallel_max_servers = 5
log_buffer = 32768
max_dump_file_size = 10240
global_names = TRUE
control_files = (ora_control1, ora_control2)
open_cursors = 300
large_pool_size = 45000000
java_pool_size = 32768000
db_block_size = 8192
ATTACHMENT-4 (install.log.gz)
-----------------------------Dennis
A general shared_pool_size Q&A is part of the Troubleshooting Guide on OTN: http://technet.oracle.com/products/iportal/htdocs/portal_troubleshooting.htm
The Configuration Assistant determines the shared pool size from the view v$parameter,
which lists information about the initialization parameters (populated from init.ora file). If the shared_pool_size value is more than 15728640 (for a default installation), you pass the minimal requirements set by the Portal Installer. Make sure you actually write out all the digits (i.e. 1000000000) and don't use abbreviations (1000M). Currently, the Configuration Assistant does a numeric check against the values that are set and cannot resolve the abbreviate syntax.
Also try running the sql [select value from v$parameter where name like 'shared_pool_size';] to check if the changes you are making in the init.ora is really getting populated in the v$parameter view. As long as you restart the database once you make the change in init.ora, it should take effect.
null -
Name Error: The domain name does not exist
Hi,
I get this error when I try to create a view inside a web dynpro from se80 transaction
" Name Error: The domain name does not exist. "
Can anyone help me to solve this error ?
Thanks !!Hi,
did you carry out the necessary <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/43/e86de5008b4d9ae10000000a155369/frameset.htm">configuration</a> in your system? Note especially the need for fully qualified domain names (FQDN): <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/67/be9442572e1231e10000000a1550b0/frameset.htm">FQDN</a>
Regards, Heidi -
Please get the web site designers to fix this forum. There is no Z30 "place" and there is an error message that shows up every time.
The specified template does not exist or is emptyMake sure the SharePoint Server is joined to Active Directory. Also validate that the Web Application Application Pool account is running as a Domain User (rather than say Network Service).
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Hi,
We have a requirement to purge the Azure WADLogs table on a periodic basis. We are achieving this by using Entity group transactions to delete the
records older than 15 days. The logic is like this.
bool recordDoesNotExistExceptionOccured = false;
CloudTable wadLogsTable = tableClient.GetTableReference(WADLogsTableName);
partitionKey = "0" + DateTime.UtcNow.AddDays(noOfDays).Ticks;
TableQuery<WadLogsEntity> buildQuery = new TableQuery<WadLogsEntity>().Where(
TableQuery.GenerateFilterCondition("PartitionKey",
QueryComparisons.LessThanOrEqual, partitionKey));
while (!recordDoesNotExistExceptionOccured)
IEnumerable<WadLogsEntity> result = wadLogsTable.ExecuteQuery(buildQuery).Take(1000);
//// Batch entity delete.
if (result != null && result.Count() > 0)
Dictionary<string, TableBatchOperation> batches = new Dictionary<string, TableBatchOperation>();
foreach (var entity in result)
TableOperation tableOperation = TableOperation.Delete(entity);
if (!batches.ContainsKey(entity.PartitionKey))
batches.Add(entity.PartitionKey, new TableBatchOperation());
// A Batch Operation allows a maximum 100 entities in the batch which must share the same PartitionKey.
if (batches[entity.PartitionKey].Count < 100)
batches[entity.PartitionKey].Add(tableOperation);
// Execute batches.
foreach (var batch in batches.Values)
try
await wadLogsTable.ExecuteBatchAsync(batch);
catch (Exception exception)
// Log exception here.
// Set flag.
if (exception.Message.Contains(ResourceDoesNotExist))
recordDoesNotExistExceptionOccured = true;
break;
else
break;
My questions are:
Is this an efficient way to purge the WADLogs table? If not, what can make this better?
Is this the correct way to handle the "Specified resource does not exist exception"? If not, how can I make this better?
Would this logic fail in any particular case?
How would this approach change if this code is in a worker which has multiple instances deployed?
I have come up with this code by referencing the solution given
here by Keith Murray.Hi Nikhil,
Thanks for your posting!
I tested your and Keith's code on my side, every thing worked fine. And when result is null or "result.count()<0", the While() loop is break. I found you code had some logic to handle the error "ResourceDoesNotExist" .
It seems that the code worked fine. If you always occurred this error, I suggest you could debug your code and find which line of code throw the exception.
>> Is this an efficient way to purge the WADLogs table? If not, what can make this better?
Base on my experience, we could use code (like the above logic code) and using the third party tool to delete the entities manually. In my opinion, I think the code is every efficient, it could be auto-run and save our workload.
>>Is this the correct way to handle the "Specified resource does not exist exception"? If not, how can I make this better?
In you code, you used the "recordDoesNotExistExceptionOccured " as a flag to check whether the entity is null. It is a good choice. I had tried to deleted the log table entities, but I used the flag to check the result number.
For example, I planed the query result count is 100, if the number is lower than 100, I will set the flag as false, and break the while loop.
>>Would this logic fail in any particular case?
I think it shouldn't fail. But if the result is "0", your while loop will always run. It will never stop. I think you could add "recordDoesNotExistExceptionOccured
= true;" into your "else" block.
>>How would this approach change if this code is in a worker which has multiple instances deployed?
You don't change anything expect the "else" block. It would work fine on the worker role.
If any question about this issue, please let me know free.
Regards,
Will
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
SAP Portal Integration - The plugin secSAPR3 does not exist (FWM 02016)
Hi Gurus,
I have some problems with the integration of SAP Portal.
I have created an iview in the SAP Portal with a Webi Report.
When executed, displays the login page of InfoView without any authentication option, only request user an password. When I insert my credentials, appears the following error:
Account Information Not Recognized: The plugin secSAPR3 does not exist (FWM 02016) and I cannot login.
Previous to this error message, appears an alert from the Session Management, advising me that the application will launch in other domain. I donu2019t know what problems can lead this fact.
I have configurated the SAP Authentication in CMC and imported roles and users from BW. I can use the same user and password in both environments and works fine.
Can anyone help me?
Thanks in advance!
Isaac.Hi IRoyan,
First let's explain why the plugin secSAPR3 doesn't exist:
1> when you view report from SAP EP to the report in BOE, it would use OpenDocument view application to logon and open the report.
2> and the secSAPR3 plugin is the file of secSAPR3.jar;
3> So it means the secSAPR3.jar is not in the classpath of OpenDocument application.
How to resolve it:
1> In the existing BOBJ solution, the secSAPR3.jar is included in PartnerPlatformServices;
2> So please try to modify the web.xml under the directory $INSTALLDIR$:\Business Objects\Tomcat55\webapps\OpenDocument\WEB-INF, add the logon service URLcontext:
<context-param>
<param-name>config.logon.service.context</param-name>
<param-value>/PartnerPlatformService</param-value>
</context-param>
<context-param>
<param-name>config.logon.service.url</param-name>
<param-value>/service/app/logon.do</param-value>
</context-param>
Hope you can understand it and it helps.
Thanks,
Rongliang -
The name "Folder" does not exist in the namespace
I am trying to learn Wpf and doing some of the examples on the Microsoft site. https://msdn.microsoft.com/en-us/library/vstudio/bb546972(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1
I am using Visual studio 2013. As I work through the example I am getting the following error.
Error 1
The name "Folder" does not exist in the namespace "clr-namespace:FolderExplorer".
c:\users\hbrown\documents\visual studio 2013\Projects\FolderExplorer\FolderExplorer\MainWindow.xaml
11 17
FolderExplorer
Error 2
The name "Folder" does not exist in the namespace "clr-namespace:FolderExplorer".
c:\users\hbrown\documents\visual studio 2013\Projects\FolderExplorer\FolderExplorer\MainWindow.xaml
16 7
FolderExplorer
Here is the code:
<Window x:Class="MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:my="clr-namespace:FolderExplorer"
Title="Folder Explorer" Height="350" Width="525">
<Window.Resources>
<ObjectDataProvider x:Key="RootFolderDataProvider" >
<ObjectDataProvider.ObjectInstance>
<my:Folder FullPath="C:\"/>
</ObjectDataProvider.ObjectInstance>
</ObjectDataProvider>
<HierarchicalDataTemplate
DataType = "{x:Type my:Folder}"
ItemsSource = "{Binding Path=SubFolders}">
<TextBlock Text="{Binding Path=Name}" />
</HierarchicalDataTemplate>
</Window.Resources>
I have a class file named Folder.vb with this code.
Public Class Folder
Private _folder As DirectoryInfo
Private _subFolders As ObservableCollection(Of Folder)
Private _files As ObservableCollection(Of FileInfo)
Public Sub New()
Me.FullPath = "c:\"
End Sub 'New
Public ReadOnly Property Name() As String
Get
Return Me._folder.Name
End Get
End Property
Public Property FullPath() As String
Get
Return Me._folder.FullName
End Get
Set(value As String)
If Directory.Exists(value) Then
Me._folder = New DirectoryInfo(value)
Else
Throw New ArgumentException("must exist", "fullPath")
End If
End Set
End Property
ReadOnly Property Files() As ObservableCollection(Of FileInfo)
Get
If Me._files Is Nothing Then
Me._files = New ObservableCollection(Of FileInfo)
Dim fi As FileInfo() = Me._folder.GetFiles()
Dim i As Integer
For i = 0 To fi.Length - 1
Me._files.Add(fi(i))
Next i
End If
Return Me._files
End Get
End Property
ReadOnly Property SubFolders() As ObservableCollection(Of Folder)
Get
If Me._subFolders Is Nothing Then
Try
Me._subFolders = New ObservableCollection(Of Folder)
Dim di As DirectoryInfo() = Me._folder.GetDirectories()
Dim i As Integer
For i = 0 To di.Length - 1
Dim newFolder As New Folder()
newFolder.FullPath = di(i).FullName
Me._subFolders.Add(newFolder)
Next i
Catch ex As Exception
System.Diagnostics.Trace.WriteLine(ex.Message)
End Try
End If
Return Me._subFolders
End Get
End Property
End Class
Can someone explain what is happening.
Thanks HalDid you try to build the application (Project->Build in Visual Studio) ? If the error doesn't go away then and you have no other compilation errors (if you do you need to fix these first), you should replace "FolderExplorer" with the namespace
in which the Folder class resides. If you haven't explicitly declared a namespace, you will find the name of the default namespace under Project->Properties->Root namespace. Copy the value from this text box to your XAML:
xmlns:my="clr-namespace:FolderExplorer"
The default namespace is usually the same as the name of the application by default so if your application is called "FolderExplorer" you should be able to build it.
If you cannot make it work then please upload a reproducable sample of your issue to OneDrive and post the link to it here for further help.
Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question.
Maybe you are looking for
-
Why does paintbrush not work on images opened from Bridge?
This problem may be due to another cause but the most common occurance is when an image is opened from Bridge so I've posted it here. Here are the details. I have had tons of problems with CS4 on my desktop PC but seem to have most of them resolved
-
I just received an update to version 10.1.4. My previous version was 10.1.23. After the upgrade , I started to receive an error message insufficient data for image. This is the first time this error appeared so it has to be related to the new vers
-
ITunes crashed...and I lost my playlists and preferences
I'm not quite sure how it happened, but iTunes crashed...and it took almost all of my playlists with it as well as resetting my preferences. Very strange. Is it possible to get it back to where I want it? I have (had) hundreds of playlists for var
-
Where is the catalog? Maverick issue
After uploading Maverick, LR says it can't find my catalog. Where is it, and how do I resotre it. I'm one of the few LR users who only use LR on the fly for web galleris and watermarkeing, but I notice right away after choosing default catalog, it's
-
ESS Family Members/Dependents Screen
Using ESS 50.4, HR 470 SP73, EP 6.0 In the Family Member/Dependent screen the Next and Previous buttons take the user back to the List screen. We need for the user to be able to view the next family member such as when someone has more than one ch