Configuring Oracle datasource in Sharepoint Designer

I solved a problem identical to the description of this problem with SQL SERVER and you can see my post here;
and I’ll share the solution for oracle below.

After you have configured the Oracle data source (and worked your way through the errors) and the data source appears in the library - the problem cannot be solved with the configuration tools in SPD.

 Go to the ‘_catalogs/fpdatasources’ folder in the folder list panel of SPD.  Find the XML file that corresponds to the data source in error as it appears in the data source library.

 Double-click on the XML file to open it up in SPD.  The find the connection string attibute.

Simplify the connection string to just: Data Source, User ID and password.  (E.G. “Data Source=XXX;User ID=XXX;password=XXX”
~ Replace XXX with your parameters.)
Set the attribute ProviderName=”System.Data.OracleClient”
If you don’t have an Oracle provider for the SPD that works, I used _designer:Provider=”MSDAORA” and it worked form me.
 
Save the file and close it.

Test the data source in an existing data view or create a new data view.

I hope this solution the works for you.

Good Luck!

 

Error :Procedure or function has too many arguments specified

Procedure or function has too many arguments specified?

When i use a stored proc and don't name it the same params as the column names i get this error.

My solution was to only make sure your stored proc runs in Query Analyzer and make sure if your column name is e.g lastname then param name must be @lastname.

If i use a different param name to the column name and i look at my sql profile i see this:

