The ‘DisplayName’ attribute is not declared.
When I attempt to activate a solution in SharePoint 2010 I get an error that reads “The ‘DisplayName’ attribute is not declared.” This error occurs when I save a site as a template and in the site I have a site column of type choice. For some reason when you add a column and make its type MultiChoice the wsp writer adds the attribute DisplayName.http://duffyconsultingllc.com/SharePoint2010.aspx
<CHOICES> <CHOICE DisplayName="one">one</CHOICE> <CHOICE DisplayName="two">two</CHOICE> <CHOICE DisplayName="three">three</CHOICE> </CHOICES>
The DisplayName attribute is not part of the wss.xsd so when you try to activate the solution you receive an error.
I opened the wss.xsd from the system folder “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML\wss.xsd” and made the following changes.
<!-- added by Marcellus Duffy to fix the error -->
<xs:complexType name="CHOICEDEF" mixed="true"> <xs:attribute name="DisplayName" type="xs:string"/> </xs:complexType> <!-- end addition --> <!-- modified by Marcellus Duffy--> <xs:complexType name="CHOICEDEFINITIONS" mixed="true"> <xs:sequence> <xs:element name="CHOICE" type="CHOICEDEF" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence> </xs:complexType> <!-- end modification -->
After saving these changes and doing an iisreset I was able to active the solutions with choice columns that were written by the save as template wizard.
Reply:
Marcellus,
It looks by your post you solved the issue. Am I correct.
Keep Moving Forward, Scott Ellis CFP,MCP,MCTS,L.L.M. Solutions Architect
------------------------------------
DPM 2010 Service Pack 1 Wish List
Well, DPM 2010 has been out long enough that we consumers can dream up a "wish list" for new features in DPM 2010 Service Pack 1. So, here goes...
1) Item-level Restore from Bare Metal Backups. Just like ILR is available for backups of Hyper-V VHDs, IRL should be available from the VHD files made from BMR backups. This functionality is already available using Windows Server Backup in WinSrv 2008 R2.
2) Co-location of Bare Metal Backups. Just like with co-location of Hyper-V VHDs, this would simplify the storage of BMR backups and significantly reduce the amount of disk space used for BMR backups of numerous servers.
3) Provide an Option in the Administrator Console GUI to Manually Delete Specific Recovery Points. This is sorely needed because the steps required in the DPM Management Shell to manually delete a recovery point are way too cumbersome.
4) Support for Search and Other Services Used in SharePoint 2010. As this TechNet article shows, DPM 2010 cannot protect the search in SharePoint 2010. This, among other reasons, led our SharePoint admins to decide not to use DPM 2010 to protect SharePoint 2010. Instead, they'll just use SharePoint's native backup and restore functionality. (http://technet.microsoft.com/en-us/library/cc261687.aspx#ChooseWhatProtect)
5) Support for SQL Server 2008 R2 for the DPM Database. Needed obviously for support of this latest edition of SQL Server.
These are just my main "wishes." Please feel free post comments to this thread and add your own wish list items. Perhaps we just may get one or two of these wishes answered in DPM 2010 SP1...
-Taylorbox
- Edited by Taylorbox Tuesday, August 10, 2010 1:48 AM
Reply:
Hi,
Some nice ideas, please fill out the following survey, however, the SP will be limited to fixing bugs and most likely will not contain any new features / capabilities.
Please take some time to complete the survey (Future Enhancements to DPM) and share your future needs with the DPM Product Team.
Survey Link: http://connect.microsoft.com/site840/Survey/Survey.aspx?SurveyID=11130
Regards, Mike J [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.
------------------------------------
Reply:
Interesting. I'm surprised to hear that there may not be new features in DPM 2010 SP1. DPM 2007 SP1 introduced support for protecting Hyper-V, Exchange 2007 SCR, mirrored SQL Server databases, cross-forest data protection with two-way trust, SharePoint 2007 search, and more. Similarly, Windows Server 2008 R2 SP1 will introduce Dynamic Memory and RemoteFX. Thus, one can understand why customers are used to expecting new features/capabilities in Service Packs nowadays.
I was under the impression that the bi-monthly hotfix rollups/cumulative updates/QFE's handle the bug fixes, and the Service Pack takes all of those bug fixes and adds new features also. But, perhaps I should instead be hoping for DPM 2010 R2. :o) It would really be a disappointment to have to wait until DPM 2013 before getting new features.
I've already filled out that survey, but there's more to add now...
-Taylorbox
------------------------------------
Reply:
Long term backup to disks and USBs.
------------------------------------
Reply:
I totally agree with Taylorbox and especially points 1) and 2) are major issues (at least for our company).
After months of using DPM 2010, I would add few more things (beside what has been mentioned here or is in the survey which I've filled in the past):
a) more clear error/alert messages - spitting out 3 error codes in one message is nice, but not so nice if you can't really understand/decypher what's wrong from message. DPM should also be able to translate the WSB errors to readable format, so that we don't have to go digging to target machine and search for WSB errors in the eventlog when it's DPM that has a problem.
b) overall better product "integrity" - by this I mean that DPM is very dependant on WSB and VSS and especially VSS seems to be very fragile component in Windows and when we encounter a problem with VSS during backup and DPM team says something along the lines of "oh, it's a problem in VSS? ... erm ok, please go contact the support for VSS, it's not our problem", then that's not so cool.
c) not sure if this will ever change, but the idea of creating a disk volume for every protected datasource (except for co-located SQL as of now) is terrible IMO - currently DPM has created 111 dynamic volumes on our 5TB backup disk and we're only backing up half of the servers with DPM so far... You don't usually have to mess with those volumes at all, but if you ever DO, then it's a mess. Using the windows GUI is plainly impossible (even if to get information on the volumes), so the only option is using command-line diskpart or some other command-line tool. Also, if protection groups or disk allocation changes frequently, this also subsequently creates even more volumes (I call this volume-level fragmentation :D)
Note: this post is NOT meant as negative criticism
------------------------------------
Reply:
------------------------------------
Reply:
------------------------------------
Reply:
I would like to see changes on the end user recovery.
The users shouldn't need to be admin of their workstation and even if they should we should be able to add a group to the Local Administrator group.
I'd like to see real time bandwidth inside the console.
------------------------------------
Reply:
I think the reporting interface needs some work. We should be able to create custom reports and I think the format of the reports is not all that great. I also agree that the error codes and troubleshooting needs help. DPM usually works flawless for me but when it doesnt work it can be a huge pain figuring out what is wrong from the cryptic error codes.
------------------------------------
Reply:
Better integration of standalone tape drives and Superloaders e.g. automatically eject tapes after successfull backups, notification if tape drives needs cleaning.
We are running dpm servers at different customer sites where there is no need to have ultra big tape drives because the amount of data written to tape and retention policies for tape backup aren't really big. One Tape-Backup per week to LTO4 or LTO5 Tapedrives is mostly enough at the amount of data point of view. Non-IT on-site staff is changing tapes the day after tape backup day. It would be helpfull for the non-it staff to easily take the tape and put in a new one.
------------------------------------
Reply:
Microsoft is already thinking about the next release (Vnext).
Share your thoughts on the Future Enhancements to DPM with the DPM Product Team.
Survey Link: http://connect.microsoft.com/site840/Survey/Survey.aspx?SurveyID=11130
------------------------------------
Reply:
I would like to see a wizard to manually create and restore replicas.
The process in the following kb could be made into an easy to follow wizard.
http://technet.microsoft.com/en-us/library/ff399552.aspx
Kevin
------------------------------------
Reply:
------------------------------------
Reply:
------------------------------------
Reply:
Wishlist:
1. Running DPM on Hyper-V with the ability to backup other hyper-v machines
2. Long term backup to disk (iSCSI and external SATA/USB)
3. Mailbox Level Restore on Exchange 2010
4. Backup of Exhange 2010 Mailboxes as PST Files
5. Export a self contained backup to external disk. store the recovery point together with an executable that can be started and shows the content on the disk, and allows the extraction of items (files/folders, SQL Backups, Exchange Backups) to another disk. Or the files on the external disk are stored in the primary backup format of the application, files as files, sql DBs as SQL Backups, Exchange Mailboxes as PSTs, ...
This feature will allow the long term storage of a complete backup in an external location, like a secondary Datacenter or a banksafe.
------------------------------------
Reply:
+1 for automatically ejecting tapes after backup.
We have just switched to DPM from Ultrabac and are still using the old skool method of daily tape rotation.
Every night we backup to tape and then replace the tape in the morning.
When we were using Ultrabac we just needed to swap the tape in the morning. Took 30 seconds.
Now we have to press the eject button and wait a few minutes for the tape to spit out.
------------------------------------
Reply:
I need to be able to better manage my tape media
I have described it in http://social.technet.microsoft.com/Forums/en-CA/dpmpowershell/thread/1f906fad-6ba2-4cfd-a8ef-b8d8459240f8?prof=required
From PowerShell I would like to know when a specific tape is going to "expire" so that I can schedule its safe return into the Library :-)
------------------------------------
Reply:
Support for TFS 2010
In DPM gui, ability to recover selected databases instead of individual database at a time.
------------------------------------
Reply:
Hi,
1. better memory management (we have some DPM servers that consume huge amounts of memory because of VSS
2. better performance when several tape backups are running at the same time
3. brick level restore for exchange items
4. more reports, customized reports
5. GUI integration for maintenance jobs (library inventory)
6. ability to see scheduled jobs in one view
regards
/bkpfast
------------------------------------
Reply:
Hi,
not sure if MSFT is still following this thread, but it might be worth pointing out that DPM 2012 is in beta stage now, so it would be nice telling us if these requested changes will (if at all) implemented in 2010 SP1 (will it even be released?) or 2012.
------------------------------------
Reply:
Hi,
We are actively monitoring this thread, and some good ideas have been suggested. We will not have a formal SP1 for DPM 2010, but instead we're just releasing rollup patches for bugs. We will not be releasing any new features in DPM 2010, and DPM 2012 is currently feature complete, so some of these ideas will need to be considered for DPM V-next. However, I encourage you to please keep the ideas coming and if we see enought requests for the same feature that will have an impact on the decision to include it or not.
Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.
- Edited by Mike JacquetMicrosoft employee Thursday, October 20, 2011 2:30 PM
------------------------------------
Reply:
------------------------------------
Reply:
2) Backup-To-Tape management totally reworked/rethought. (Whole different thread here!)
3) Ability to mount/boot backups in a sandbox HyperV environment on the DPM server. Proves that backups are sound and could also be used for business continuity in a DR scenario especially if 2nd DPM server is in a the DR datacentre.
4) BMR for Windows 7 - why not there already??
5) Better (full) support for Workgroup/Untrusted/Perimeter networks.
6) message level recovery for Exchange straight into live database(albeit using RSG in the background and all run by scripts).
7) Ability to mount replica volumes on the DPM Server.
------------------------------------
Reply:
To add to what has already been suggested here.
1. An option to enable tape jobs to automatically retry every x minutes if the drive "needs cleaning". Our tape library auto-cleans itself, but DPM just fails the job rather than retrying. Very annoying.
2. Better disk allocation. The auto grow volume option can become a nightmare because you can't shrink the replica volume once it has grown.
3. Easier management of protection groups. For example, if I want to add a member to a PG I shouldn't have to click next through the whole wizard.
------------------------------------
Reply:
------------------------------------
Handy Microsoft Tools
Microsoft has a bunch of hidden tools that i find time and time again, but no one seems to talk about them much.
I've recently discovered Remote Desktop Connection Manager, and think its wonderful.
http://www.microsoft.com/download/en/details.aspx?id=21101
What tools do you use on a day to day basis that you've found just sitting quietly on the Microsoft site?
Reply:
The sysinternals suite is invaluable for both developing new systems & troubleshooting existing ones...
http://technet.microsoft.com/en-us/sysinternals/bb545021
Douks
------------------------------------
Reply:
Blog: rorymon.com Twitter: @Rorymon
------------------------------------
Reply:
@Rorymon - thanks for PSR, glad i found that out. I can't even begin to describe how helpful that is.
@Douks - Oldies but Goldies
------------------------------------
Reply:
Hello,
Thanks for the link
------------------------------------
Reply:
Microsoft Baseline Security Analyzer 2.2
Nice tool to determine the state of security on your devices
Robert Mann MCSE, MCSA, HP ASE
- Edited by RobertMann Saturday, March 31, 2012 5:01 PM
------------------------------------
ASP.NET to Sharepoint developer transition.
Hi,
When I first started developing sharepoint as a developer coming fro ASP.NET backgraound I had difficulties in understanding sharepoint development. A few days ago I found the fallowing blogpost (by Peter Vogel) which shows the big picture as a whole but in a summary format and I wanted to share. I think it will be of great help for new beginners.
http://visualstudiomagazine.com/Articles/2011/02/01/Making-the-SharePoint-Transition.aspx?Page=1
Thank you.
Our motto ist bonum Facimus.
- Changed type Facimus Saturday, March 31, 2012 2:08 PM
- Changed type J. Dan Attis [MVP]MVP Sunday, April 1, 2012 3:41 PM Not a question.
DNS Issues?
Hi, i am having some issues with DNS. I have the domain megahosting.co.nz and am trying to point it to my name servers ns1.megahosting.co.nz. My problem is i cannot get my name servers to resolve my public IP. I have forwarded port 53 TCP and UDP to my server hosting the DNS records.
I have created a zone called megahosting.co.nz, and in that zone have created a new A record called NS1 with my PUBLIC IP. I have also created 4 MX records.
My questions are,
What would be my SOA server? also, how long after i make zone changes does it take to update it on the internet. I find sometimes if i try refresh the zones it says its locked for update.
Im stuck sonewhere in the middle on this DNS thing. I updated the domain to point to my name servers via my domain hosts control panel, and have created the zone and records on my server to match that of the domain. Is there anything else i need to do in the middle to get DNS to work?? like register my domains with the root hint servers or anything like that?
Below is my current configuration to zone megahosting.co.nz
Thanks!
- Edited by deanfourie Thursday, March 22, 2012 8:30 AM
Reply:
Hi, this is not a console in which you can enter random commands and expect the androids to obey your command. If you have a question then state your problem and describe where you are stuck exactly. For the time being:
DNS HELP: Domain Name System
------------------------------------
Reply:
Hi,
DNS HELP
Hello,
please describe real problems with facts and detailed inforamtion from event viewer, error messages etc. Also include use OS versions SP/patch level and how your network is built.
Best regards
Meinolf Weber
MVP, MCP, MCTS
Microsoft MVP - Directory Services
My Blog: http://msmvps.com/blogs/mweber/
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.
------------------------------------
Reply:
haha sorry guys, ive been having problems posting so i needed to make sure it would save before i wrote the whole post.
Sorry :S
------------------------------------
Reply:
Hello,
to understand this correct, the domain internal and external DNS names are the same?
Then you have to configure split brain DNS:
http://msdn.microsoft.com/en-us/library/ms954396.aspx
http://support.microsoft.com/kb/300679 http://technet.microsoft.com/library/Cc959282
Also see: http://technet.microsoft.com/en-us/library/cc759036.aspx
Best regards
Meinolf Weber
MVP, MCP, MCTS
Microsoft MVP - Directory Services
My Blog: http://msmvps.com/blogs/mweber/
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.
------------------------------------
Reply:
Thanks for the reply!
No, not local and external. External only. I am not using this DNS server locally. I just want to set it up so my domain name www.megahosting.co.nz points to my server.
So i go to my the company that hosts my domain, in this case onlydomains.com, and edit the DNS records to point to MY name servers. So i enter ns1.megahosting.co.nz and ns2.megahosting.co.nz as it requires atleast 2 name servers.
I need to setup my servers DNS so that ns1.megahosting.co.nz can be resolved externally.
IE, if i do a NSLOOKUP on my IP 122.xx.55.xxx, i get hostname ns1.megahosting.co.nz, then if i visit my domain (megahosting.co.nz) it resolves to my IP, where i have my site hosted.
Im pretty sure im close, im just stuck somewhere in the middle? maybe not sure exactly what records to create, whether or not to enter external IPs in the NS and A records etc.
Thanks heaps!
------------------------------------
Reply:
Hello,
please contact your ISP as your ISP has to configure its own DNS servers also, to make sure your domain name could be resolved.
Best regards
Meinolf Weber
MVP, MCP, MCTS
Microsoft MVP - Directory Services
My Blog: http://msmvps.com/blogs/mweber/
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.
------------------------------------
Reply:
Hi,
I agree with Meinolf. You need register your External DNS domain name first, then configure your Internet facing DNS server to host the zone with the domain name.
For more detailed information, please refer to article and a same question answered at the following thread.
Creating an Internet DNS Domain Name
http://technet.microsoft.com/en-us/library/cc787342(WS.10).aspx
Host your own DNS server on the Internet (Check Answers)
http://social.technet.microsoft.com/Forums/en-US/winserverNIS/thread/64d0b0eb-620a-4b82-9fbe-dbeeaf5c2ada/
Best Regards,
Aiden
Aiden Cao
TechNet Community Support
------------------------------------
Reply:
Guys thanks so much for your help!
I thought there was something in the middle i was missing. So my ISP needs to create a entry to forward DNS for that domain to my server.
Im not the ISP account holder :( ill see what i can do
Thanks!
------------------------------------
Reply:
So apparently i have to delegate the new name servers in my DOMAIN host control panel, which i did.
I delegated to the name servers
ns1.megahosting.co.nz and ns2.megahosting.co.nz and supplied IPs, and then those name servers are registered with the Domain Registrars.
It appears to have worked. ns1.megahosting.co.nz now resolves my public IP.
My questions are
1. My DNS records dont seem to UPDATE? when i create MX and A records for mail ie. A - smtp.megahosting.co.nz and A: pop3.megahosting.co.nz and MX: mx1.megahosting.co.nz etc etc, they are not updated when i do a nslookup.
2. whatsmydns.net shows that my domain is not registered with any registrars
3. for ns2.megahosting.co.nz, i need to set it up as a SECONDARY ZONE correct?
4. and finally, my DNS is currently set to do not allow updates. This is unsafe correct?
Thanks guys!
------------------------------------
Reply:
Guys, please help me with this as this is the biggest problem right now, as i have never done this before. Its new to me!
Thanks!
------------------------------------
Reply:
------------------------------------
PdhComputeCounterStatistics - Can performance counters be reset, rather than removed and added again?
Hi,
Is it possible to reset PDH Performance counters, rather than removing and adding again? My scenario is the need to capture min,mean and max statistics every hour from various active performance counters using PdhComputeCounterStatistics e.g. output the average %CPU usage for a specific process every hour, resetting the statistics each hour.
One other option I'm considering is using PdhSetQueryTimeRange, however I'm trying to avoid the need for re-adding counters every hour. Is using PdhSetQueryTimeRange a recommended option for the above scenario?
Any feedback greatly appreciated.
Regards,
d4rcy
- Changed type d4rcy Tuesday, May 8, 2012 9:25 AM No longer a question
Reply:
Hi,
my apologize, not sure if I understand the question right.
In the past I think I work on a simular senario. In this case we build a simple task and let run them per hour. So may be you can buil a smal, own cmd incl. your performance counter query. And let run them by using the windows taskmgr.
Best regards
Rainer
RPA
------------------------------------
Looking for a good way to store successful and failed processing in one place for logging
I am writing a script to reset passwords on a set of services on multiple servers. Ideally, the script will
- connect to the server
- validate the service exists
- if it exists check to see if it's disabled
- if it's not disabled, reset the password and restart the service
- if it is disabled, reset the password and not restart the service
- whether it succeeds or fails I need to log the results
I have a series of built in checks, but, I am not sure how to handle the logging. My first thought it to write to an object for each result (all the errors and the one success). So far I have the following (pretty long):
<# .AUTHOR Will Steele (wlsteele@gmail.com) .NOTES To get parameters for the Win32_Service change method visit the following link: http://msdn.microsoft.com/en-us/library/windows/desktop/aa384901(v=vs.85).aspx This function passes $null for all but three parameters: Argument 1: DisplayName Argument 7: StartName Argument 8: StartPassword .LINKS #> #region Parameters [CmdletBinding()] param( [Parameter( Mandatory = $false )] [ValidateScript({Test-Path $_})] [String] $serverfile = 'C:\test\server.txt', [Parameter( Mandatory = $false )] [String[]] $servicedisplaynames = @("Print Spooler"),
[Parameter( Mandatory = $false )] [String] $serviceaccount = 'someuser', [Parameter( Mandatory = $false )] [String] $servicepassword = 'somepassword', Parameter( )] [String] $logpath = 'C:\updateservicepassword.log' )
No comments:
Post a Comment