Remove bad dll reference after content data migration sharepoint 2007 - sharepoint 2010

I have 400 subsites under one root site and we need to remove one DLL reference from default.aspx Home page of each sub site.
Assmbly ref like this.
<%@ Register TagPrefix="WpNs0" Namespace="DS.DSQueryWebPart" Assembly="DS.DSQueryWebPart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=709ed70a96eaa5cb"%>
This assmebly is not used anywhere .
This assembly is reflecting in subsite default.aspx after the content database migration sharepoint 2007 to sharepoint 2010.
Is there any way we can remove this bad reference through database query or any other way around
sarav

Hi,
If are sure that this is the only customization in the default.aspx page, then you can safely  go into Site Settings -> Site Actions -> Reset to site definition -> Select Reset specific page to site definition version and enter the default.aspx
page url. This will replace the customized page with the original site definition page. The process can be automated using PowerShell/C# Code. Here is an example:
using (SPSite site = new SPSite("http://aissp2013/sites/Team/"))
   foreach(SPWeb web in site.AllWebs)
  using(web)
  SPFile file = web.GetFile(web.Url + "/default.aspx");
  if (file.Exists)
  file.RevertContentStream();
The main part here is to get hold of the default.aspx file and use RevertContentStream() to reset it to site definition page.
However, if there are other customizations as well, then you will need to get hold of the Project or WSP file and remove the reference there and then run update-spsolution powershell command to update to new WSP.
Thanks,
Nadeem
Please remember to up-vote or mark the reply as answer if you find it helpful.

