.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Test-SPContentDatabase isn't working

Posted By:      Posted Date: October 25, 2010    Points: 0   Category :SharePoint

I have an SPS2010 beta farm up and running.  I wanted to use Test-SPContentDatabase against another non-related farm (but in the same domain, no firewalls in place) but every time I try to run Test-SPContentDatabase -Namedatabasename -WebApplication Url -ServerInstance RemoteSqlServerName , I get "Cannot find an SPWebApplication object with Name, Id, or Url:Url ".

Thoughts on what I'm missing?  The user account running the command has sa/domain admin privs and PS is being run while elevated.


View Complete Post

More Related Resource Links

visual tree hit test not working

I have a sketch/designer type of program. The user can sketch shapes. These shapes are polygons in a user control. I have an edge and a vertex class which generate the point collection for my polygons and connect the vertices to outline the polygon. I am using a selection box in an adorner to selection those controls and move them around. When I release the mouse after drawing the selection box, I run a hit test by calling VisualTreeHelper.HitTest. I pass in new     GeometryHitTestParameters(new RectangleGeometry(rect)) where the rectangle is the selection box, and this chooses the appropriate shapes. The user can take the selected shapes and "join" them to unselected shapes. In this situation. The shapes still remain in separate user controls, but they now share the common edges and vertices. At this point, my selection stops working intermittently. When I try to debug my hit test, I never hit the break points in my HitTestFilterCallback, HitTestResultCallback, or in my overridden HitTestCore functions. Then if I drag an edge or vertex, the selection may or may not start working again. I am not even sure how to debug this type of problem anymore. I have checked the visual tree for the canvas holding my shape controls and everything seems right.   Please help.  

Simple test not working

Hi all,  I've created a dummy test that does absolutely nothing. When I try to run it I get the following message: Error TestMethod1 TestProject Unable to get type TestProject.UnitTest1, TestProject. Error: System.BadImageFormatException: Could not load file or assembly 'TestProject, Version=, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format. ... I compiled with platform set to x64, ma machine is a 64 bits and visual studio is not apparently [is installed in C:\Program Files (x86)]. I don't know exactly what .Net is installed. Struggling to really find out how to check that. Any ideas, Thanx, --mike

test-spcontentdatabase reports missingWebPart, but the page with the webpart has been deleted


I'm testing a MOSS2007 --> SP2010 migration - took a backup of a site collection db, attached it to the new SQL server and ran test-spcontentdatabase against it.  it reported several custom webparts as not being installed on the new farm.  I deleted the pages containing those webparts from the production MOSS sites, and then deleted those pages from the recycle bin - but test-spcontentdatabase still reports those webparts as being referenced.  Searching the database directly does find references on the pages I deleted in the WebParts table.  When I join the WebParts table with the AllDocs table I see the deleted pages referenced - but they don't exist (that I can tell) either on the site or in the recycle bin.

How can I get these items out of the report? 



ssrs moved rdl files from dev server to test server but its not working


Hi All,

I have developed 5 reports in dev box.After testing those i have saved the rdl files in a shared loacation.I told the Test team guys to copy the rdl files from that shared loacation and perform testing those reports on test box.But they are not able to do it.The reports are not running.they are throwing errors.I have one shared datasource for all those 5 reports.The reportserver for dev box is sqldev05 and test box is sqltest05.

What are all the steps needed to be implemented by test team so that reports will run succesfully in test box.

Thanks in Advance!!


window.location='test.aspx' not working on mobile website


Hello frds,

I'm having one problem in mobile website using jquery.

i have written a code on button click to redirect using window.location='test.aspx' it doesn't work event my javascript validation is also not worked. how to explain if your in other country give error 406 forbidden access is deny.



Content Attach database - no errors in test-spcontentdatabase but...


I have read this article, very similar to what I have dealt with http://social.msdn.microsoft.com/Forums/en/sharepoint2010general/thread/cfee3e21-0ad9-4ba8-9822-674348bd2ad6

I do not get an output error in the powershell command to test the content database after I have installed all of my steps  in the exact order after numerous setups to prevent the errors from regenerating.

Since I wasn't able to restore the website, I would start over by removing the content database and repeat the process until I get my strategy right to bring up the website, I get errors with the test-spcontentdatabase afterwards.  Why do I get errors the second time around when I never received them the first time?  Is it because I had removed the content database and the web application and started over again?  Do I need to rebuild the server each time?  I do have a snapshots of the virtual images to go back to its working point.  However to confirm my suspicions, I would need to revert with SQL box first and then the app server and respect webservers in order?  I need help with these answers as there are doubts of underlying issues of not seeing output errors the first time and only see the error outp

Working with SharePoint document libraries

