Could not load file or assembly 'Microsoft.SharePoint.Library, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified

 I get this error when i add the reference of Microsoft.Sharepoint.dll in my web application. My requirement is to display the Performance point Server Dashboards and Reports in my web application.

When i deployed this application on the same server where the share point is deployed and tried using the


<WebPartPages:SPWebPartManager ID="WebPartManager1" runat="server" EnableClientScript="true"/>

control i get the error Object reference not set to instance of an object.
I have registered the control using the following:

<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

Is there any workaround for this problem.

Tried registering the Microsoft.SharePoint.Libary as well to the page but it didn't worked.

<% @ Import Namespace="Microsoft.SharePoint.Library" %>

 The virtual directory created is in the default website of the IIS and Sharepoint is deployed as a different Website..
Could this be a reason for the error?

Also if you could referrer me to a link/ book explaining in details the integration of the Three -> Performance Point -> Share Point -> Website. that would be great....

To give mode details i am adding my code bellow:




<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PerformancePoint.aspx.cs"
    Inherits="PerformancePoint" %>
<%@ Import Namespace="Microsoft.SharePoint.Library" %>

<%@ Register Assembly="Microsoft.PerformancePoint.Scorecards.WebParts" Namespace="Microsoft.PerformancePoint.Scorecards.WebParts"
    TagPrefix="cc1" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <cc1:ScriptManagerLoader ID="ScriptManagerLoader1" runat="server">
            </cc1:ScriptManagerLoader>
            <cc1:DashboardItemWebPart ID="DashboardItemWebPart1" runat="server" />
            <webpartpages:spwebpartmanager id="WebPartManager1" runat="server" enableclientscript="true" />
            <asp:WebPartZone ID="Zone1" runat="server" Title="Zone" Height="85px" Width="268px">
                <ZoneTemplate>
                    <cc1:DashboardItemWebPart ID="dbiwpScorecard" runat="server" />
                </ZoneTemplate>
            </asp:WebPartZone>
        </div>
    </form>
</body>
</html>


---------------------------------------------------------------------------------------------------------------------------

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

//using Microsoft.PerformancePoint.PmService;
using System.Xml;

using Microsoft.PerformancePoint.Scorecards;
using Microsoft.PerformancePoint.Scorecards.WebControls;
using Microsoft.SharePoint;
using System.Text;
using Microsoft.PerformancePoint.Scorecards.WebParts;
using Microsoft.SharePoint.WebPartPages;
using System.IO;

public partial class PerformancePoint : System.Web.UI.Page
{
    IBpm oService = null;

    protected void Page_Init(object sender, EventArgs e)
    {
        oService = PmService.CreateInstance("http://Server:40000/WebService/PmService.asmx");
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        Guid s = new Guid("28ce3a657c4c4c7f949db7b9355fa048");
        //PmService objService = new PmService();
        Dashboard obj = oService.GetDashboard(s);

        DashboardElementContainer dbePage = (DashboardElementContainer)obj.Pages[0];
        DashboardItem item = (DashboardItem)(((DashboardElementContainer)dbePage.DashboardElements[0]).DashboardElements[1]);

        DashboardItemWebPart diw = new DashboardItemWebPart();
        diw.ID = "Test";
        diw.Title = "Test";
        diw.DashboardId = obj.Guid.ToString();
        diw.ItemIds = item.Guid.ToString();

        SPWeb oWeb = SPContext.Current.Web;
        SPLimitedWebPartManager oLWPManager = oWeb.GetLimitedWebPartManager("/_layouts/NLTWeb/Test.aspx", System.Web.UI.WebControls.WebParts.PersonalizationScope.Shared);
        oLWPManager.AddWebPart(diw, Zone1.ID, 1);

       
    }
}


This is something I found in a one of a fourm..

Please Help..

0
kunalkamboj
4/28/2009 5:26:03 AM
asp.net.sharepoint-hosting 560 articles. 0 followers. Follow

1 Replies
1995 Views

Similar Articles

[PageSpeed] 24

See this post for help:

http://forums.asp.net/t/1047141.aspx

Jeff


Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
0
jeff
4/29/2009 12:24:59 PM
Reply:

Similar Artilces:

Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified
Hi All,   I am facing this problem after publishing the web site on web server.   If u have any solutions of that problem then please reply me.   Thnaks & Regards Dheeraj Mittal dheeraj_mittal02@yahoo.co.in    Have you checked whether Reporting Services is configured in your hosted Server Ashok Rajawww.iGold.inDon't forget to click "Mark as Answer" on the post that helped you. This credits that member, earns you a point and marks your thread as Resolved. This Issue due to Report viewer not installed on web ser...

Could not load file or assembly 'App_Web_zdfvephf, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
 When  i tried  to access  my home page  it  shows the following  Error Could not load file or assembly 'App_Web_zdfvephf, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. Try to Find your project folder from this location, Close your Visual Studio and delete it, and restart your visual studio and then rebuild. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files Hope you are Using ASP.NET v. 2.0. Hope this Helps,-Deepak - DeepakDon&...

Could not load file or assembly 'System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified
 Hi, I am using Jasper.. I downloaded JASPER and the sample code from http://www.microsoft.com/downloads/details.aspx?FamilyId=471BB3AC-B31A-49CD-A567-F2E286715C8F&displaylang=en but when  i try to run Samples.. I get the error :  Could not load file or assembly 'System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified i can find only System,Core under 3.5 version. I tried running the project from VS2005 and from VS2008.. still the problem persists....

Could not load file or assembly 'Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
AAAARGGGGGGGGHHHHHHHH.....Ok, the error has been seen quite often...I've checked a lot of forums and all they seem to provide as a solution is to uninstall everything and make sure the latest dll's are in the bin directory of my website.Here are the files in my bin directory:AjaxControlToolkit.dll version: 1.0.61214.0AjaxControlToolkit.pdb version: AJAXExtensionsToolbox.dll version: 1.0.61025.0System.Web.Extensions.Design.dll version: 1.0.61025.61025System.Web.Extensions.dll version: 1.0.61025.61025Now, I've done exactly that! and checked all the versions but still the error remains....Below...

Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.
Hi, I am using VS2008 and .net 3.5, #. i m trying to access default.aspx in the browser and it shows the error as "Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified."   Also when i use any of the Ajaxcontrol toolkit tools, i m getting the these kind of errors. I hav copied the ajaxcontroltoolkit.dll and .pdb in the bin folder. but i m getting the same error. Please help me.  I will  be grateful if anyone can send me the co...

Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
hello i am getting this error in my application...i used ajax in web site..please help me Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.Source Error: Line 30: <compilation...

Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified
I have downloaded the Ajax Control Toolkit Website Project. I want to run on Visual Studio 2005. But when I run the project I got the error like  Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified . </system.web>     <httpModules>        <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neu...

Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. #2
Hi, i copied the solution folder   and put this folder to another  computer and i try to run it show the error message " Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified." Please guide me very urgent.Regards,Kannandesikan You need to install the ASP.NET AJAX extensions on the web server. ...

Error 25 Could not load file or assembly 'Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file s
Hi there,   I am just trying to learn AJAX at the moment and have run into a problem. I have copied over the example for cascading dropdowns and this is where I have the above error.The error occurs in the web.config file on this line <add assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>  Can anyone advise what I need to change? The sample is for old ajax version. you need to copy latest ASP.NET AJAX web.config to your projects web.config below is my cascading code for new version for you  ASPX &l...

coplilation error : Could not load file or assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the fi
I have problem compiling my website on 2 machine(win 2003 server & windows vista). The problematics machines has these components installed: 1.Net framework 3.5 sp1 2.vs 2008 sp1 ver: 9.0.30729.1 sp 3.windows sdk for vs 2008 sp1 It works grate on 3 different machines (xp,2003) that has the same components installed and the Microsoft ASP.NET 3.5 Extension CTP. I can't install the Microsoft ASP.NET 3.5 Extension CTP because I already have the .net 3.5 sp1 installed. Here is my web.config ...

Could not load file or assembly 'CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
Hi,  Ima using Crystal Reports for Visual Studio .NET 2005 Could not load file or assembly 'CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.I am getting this error after I deploy the application. Then I installed Crystal Reports for Visual Studio .NET 2005 - Service Pack 1 (Updated Nov. 2007) Merge Modules for Crystal Reports for Visual Studio .NET 2005 This file contains the latest merge modules required for deploying .NET applications using Crystal Reports ...

Could not load file or assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does n
Hello All,If this is a repeat of posting that have been created, I sincerely apologize.  I have been looking for a solution for quite some time and although I have run across a lot of different posts offering solutions, nothing seems to be work.  Here is my dilemma:I have created a website with several pages using ASP.NET 2.0 and AJAX Extensions (including the AJAX Control Toolkit).  The pages run fine on my Development machine but on my IIS machine, I continue to recreate a Parser Error in regard to System.Web.Extensions.  Here is what I have done thus far: I have a...

Access is denied. Could not load file or assembly 'App_Code, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
Hi, everyone, I made a page in asp.net and worked well, I published it in hosting and walked, after working and it throws the error to me: “Could not load cases out or assembly “App_Code, Version= 0.0.0.0, Culture=neutral, PublicKeyToken=null” or one of its dependencies. Access is denied.” I return to republicar and works.  Somebody has some idea that it is happening? Hi I get the same message in a similar situation, did you find a solution?Bw. Mark ...

Unable to create type 'live:IDLoginStatus'. Could not load file or assembly 'System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The s
Hello,  I try to use a windowslive website in visual studio 2008 with framework 3.5 I have installed the framework 3.5 and i get following error although the site is working perfect in localhost: Unable to create type 'live:IDLoginStatus'. Could not load file or assembly 'System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.After this i check my gac and i manually (with configuration tool 2.0) installed 3.6 in my gac. I still get the same error. What am i doing ...

Web resources about - Could not load file or assembly 'Microsoft.SharePoint.Library, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified - asp.net.sharepoint-hosting

Resources last updated: 11/27/2015 11:11:15 AM