exec pr_updategetLastMonth @doc = NULL, @do = NULL, @ipa = NULL, @cdate = NULL, @title = N'N79', @DisplayOrder = N'187', @CreationDate = N'5/04/2009 5:06:33 PM', @Document = N'Nokia6260Slide.pdf', @IsPersonal = 1, @sid = 249

 Its basically adding the params twice like above(AS YOU CAN SEE above @doc is the same as @Document and @do the same as @DisplayOrder etc..

Anyone with more updates on this...

The type 'System.Web.UI.ScriptManager' exists in both 'System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll' and 'System.Web.Extensions\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll'

Using VS.NET 2005 i was on a project and tried using the TABS in AjaxControl kit
I was sure the version was 1.0.61025.0 but anytime i compile the project i get the error :

The type 'System.Web.UI.ScriptManager' exists in both 'c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll' and 'c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll'   

I did all i knew to add the right TAGS in web.config but with no luck. Funny enough i could get the page to load on my local server but not on production when i deploy it.
I later created another project using VS.NET 2008 with the same setup and looking at the web.config noticed there was other tags that was included that wasn't in the previous project e.g

<runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
            </dependentAssembly>
        </assemblyBinding>
    </runtime>

The Solution:
After i added these tags above  to the web.config before the end tag </configuration>
It worked like a charm

Enjoy and save your time

Ajax - Request for the permission of type 'System.Web.AspNetHostingPermission,

To resolve this issue, you must change your development machine .net security configuration since you are accessing items across the network.
In the event that you need this ability at runtime, you must change the trust level in your config file to full.

However, since this is only in development, I can change my local PC's security by going to Start > Control Panel > Administrative Tools > Microsoft .NET Framework 2.0 Configuration.

After it fully loads (sometimes takes a bit), fully expand My Computer in the navigation tree and click Runtime Security Policy. In the right hand pane, choose Adjust Zone Security.

Leave the default option (Make changes to this computer) and hit next. Choose Local Intranet and change the trust level to Full Trust.
Then choose next and then finish. Restart Visual Studio 2005 and you should be all set.

Hope that helps

FAQ - SSIS Information, Webcasts, Tools, Add-ons, etc...

Some useful SSIS stuff:-

Enjoy

Failed to open package file "Package.dtsx" due to error 0x80070005 "Access is denied." SSIS 2008

I have a SSIS package that loads data from a Sharepoint List using s Sharepoint List Source component.
When i run the package from V.S NET it works well and the data destination is to a sql table.

But when i create a job for it and schedule it i get error:
Failed to open package file "Package.dtsx" due to error 0x80070005 "Access is denied."

I spent time looking at the history of the job and all i could see is that the job failed saying  it was was invoked by me but i noticed its been executed by another USER :(

After pulling out my hair and making sure i granted the acct running Sql server agent admin access but still didn't work.
I later came across PROXIES you can find them under the Sql Server Agent Folder

There s also a a Proxy tutorial here.

After i configured the proxy and used it to run the job as specified in the articles above. The job worked like a charm:)
** Remember you have to create credentials first before you see them when creating a job.To do that just go to your root folder in SQL SERVER Management Studio and right click > Security > New > Credentials.

Hope that helps and keep integrating


No report servers 2008 found - Invalid Namespace

I decided to install sql server 2008 and all went well suprisingly
But after trying to connect to Reporting Services 2008 and tried running Reporting Services Configuration Manager
I get error :"No report servers were found. Details: Invalid namespace"
Below is a solution i was from one of the MSDN posts:

Steps to modify the ReportingServices.MOF file to fix this issue:

 

1.       Locate the existing MOF file (example: %ProgamFiles%\Microsoft SQL Server\MSRS10.SQL2008\Reporting Services\ReportServer\bin\reportingservices.mof would be the default location for a Reporting Services instance named SQL2008).

2.       Copy this reportingservices.mof to reportingservicesalt.mof (or some other unique name).

3.       Notepad reportingservicealt.mof

4.       Choose edit->replace…

5.       In the dialog, in the Find What: text box enter the modified instance name (for an RS instance named SQL2008, the modified instance name is RS_SQL2008), in the Replace with: text box enter the instance name unmodified (so for an RS instance named SQL2008, just enter SQL2008).

6.       Press the Replace All button.

7.       Save and close notepad.

8.       From a command window at the same location as the results of step 1, type MOFCOMP REPORTINSERVICESALT.MOF (or whatever the name from step 2 was).

 

Now the configuration tool should work with the following exception, if the RS instance name contains an underscore (_), a dollar sign ($) or a hash (#), then step 8 will fail and the user will need to re-install the Reporting Services instance with a name that does not include any of these three characters.


There is  also a detailed solution here and it works.
Enjoy

The request failed with HTTP status 401: Unauthorized.Sharepoint Web Services

Hi,

I was gettng this error when trying to call the Sharepoint's webservice from my asp.net page.

The resolution for this is putting the following code in the web.conig.

i.e. enable impersonation in your web.config and deny anonymous access in IIS

<identity impersonate=”true”/>

Hope this helps

Report Services report manager Blank Screen - On Windows Vista

I tried loading up my Reporting Services 2005 on my visra machine today via url:
http://localhost/reports/Pages/Folder.aspx

And  it loaded up blank which i means i couldn't see my Report Folders and DataSources etc but i ccould see the menu like home,my subscribtion etc..

So i taught let me give the Report Server a try at http://localhost/ReportServer and i go an error insufficent permission

I was too sure it was a permission issue so i checked IIS and made sure Windows Auth was enable and Anonymouse access was disabled for the virtual directories Reports and ReportSever.

But still no luck.Also made sure the ReportManager and the Reports folder had the right access.

But i remembered  that with vista even when loading Visual Studio its always better to right click and RUN AS ADMIN unless you won't get anything.So i did the same for Internet Exploer and loaded the Reports page and it worked.

I later found james blog that explained in detail and shows how you can access it without running as admin.

Hope that helps

 

 

The temp directory in chart handler configuration is not accessible

I came across Microsoft Chart Controls for Microsoft .NET Framework 3.5
I think Microsoft has made a good move on this and having looked at the samples and used it in a small project.
Its
See more here
One error i came across was : The temp directory in chart handler configuration is not accessible 
And what it is when you look in to your web.config  you will find this TAG in the appSettings:

<add key="ChartImageHandler" value="Storage=file;Timeout=20;Url=~/tempImages/;"/>

When you drag the Chart control into design mode it adds the tag above to the web.config and you shoud have a folder called TempImages.

You get the error when its trying to right or modify that folder and all you need is to give the folder the right access.

On my Vista machine i just gave  COMPNAME\Users write and modify access and bingo it worked
But i reckon you mght need to give IIS_WPG(COMP_NAME\IIS_WPG) access too maybe on other OS

Hope that helps and enjoy using the charts in your Apps

How to Grant Execute to all SQL Server Stored Procedures/Functions

When you create a database i'm sure you can grant users/roles access to stored procedures tables etc..
But if you inherit the sql database then you will need to find a solution

Unfortunately, with all of the security changes in SQL Server 2005, no default role is available to execute all stored procedures in a given database.Quite sure the same applies to SQL SERVER 2000.

But there is a solution looking at the script below:

Just pass in the loginname below to the stored proc

CREATE PROCEDURE spGrantExectoAllStoredProcs @user loginname
AS


SET NOCOUNT ON

-- 1 - Variable declarations
DECLARE @CMD1 varchar(8000)
DECLARE @MAXOID int
DECLARE
@OwnerName varchar(128)
DECLARE @ObjectName varchar(128
)

-- 2 - Create temporary table
CREATE TABLE #StoredProcedures
(OID int IDENTITY (1,1),
StoredProcOwner varchar(128) NOT NULL,
StoredProcName varchar(128) NOT
NULL)

-- 3 - Populate temporary table
INSERT INTO #StoredProcedures (StoredProcOwner, StoredProcName)
SELECT u.[Name], o.[Name]
FROM dbo.sysobjects o
INNER JOIN dbo.sysusers u
ON o.uid = u.uid
WHERE o.Type = 'P'
AND o.[Name] NOT LIKE
'dt_%'

-- 4 - Capture the @MAXOID value
SELECT @MAXOID = MAX(OID) FROM #StoredProcedures

-- 5 - WHILE loop
WHILE @MAXOID > 0
BEGIN

-- 6 - Initialize the variables
SELECT @OwnerName = StoredProcOwner,
@ObjectName = StoredProcName
FROM #StoredProcedures
WHERE OID =
@MAXOID

-- 7 - Build the string
SELECT @CMD1 = 'GRANT EXEC ON ' + '[' + @OwnerName + ']' + '.' + '[' + @ObjectName + ']' + ' TO ' +
@user

-- 8 - Execute the string
-- SELECT @CMD1
EXEC(@CMD1
)

-- 9 - Decrement @MAXOID
SET @MAXOID = @MAXOID - 1
END

-- 10 - Drop the temporary table
DROP TABLE #StoredProcedures

SET NOCOUNT OFF
GO


Also the stored procedure will only grant privileges to stored procedures and not stored functions.  To grant to both types change section 3's insert from:
INSERT INTO #StoredProcedures (StoredProcOwner, StoredProcName)
SELECT ROUTINE_SCHEMA, ROUTINE_NAME
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_NAME NOT LIKE 'dt_%'
AND ROUTINE_TYPE = 'PROCEDURE'

 to:

INSERT INTO #StoredProcedures (StoredProcOwner, StoredProcName)
SELECT ROUTINE_SCHEMA, ROUTINE_NAME
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_NAME NOT LIKE 'dt_%'
AND DATA_TYPE <> N'TABLE'
AND ( ROUTINE_TYPE = N'PROCEDURE'
OR ROUTINE_TYPE = N'FUNCTION')




Error:Unable to load client print control

When you click the print button from the ReportViewer control (Sql Server 2005)you get the
error: Unable to load client print control
I never had this issue with ReportViewer control (Sql Server 2000).
After doing some research it came out that there were many solutions to this depending on your environment.

1) Installing the RSClientPrint.Cab  which can be found in the program Files\MSSQL Server\Reporting Services\ReportSerer\bin\.. folder.
But with this you would have to deploy this cab to all the clients.. hmm...


2) The second solution is to remove some security updates from > Control Panel > Add/Remove software but make sure the 'Show Update' checkbox is checked. Look for security updates 956803 and 956391 and remove them.
And that sould do the trick too..