Document libraries are collections of files that you can share with team members on a Web based on Microsoft Windows SharePoint Services. For example, you can create a library of common documents for a project, and team members can use their Web browsers to find the files, read them, and make comments. Users with Microsoft Office 2003 can check out and edit the files as if they resided on a local or network drive.

By default, your team Web site comes with a built-in document library named Shared Documents, which is listed on the Quick Launch bar as well as on the Documents and Lists page.

Working with DropDownList and ListBox Controls in ASP.NET

"In my application i am using dropdownlist to display all categories from a table. When the user clicks this control I display all records in that category. Category table also contains column called color.

I wanted display some categories in dropdown list different color and others in different color using ASP.NET."-Anonymous

Test your skill in SQL Server

You will be given a series of 10 SQL Server related questions that are randomly selected. Since the questions are randomly selected, you will receive a different set of questions each time you start a test. At the end of the last question, you will be given your score. You can then start a new test session if you like.

Server side validation of Fileupload control not working



I've tried this method in my code behind to try and validate that the Fileupload control has a file or not. I get the error message the the event "Server Validate" cannot be found. Can anyone tell why? Thanks.

Public Sub CustomValidator1_ServerValidate(ByVal source As Object, ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs) Handles CustomValidator1.ServerValidate

' Get file name

        Dim uploadAvatar As FileUpload = DirectCast(AdvertisementForm.FindControl("uploadAvatar"), FileUpload)

        Dim UploadFileName As String = uploadAvatar.PostedFile.FileName

        If UploadFileName = "" Then
            ' There is no file selected
            args.IsValid = False
            Dim Extension As String = UploadFileName.Substring(UploadFileName.L

Row command working on all rows not selected one?



I have this code that hides a column in a gridview.  (The column houses another nested gridview).

    Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand
        If e.CommandName = "Select" Then
            If GridView1.Columns(0).Visible = False Then
                GridView1.Columns(0).Visible = True
                GridView1.Columns(0).Visible = False
            End If
        End If
    End Sub

The trouble is that if I click the select link on one row that action to hide is carried out on all rows.  How can I set this up so that it only hides the row that is selected?


upload file not working



iam using masterpage and ajax update panel, i have child page called  fileupload.aspx,i try to upload the file

but its not working , can i use updatepanel in child page , pls very urgent

looking forward for answer.

JQuery Treeview plugin is not working with Ajax page load in ie8


Hi there,

I developed a page where i m using jquery treeview plugin to generate tree. It worked fine on FF, IE8 with out ajax.

But when my page loads thro' ajax call in IE8, it is not collapsing or expanding tree.

Any idea?

Thanks in advance.

jquery confirm windows isn't working


Hi, i am using jquery to implement a modal confirm windows but it not working

i have a template field button with ajax confirm using jquery but i have a problem. Apper the confirm windows but when i click on "yes" doesn't execute the delete command. without ajax (using template field button and simple confirm windows javascript) works so well.

Can you give me a hand with this?

thx in advance!

<link href="_assets/css/StyleSheet.css" rel="stylesheet" type="text/css" />
<link href="_assets/css/confirm.css" rel="stylesheet" type="text/css" />
<script src="_assets/js/jquery-1.2.6.min.js" type="text/javascript"></script>
<script src="_assets/js/jquery.simplemodal-1.1.1.js" type="text/javascript"></script>

<script type="text/javascript">
$(document).ready(function() {
       $(".deleteCustomer").click(function(ev) {
                var msg = $(this).attr("title");
                confirm(msg + "?");

Keyboard shortcuts stops working in WebMatrix


I'm often experiencing that keyboard shortcuts stops working in WebMatrix. This is very annoying as CTRL-S, CTRL-C, CTRL-V, etc. stops working, all of which are heavily used when programming. It's obviously hard to explain how to reproduce this, but I was wondering if someone knows a quick-fix?

update/delete not working on server only


my aspx page works in VWD, and everything works on the server EXCEPT update and delete sql functions. any ideas?


New off line application working with sdf file. Need advice


Hey Folks

I am working on a project currently where I need to get data out of a 3rd party vendor's software that uses a .sdf file I looked this up and its a SQL CE file. I was hoping to just link to with with access but thats apparently not going to happen. I need to link to the database extract data from it to a csv file for later use. I also and most important I need to get the data from it and create a report that can be printed while on a customers site that my or may not have web access so I need for this program to be on and off line. I had my webapplication that I have been working on open and was able to bring up the sdf file under the server exploere however I can't seem to get anything out of it when I try to do grid views or detail views errors out.

Can I use one of Visual Studio projects to create this sort of applicaiton if so what would be the best approach. I would love to get an access odbc driver since office is allready installed on the employee's laptop's



ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend