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

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

Issue After SSP is upgraded in SP2010 by DB attached method

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

We have upgraded SSP db to SharePoint 2010 successfully.


We got all user profiles including custom properties however the problem is only properties which have choice list that data is missed. What we can do in this case. Please help..


Source domain is different from destination domain.


View Complete Post

More Related Resource Links

Memory Management issue while calling COM method from .Net component

Hi all,  The Com Component Method say(GetChildresponse) requires Byte pointer as input. From .Net Component, while calling GetChildResponse  I am creating IntPtr and passing it to Component.  I am only creating the pointer in my .Net Component but allocation of bytes(CoTaskMemAlloc) happens at COM Method. After populating the pointer buffer, I am transferring to memory buffer in .Net method and Free the memorry of the pointer using "Marshal.FreeCoTaskMem" method.  Still I am not sure, whether it is deallocating the memory since the Garbarge collector wont happen immediately.  We are hitting on performance issue while doing load testing and we suspect this might be due to memory allocation that is not getting deallocated properly. Any pointers would be helpful. Thanks, Nithya Sample Code: unsafe {   // Get the physical memory address ocpHeaderBufferPointer = new IntPtr((void*)&ocpHeaderBufferPointer); temporaryResponseBufferPointer = new IntPtr((void*)&temporaryResponseBufferPointer); }   try {   try {   // Call the GetResponse of the pass through ocpChannel   new OCPChannelDSClass().GetResponse((uint)transactionId, ocpHeaderBufferPointer, out ocpHeaderBufferSize, temporaryResponseBufferPointer, out temporaryResponseBufferSize, (uint)timeout); }   catch (Exception ex) { &nbs

Issue with new controller method added

I have created an ASP.NET MVC 2 web application that runs beautifull, not a massively complex application, only 2 controllers (Home and Treatment). I have an XML data store that holds page data to be displayed for each of a set of treatments.All pages display exactly as I want them to.I have now added a new controller method for the Treatment controller with the associated XML data and it displays fine in my development environment (displays exactly as I would expect).When I deploy the new XML data and the new TreatmentController.cs file to the new site the link becomes available, but when navigated to I get a 404 page not found exception. All existing links work absolutely fine as they should.The code below shows a working controller method and the controller method that gives the 404 exception, which is pretty much identical, apart from the method and parameter names.public ActionResult Gift_Vouchers(){    GetMasterData(ViewData);    GetTreatmentData("Gift_Vouchers");    return View("Treatment");}//The above method workspublic ActionResult First_Aid_Training(){    GetMasterData(ViewData);     GetTreatmentData("First_Aid_Training");     return View("Treatment");}//The above works in dev environment, fails in liveI would assume that this is something

Cascading Dropdown Web Method Issue



I am having an intersting issue to which I have found no solution, obviously. I am using a web service to populate a couple cascading drop downs. Evereything looks correct to me but I am getting a [Method Error 500] when I run it all. I have the <System.Web.Script.Services.ScriptService()> added to the web service so that's not the problem. What I have found while playing with it is that if I remove the arguments from the web method (ByVal knownCategoryValues As String, ByVal category As String) then it works. This of course is not helpful as I am trying to populate multiple drop downs. I can find nothing on anyone else having this issue.

I am using .NET 3.5 and Ajax DLL version 3.02... 

Also of note is that I have another website, using the same .NET and Ajax versions and this code is working fine.

I have tried everything I can think of, including my last resort tactic of smashing my face on my keyboard, and nothing is working. I am at a loss. Any help would be appriciated. Thanks.

Drop Downs:

<asp:DropDownList runat="server" ID="ddlPlateType" Width="250px" />

<ajax:CascadingDropDown runat="server" ID="cddPlateType" TargetControlID="ddlPlateType"

Issue with Picture Library Slideshow Web Part after export/import of site collection (SP2010)


I recently exported/imported an SP2010 site collection from Dev to Prod. The site collection had about 90 sites, which were all driven from a site template. Once the export/import had taken place, I created an additional 15 sites (in Prod), using the original site template that was created in the Dev environment. Everything seemed to be working just fine, but I found an issue with the Picture Library Slideshow Web Parts (PLSWP) on all the sites that were created in Prod. Basically, I have a Picture Library, and any pictures added to this library show up in the PLSWP. The original 80 site's PLSWP works fine, but the new 15 sites will not show the pictures through the PLSWP (the viewer just shows up blank). Here is the difference in the html output of the picture viewer:

 PLSWP from Dev:

 <a target="_blank" href="http://forefronttest/realestate/RE/West/HOU/3560/Project%20Pictures/test.jpg" id="MSOPictureLibrarySlideshowWebPart_ctl00_m_g_28b22a62_6d8

Adding XsltListViewWebPart on page / context menu issue in folders / SP2010



I have an issue with adding XsltListViewWebPart on a page for Document Library. When I do it using code below everything works fine unless I create some folder and upload a document there. Such documents have corrupted context menu.

When trying to open a menu I get javascript error:
"This item is no longer available.  It may have been deleted by another user.  Click 'OK' to refresh the page."

When I use ListViewWebPart instead of XsltListViewWebPart everything is ok (but this solution is not acceptable).

Code I use:

using (var site = new SPSite("http://moss_server/ct4"))
                using (SPWeb web = site.OpenWeb())
                    SPFile page = web.RootFolder.Files["Defaul

Adding XsltListViewWebPart on page / context menu issue in folders / SP2010


I have an issue with adding XsltListViewWebPart on a page for Document Library. When I do it using code below everything works fine unless I create some folder and upload a document there. Such documents have corrupted context menu.

When trying to open a menu I get javascript error:
"This item is no longer available.  It may have been deleted by another user.  Click 'OK' to refresh the page."

When I use ListViewWebPart instead of XsltListViewWebPart everything is ok (but this solution is not acceptable).

Code I use:

using (var site = new SPSite("http://moss_server/ct4"))
                using (SPWeb web = site.OpenWeb())
                    SPFile page = web.RootFolder.Files["Default.aspx"

Issue with dynamic usercontrol loading when using ParseControl() method in VS2008


In the process of migrating an old VS2003 web app to VS2008, I'm running into this issue and haven't been able to find a resolution. 

Sample code:

"Default.aspx" has a PlaceHolder(ToolHeader).  In the Page_Load(), we dynamically load a user control passing in the virtual path to a helper method [public Control ParseUserControl(string virtualPath)].  This reads the content from the physical path, returns a Control from ParseControl() method. 

 I immediately get the following error when I open the default.aspx page in browser.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'DynamicUC.UcControl'.

Source Error:

 Line 1:  <%@ Control AutoEventWireup="true" CodeBehind="UcControl.ascx.cs" Inherits="DynamicUC.UcControl"  %>

Can't figure out why it can't load the type.  Namespaces are looking right.   I try removing the Inherits="DynamicUC.UcControl" attribut

Faild Upgrading From MOSS2007 to SP2010 using Database Attach Method


HI All, I'm trying to upgrade my MOSS 2007 to SP 2010.

SP 2010 in installed in a new 64bit server.

I'm using the stsadm command addcontentdb but when it executes, I recieve this error messgae : Illegal Characters In Path.

Any Help?



Issue with infopath and large attached files (over 27MB)



I have an annoucement list, which  has been customized in infopath ("customize Form" button). Nothing funcy, just adding some comments.

The form opens , and I attach a file, over 27 MB (22 MB works with no problem).

I press save (wait for 20 secs) and and error occurs:"Error processing the form"

I press retry, a popup window appears saying: "sending data to the server" and then an error window appears:


A Microsoft SharePoint Server State Service error occurred while processing your request. For more information, contact your server farm administrator. 

Click Start Over to load a new copy of the form. If this error persists, contact the support team for the Web site.

Click Close to exit this message. Correlation ID:cdb26c5b-ea08-4bb9-8525-34d9b16a30c8

I open the logs and copied-pasted here:


11/04/2010 10:39:58.28 OWSTIMER.EXE (0x0FFC)                   0x130C

SP2010 Prerequisites Install issue - Windows Identity Foundation not installing - 0x8007000d error


Hi, need some help pls, browsing for a solution but to no avail.

Doing a SP 2010 install - WIF error when doing pre install from SP2010 installation menu - all prerequisites installs but WIF fails to install. Did the WIF download from Microsoft site and (Windows6.1-KB974405-x64) I'm running WIN SER 2008 R2.

Specific error:

Windows update Standalone Installer

Installer encouentered an error: 0x8007000d

The data is invalid


Pls advise.




Issue with toolbar when loading the RDL (upgraded to ssrs 2008 R2) via report viewer in MOSS 2007 se

Our front end server is Office SharePoint Server 2007 and the RS is SSRS 2008 R2 (native mode).

The toolbar is different when loading the same RDL (upgraded to SSRS 2008 R2) through report viewer and report manager. In report manager, the toolbar is color blue while when displayed through report viewer the color of the toolbar is light brown/yellow. Color blue indicates it is using the latest version of SSRS while the other color for previos version. Aside from that, the font of several texts in a table has increased to one point when viewed via report viewer compare to when viewed via report manager.  Is there an existing fix for this?

SQLCE 3.5 SP2 private deploy method issue

I have a c# application that uses private deploy method with a SQLCE 3.5 SP2. If my application is installed on a machine already having SQLCE 3.5 SP1 installed. It uses the SP1 version in GAC rather then my private deployment. 
Is there a way to force what sqlce version to run? Im my case i want MY SP2 version to run. The problem im facing is http://support.microsoft.com/kb/958478/EN-US. And i dont want the enduser to install sp2 or hotfix since im providing the correct sqlceruntime through my private deployment.
Ive looked into a simalar case, http://stackoverflow.com/questions/1165190/is-there-a-way-to-force-using-a-dll-version, but its the other wayaround :/. The problem seems to be the assemblyversion, its in both SP1 and SP2 for System.Data.SqlServerCe.dll so i cant use his "fix". 
My SqlCe versions:
SP1: 3.5.5692.0
SP2: 3.5.8080.0
Any thoughts suggestions on this issue?

Thinking about new C# method prototypes: object as dictionary

I recently had to write a small Flickr API. I know many .Net API for Flickr already exist but I needed one for a Silverlight application. Whatever, it's only about building some querystrings so I did it by myself. It's been an opportunity to think again about a classical question: how to pass parameters to a method ?

Imagine you have a generic method to call some Flickr functions.

IsapiModule Error 500 Issue


I am about exhausted trying to figure out this error:

HTTP Error 500.0 - Internal Server Error

Description: The page cannot be displayed because an internal server error has occurred.

Error Code: 0x8007007b

Notification: ExecuteRequestHandler

Module: IsapiModule

Requested URL: http://localhost:80/ReportServer

Physical Path: c:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\ReportServer

When I enable Failed Request Tracing Rules and view the log output I am supposing that the actual problem is in the 2nd call where there are 2 backslashes before the actual filename in the specified path:


CALL_ISAPI_EXTENSION DllName="C:\Windows\Microsoft.NET\Framework\v2.0.50727\\aspnet_isapi.dll"


MVC2 issue - Stuck. Trying to create a cms with nested partials


I am currently trying to display multiple items on a single page. I am not sure as to how to tackle this. What I have is a database table that has all the page data in. I have this run as a PagesController and this works fine. However what I would like to do is, if say the Products page is selected via the menu, I want to pull back not only the Products page html but also get all the products, and even be able to pull them through via category. I was trying to use a partial view, but I can't get it to work. The same would be for other pages, having partial views to display the other content, ie if Gallery is selected, the page html for Gallery shows and it then can push to a partial view that pulls all the gallery images from the gallery db table and so on. 

Maybe I am tackling this the wrong way. I have the pages stored in the db to allow for a CMS system I have setup. Maybe I need to use models for all the other items(Products, Gallery, Videos and such) and use the partial for the page html?

Any help would be greatly appreciated as I am confused.

Sys.Net.WebServiceFailedException: The server method '' failed with the following error:



Let's say we have 2 time consuming functions, aaa and aaa1 inside a aspx page.

        public static string aaa(int i)
            return i.ToString();

        public static string aaa1(int i)
            return i.ToString();



        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
        <span id="displayspan"></span>
        <br />
        <input type="button" value=

Jscript error: Object does not support property or method


 Hi, i have little knowledge on javascript but i need to use this code get from somewhere for a jquery to work.

I face this "Jscript runtime error: Object does not support property or method" whenever im trying to run this page.

In my experience, im get this error msg 9 out of 10 times i use javascript in my system.

Im using Microsoft Visual web developer 2008, i wonder if this is related to my problem, i not sure there is anything i need to add as reference or update anything.

But anyway, in short, i just couldn't use javascript code when using this development tool because of this sort of error.

Anyway, it happen that last time i tried use the same type of jquery code in another project and it seems to work well without an error.

But now when im try to use it again in this recent project i created, it come out with this error and i have no idea how to solve it even look through google and this forum.

It doesn't really seems like its the code problem itself although im not sure, because any javascript code just couldn't work.

So below is my code that i need to use.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script>
<script type="text/javascript" src=&quo
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