3) I reckon the this last option is the way to go .
Just go and download : Security Update for SQL SERVER SP2
After installation it worked like a charm

 

Feature 'ID' is not installed in this farm, and can not be added to this scope.

I wanted to install one of the 20  Admin Templates for WSS v3.
I was only interested in the in the HelpDesk Template. So i went and downloaded the help desk templates and added the solution.
When i tried  deploying the solution i get the error:

A feature with ID 75a0fea7-97c5-4487-88e4-70fde8f79b25 has already been installed in this farm
Use the force attribute to explicitly re-install the feature.

So i tried deploying it using the -force option and the error went a way.So i was happy

But anytime i go back and try to use the template to create a help desk site i first get error : the websites blah blah already exists.
And when i try a new name i get :

Feature '75a0fea7-12fe-4cad-a1b2-525fa776c07e' is not installed in this farm, and can not be added to this scope.

After knocking my head on my desk i knew i need to take a look at MSDN and i must be missing something.
Looking a the sharepoint team blog i found a useful instruction thanks guys

And it says before you
install a server admin Application Template you first need to first install the Application Template Core solution, ApplicationTemplateCore.wsp.

So i went back and removed the HelpDesk.wsp added the ApplicationTemplateCore and later added the HelpDesk.wsp back.
And bingo it worked.