Similar Messages

  • Please Help!! Lists and libraries suddenly blocked just before migrating from SharePoint 2007 to 2010

    Hi all,
    I took several weeks preparing the migration of a large farm from SharePoint 2007 to 2010 using the system of restore databases and mount site collections. I've built the new farm and I have done several full migration tests to verify that all was well the
    day of final migration.
    The farm consists of three virtual servers: one with SQL Server 2012 and two with SharePoint Server 2010. Upon completion of the tests we've moved the servers to another network. We have turned on the servers and everything seems to work fine.
    Just the day of the final migration I wanted to check the HealtReports list of the Central Administration, and when I wanted to look up an alert, the view window has not shown me anything and ribbon has appeared with all options grayed. Days ago worked fine.
    Alarmed by this, I have started to check all lists and libraries in the Central Administration and the same happens. I can not view or change the items, nor add. Neither I can change the properties of the lists or libraries, as if everything was locked. I
    tried on the main site collection and same thing happens, and I have tried with several user with Total Control permissions. I have also verified that the site collection was not in ReadOnly mode.
    I have restored a site collection from SharePoint 2007 and have migrated successfully to 2010. Before applying visual upgrade I found that the content is also locked. It is as if he had changed anything in the configuration of the whole farm, but I can not
    find what. The Event Viewer of the three server shows no errors related to this. The SharePoint LOGS not show anything unusual.
    I do not know where to look and urges me to find a solution because the old servers must be out of service soon. I accept any suggestions.
    Kind regards.

    Finally I answer myself because I've already found and fixed the problem. Before moving the servers in farm to the another network I've unplugged the single SharePoint server from the farm database for to clone it. Apparently
    this disconnection removes all the implemented solutions and the farm remains without servers. Reconnecting the servers not re-implements the solutions. When I was about to create a new farm I have seen that all solutions were not implemented,
    I have implemented one by one and the system worked again.
    If any of you happen reaches you, now you know what it may be due.
    Kind regards!! Now I'm a happy man! ;)

  • Sharepoint 2007 to 2010 Migration issue

    Hi Techies,
    I am doing migration from sharepoint 2007 to 2010,
    I have restored the 2007 content DB to 2010 server,But the problem is during attachment of content DB to sharepoint 2010 web application,I am getting the database upgradation issue.
    Please help to solve this issue.
    Thanks Regards,
    Simanchal Padhi

    Hi Simanchal,
    Could you please let me know what exact error you encountered while attachment of content DB?
     By your question, I understand you are facing a database upgrade issue.
    Have you run below command before you ran Mount-SPContentDatabase
    command?
    PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures
    Please remember to click 'Mark
    as Answer' if the reply answers your query or 'Upvote' if it helps you.

  • Contact list not show after migration Exchange 2007 to 2010

    Hello.
    I have a old infraestructure with exchange 2007 and new organizacion with exchnage 2010
    If I migrate a mailbox from 2007 to 2010 I can open the mailbox on 2010 without problems,
    From owa works correct active sync and outlook work correct, I can send a receive mails but, from outlook client I can not see the Global Address list.
    Step by step:
    User with mailbox over exchange 2007.
    Outlook, owa active sync.. all is working fine and I can see the Global Addres list from owa and from outlook.
    Move mailbox from 2007 to 2010
    Completed ok without errors
    The user mailbox on 2010 working fine, I can access by owa by outlook and active sync and from owa I can see the Global Addres list but from outlook I can not see the GAL.
    I've tried diferents outlook versions: 2003 2007 and 2010 but I can not see the GAL
    If I try to download de GAL from Outlook I see outlook download the correct list and complete ok without erros but not show on outlook.
    I don't know why..
    Exchange 2007 with sp3 and 2010 with sp3 too.
    Any idea how could resolve this problem?
    Thanks in advance¡

    Hi
    Did you migrate your address list or create a new one? Move-OfflineAddressBook "Default Offline Address Book" -Server <your Exchange 2010 server>
    Get-OfflineAddressBook | fl *server*
    Set-OfflineAddressBook "\Default Offline Address Book" -VirtualDirectories "your exchange server\OAB (Default Web Site)"

  • Sharepoint 2007 Sharepoint Designer Workflow migrate to Sharepoint 2013

     SharePoint 2007 sites migration to SharePoint 2013, in SP2007 I have several workflows created using SharePoint Designer. Is it possible to migrate those Workflows to SharePoint 2013? If so,  is SharePoint 2013 Workflow
    Manager needed to run those Workflows?
    BTW, I will be using third party migration tools to migrate SP2007 content to SP2013.

    Hi John
    I know one third party tool which is best in migration and it migrates designer workflows also
    http://en.share-gate.com/sharepoint-migration
    http://en.share-gate.com/
    Please mark it as answer if it helps you finding your answer
    Amit Kotha

  • Migration from 2007 to 2010 - AD issue

    Hi,
    I'm currently migrating from EPM 2007 - EPM 2010 with a great handicap, 
    the source AD "source-ad.com" its not the same at destination "destination-ad.com"
    Can I commit the migration, changing the "source-ad\user01" account resources, to "destination-ad\user01"?
    I assume that the account name are the same between "source-ad" and "destination-ad.com"
    Thanks in advance,

    Hi
    Below article has the steps to migrate the project server from one domain to another.
    http://blogs.msdn.com/b/brismith/archive/2009/06/22/project-server-2007-migration-from-one-domain-to-another.asPx
    If you are looking to Migrate the Project server between domains and also migration of project server from 2007 to 2010, then it is best to migrate the Project server from one domain to another domain first and then migrate it from 2007 to 2010.

  • Mac Outlook 2011 Not Syncing After User Is Migrated from 2007 to 2013

    I have a couple users using Outlook for Mac 2011 (14.4.1) that have trouble automatically syncing their mailboxes after being migrated from our Exchange 2007 environment to our Exchange 2013 environment.  When they kick off a manual sync, it works
    fine.  Automatic syncing is very hit and miss and can go for hours before syncing.  Identities, accounts, and profiles have been rebuilt without success.  Is there something to look for client side or perhaps server side in EWS settings?  Thanks.

    Hi Peter,
    Does this syncing issue occur in OWA?
    If it works well in OWA, it seems an issue on the Outlook for Mac 2011 side.
    I suggest asking Outlook for Mac 2011 Forum for help so that we can get more professional suggestions.
    For your convenience:
    http://answers.microsoft.com/en-us/mac/forum/macoutlook?tab=Threads
    Sorry for the lack of knowledge on Mac. If there is safe mode in Mac, I suggest run Mac under the safe mode to avoid some AVs and add-ins for testing.
    If the syncing issue exists in OWA, I suggest collecting app logs for the further troubleshooting.
    Thanks
    Mavis 
    Mavis Huang
    TechNet Community Support

  • POST MIGRATION - Project Site cannot be found after migration from 2007 to 2010

    Hi,
       I have done full  migration from Project Server 2007 to Project server 2010. All the databases have been restored. The details in the Project Center are coming correctly. But When I open the Project Site , I get error webpage cannot be
    found. 
    I have done the Bulk update but it is not updating the URL to 2010 URL. 
    Please help.
    Regards

    Use PowerShell to list all the sites in your PWA site collection.
    There are many examples online..  Here is a link that is useful
    http://blogs.msdn.com/b/vijay/archive/2009/10/01/how-to-list-all-the-sub-sites-and-the-site-collections-within-a-sharepoint-web-application-using-windows-powershell.aspx
    Cheers
    Michael Wharton, MVP, MBA, PMP, MCT, MCTS, MCSD, MCSE+I, MCDBA
    Website http://www.WhartonComputer.com
    Blog http://MyProjectExpert.com contains my field notes and SQL queries

  • Project Server Migration from 2007 to 2010

    Hi Team,
    I am migrating project server 2007 and wss 3.0 to sharePoint 2010 and project server 2010. I am using full database attach upgrade method. The provisioning process end up with failure and uls logs showing the below mentioned errors.
    ULS Logs can be found at the below mentioned link
    https://onedrive.live.com/redir?resid=AC01B07FAACAFC5!534&authkey=!AM1v2WSkbUQx-t8&ithint=file%2ctxt
    I am looking for help, and i really appreciate if some one can help me sorting this out.
    Regards
    Kashif
    Kashif Saeed

    um...
    > Upgrade session finished successfully! 0 errors and 0 warnings encountered.
    not sure what you're asking
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • How to get mailbox expiration date using cmdlets 2007 and 2010?

    i wants to know which cmdlets used to find the expiration date of mailbox in exchange server 2007 and exchange server 2010. I have a cmdlets that gives mailbox expiration date for exchange server 2013. Is there any equivalent cmdltes available for exchange
    server 2007 and exchange server 2010. cmdlets to get expiration date of mailbox for exchange server 2013 is as follow
    Get-ADUser -Filter * –Properties Name, EmailAddress, AccountExpirationDate, GivenName | select Name, EmailAddress, AccountExpirationDate, GivenName | where {$_. AccountExpirationDate –ne $null}

    Hi Belinda
    Thanks for your valuable replies
    Please mention PS command to get the
    expiration date for AD accounts created for Exchange 2010 and Exchange 2007.
    Thanks a lot

  • How to remove OCS and install lync 2013 on MS Office 2007 and 2010

    Hi,
    We need to install lync 2013 on our systems having office 2007 and 2010 via SCCM 2012.
    Please suggest.
    Regards, Syed Fahad Ali

    Lync 2013 no longer has its own installer, but instead uses the Office installer.  You can create a customized installation and deploy it just like you do with Office:
    http://technet.microsoft.com/en-us/library/jj204827.aspx
    I hope that helps,
    Nash
    Nash Pherson, Senior Systems Consultant
    Now Micro -
    My Blog Posts
    If you've found a bug or want the product worked differently,
    share your feedback.
    <-- If this post was helpful, please click "Vote as Helpful".

  • Manage Dispute Case after data migration

    Dear all,
    Iu2019m facing the following problem.
    Iu2019ve all the Dispute case in a Financial Supply Chain System (APJ).
    Customer Line Items are, instead, in the Financial System (AP3)
    After a Data Migration, all my line item will be migrated in to a new system (BD3) but without the Dispute Case.
    There is a a way to link massively items with Dispute Case or users must proceed one by one ?
    Thanks in advance
    Alberto

    sounds like changing the ALE from system 1 to the other system.
    However I doubt it will be that easy.
    I believe that could should contact SAP SLO to work out the best route for data migration.

  • Lost book marks after data migration

    I lost my bookmarks on safari after a data migration from an older backup.  Is there anyway to recover them. The current bookmarks are now from my backup that was 4 months ago and I lost all the recent ones.  My 'deleted user' file did not store any applications so I cannot seem to go back and find them.

    I lost my bookmarks on safari after a data migration from an older backup.  Is there anyway to recover them. The current bookmarks are now from my backup that was 4 months ago and I lost all the recent ones.  My 'deleted user' file did not store any applications so I cannot seem to go back and find them.

  • HR Payroll Data Migration from 4.6C to ECC Upgrade

    Hi
    We are going to Upgrade our 4.6c R/3 system which includes HR to ECC6.
    After this upgrade we going to start the Data migration of all data inclduing HR payroll from 4.6c to ECC.
    1).Can anybody advise what are the options for loading Payroll data from 46c to ECC ..? After Payroll data migration we must be able to see all the Payroll results from the previous system.
    2) is there any standard programs availble for Payroll data migration  ..?
    Also if anybody have any info/links on Payroll/HR data migration please help to advise.
    Thanks a lot for your info/Time.,
    Edited by: Dp on Apr 3, 2008 11:41 PM

    Hi Somar,
    I could not find the mentioned post "HR Upgrade". Please let me know the details of the "HR Upgrade" details which need to be kept in mind during upgrading R/3 4.7 to ECC 6.0
    Yes, we have got the list of "Modification Objects" using the SPAU. Please confirm that during our upgrade, we just need to work on these objects which were changed/repaired by us according to our business need.
    And, apart from that, please let me know should I need to worry about any OSS notes specific to 4.7, which is not applied to our system and got released after the ECC 6.0 Enhancement Release 3.
    I understand that if we have a system that has the Patch and SP level as in our production system and do the upgrade to ECC 6.0 all the HR functionalities will be automatically taken care. Please confirm.
    Thanks in advance for your help.
    Regards,
    Vijay

  • Sharepoint 2007 to Sharepoint 2010 migration

    Hi,
    Does Microsoft recommends/support below techniques for SharePoint 2007 to SharePoint 2010 migration?
    Migrate SharePoint 2007 site to 2010 using save list as template technique: I use this technique. I have to delete all look up columns and add them again. Because I deleted all look up columns, I lost data of those columns. I am not able to update these
    columns data using spreadsheet view copy and paste as those are look up columns. Please tell me what is the easy way to update these look up columns data. After I move it production again I have to do incremental update.
    Migrate SharePoint 2007 site to 2010 using an Access table technique: This technique does not support all data types.
    Migrate SharePoint 2007 site to 2010 using Power Shell STSADM command: As in my site there are some customization I am not able to migrate site using STSADM command. It is giving me errors.
    Thanks,
    Amit Khatri

    hi
    mentioned techniques can be used for copying the data across different web apps/farms within the same Sharepoint version (i.e. from SP2007 to SP2007 or from SP2010 to SP2010, but not from SP2007 to SP2010). If you need to perform upgrade from SP2007 to SP2010
    you have 2 ways:
    - in-place upgrade
    - db attach upgrade
    Check the following post for more details:
    Upgrade single SPWeb from Sharepoint 2007 to 2010.
    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - http://camlex.codeplex.com

Maybe you are looking for

  • Sending multiple files using one socket

    Hi guys I'm working on a simple app that sends multiple files over LAN or I-NET. The problem is that the app run seems to be non-deterministic. I keep getting this error on the client side: java.io.UTFDataFormatException: malformed input around byte

  • Receiver FTP adapter

    Hi I have a idoc to ftp requirement. How do i ensure couple of things, 1) If the ftp server is down the payload is resent. 2) The delivery is guaranteed. regards Sameer

  • I cant get my webcam to work on my g72

    I cant get my webcam to work on my laptop.

  • VL10B delivery

    Hi Gurús, I have t.code VL10B which is used to create deliveries. I need to restrict the maximum number of positions in the delivery. How can I do this? Any suggestions? Thanks for your advice, Best regards.

  • TS2755 i message failures

    For the past few days I have had most imessages fail to go through. The message loads most of the way, then sits waiting for a long time before finally giving me the red exclamation point! Any advice?