But a question for the Sharpoint Team why did you do it that way?

Error :- Application 'Search', Catalog 'index file on the search server Search'

The Network admin guys did some windows patch update on the WSS v3 - OS - Windows 2003 server
Until after logging on to the site tried doing some searching and Oops no search results returned

  1. So i taught sure the services has stopped or i have to restart the service but after checking the services on the OS and the
    Sharepoint Central Admin everything thing looks ok. Well its time to look for a fix

    So what next and where to start .
    First was this Microsoft Support site: but didn't solve the problem.
    They were also solutions saying i should restart the search service.But also didn't work. Some posts said it worked for them so its worth trying
  2. I also made sure i went to my Sql Server 2005 > Security > Logins > Made sure my Service account and the content access (domain accts e.g mydomain\WSSSearch )have min dbreader access to the WSS_Content and WSS_Search database.Still no luck

  3. Until i found this Ivans' blog(thx Ivan) that recomended changing the Service Account username and password to match the Content Access Account details  from the Sharepoint Central Admin > Opertations > Services on Server. Click OK on the bottom of the page and wait five minutes. and bingo it worked
     Keep Sharepointing


The SQL Server Service Broker for the current database is not enabled -when using SqlCacheDependency

I was in the process of using SqlSiteMapProvider class today by jeff which is a new feature of ASP.NET 2.0 and i have always wanted to try this out
My main goal is to have a database driven site navigation interface with a securitytrimming feature which i know is possible

But after running the sql script to insert some sample tables to the DB and setting upt the project in VS 2005.
Ran F5 to run a sample page  and bingo error:

The SQL Server Service Broker for the current database is not enabled

After doing some search i saw a post that said you just have to run the below from query analyzer:

ALTER DATABASE DatabaseName SET ENABLE_BROKER;

But the query kept running for minutes and never stopped.So i taught there must be some conflicts.
So i started looking for a way to force the close off conflicting sessions.

So i ran
ALTER DATABASE DatabaseName SET NEW_BROKER WITH ROLLBACK IMMEDIATE;
and then
ALTER DATABASE Databasename SET ENABLE_BROKER;

and then the query ran successfully

make sure you run:

SELECT is_broker_enabled FROM sys.databases WHERE name = 'DatabaseName'

to get the correct value : is_broker_enabled = 1

Hope that helps

 

«July»
SunMonTueWedThuFriSat
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678