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

Top 5 Contributors of the Month
Post New Web Links

Filestream : either a required impersonation level was not provided, or the provided impoersonation

Posted By:      Posted Date: September 22, 2010    Points: 0   Category :Sql Server
We are using filestream (SQL2008) from a console application.
This works if the console application runs on the sql-server itself, but we receive the error 'either a required impersonation level was not provided, or the provided impersonation level is invalid' if the console application runs on another server.

Does anyone know how to solve this ?


View Complete Post

More Related Resource Links

Ready made List Types provided by SharePoint

SharePoint provides some out of the box List Types. Some of the most used ready made list types that SharePoint provides currently are listed below:

SSRS - Where are the Sharepoint Report Usage Reports provided by Microsoft



Microsoft provided 3 example reports for Sharepoint report usage. Does anyone know where they are located? I used them about 2 years ago.




WCF Service in VS.Net 2010 (provided as the Service attribute value in the ServiceHost directive)

Hi,   I'm building my first WCF Service in VS.Net 2010 RC on a Win7 Ent 64. But when I launch my Service (ASP .Net Development Server) for debug and click on the .svc file, I get following error :   The type 'Systemat.Software.Services.PopsyWS.PopsyWebService', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.   My Project is in the namespace "Systemat.Software.Services.PopsyWS", Assembly Name is "PopsyWebService",Service Name is "PopsyWebService" derived from "IPopsyWebService". All compile options are set on x86. My code behind is in the file PopsyWebService.svc.cs My svc file has <%@ ServiceHost Language="C#" Debug="true" Service="Systemat.Software.Services.PopsyWS.PopsyWebService" CodeBehind="PopsyWebService.svc.cs" %> I also tried PopsyWebService.PopsyWebservice with the same result (stating Type 'PopsyWebService.PopsyWebservice' was not found offcourse) Pretty sure on of those two is the correct one but neither of them work. Other posts talk about problems with the GAC but I don't think this has anything to do with my problem.   A new empty (example) project of a WCF Service works correctly so it's a project

The values provided for the root activity's arguments did not satisfy the root activity's requirem

I have flowchart as implementation  of activitybuilder and added two dynamicactivityproperty to it. The flowchart is having flowdecision and 3 other customized activities with same defined arguments. But when i invoke the workflow and pass dictionary, it gives the error: The values provided for the root activity's arguments did not satisfy the root activity's requirements: 'Sample Workflow': The following keys from the input dictionary do not map to arguments and must be removed: FolderName, FolderSize.  Please note that argument names are case sensitive. Parameter name: rootArgumentValues Flowchart       fc = new Flowchart();  protected override void OnInitialized(EventArgs e) { wd.Load(new ActivityBuilder { Implementation =  fc});             ModelTreeManager mtm = wd.Context.Services.GetService<ModelTreeManager>();             ModelItem ab = mtm.Root;             ModelItemCollection argsAndProperties = ab.Properties["Properties"].Collection;                     InArgument<string> foldername = new InArgument<string>();    &n

WCF and certificates : "The client certificate is not provided."

Hi,I'm having a hard time to get certificates working with my WCF application and I keep getting the error: "The client certificate is not provided. Specify a client certificate in ClientCredentials."I am using a free trial certificate by Verisign and I have done the following things on a local XP Pro machine:VeriSign Trial Secure Server CA - G2 certificate is installed in the Personal => CerficatesVeriSign Trial Secure Server Root CA - G2 certificate is installed in the Trusted Root Certification Authorities => CertificatesI am using the following kind of binding configuration settings: *** Client web.config ******<binding name="CertificateBinding" maxReceivedMessageSize="4194304">          <security mode="Message">            <message clientCredentialType="Certificate" />          </security>        </binding><endpoint address="http://localhost/MyWcfApplication/Service1.svc"        binding="wsHttpBinding" bindingConfiguration="CertificateBinding"        contract="ServiceReference1.IService1" name=&qu

How to develop WCF services and host them only using WSDL and schemas provided by client(consumer)?

Hi,I am new to WCF. I have just gone through sample calculator service examples and have very hazy understanding of WCF. I have one requirement  where i need to develop WCF services. I have been provided with WSDL and SCHEMAS and has been asked to develop WCF services part.The client part is ready and they need us to write webservices so they can consume it. Can anyone please xplain how could i begin with and from where ? Also what are schemas (XSD's) used for ? Also how would I make sure that after building webservices I have hosted the webservices in such a way that other people in our network could access them ?I have read forums where you have webservices  but need to write clients which can consume it, but not sure how to approach the above requirement. Any help would be greatly appreciated. Please explain it considering I AM NOVICE/BEGINNER.  Thanks

Express 2008 R2 w/ Advanced Svcs - what BIDS capabilities are provided?


I have BIDS on my desktop as the result of a Visual Studio 2005 Professional installation.  Neither the VS 2008 nor the VS 2010 installs included an update to the BIDS dev. environment, so I'm trying to find out if there's been any update to BIDS and what the SQL Express with Advanced Services brings to the table.

Microsoft's product pages say that it includes BIDS, but is it the VS 2005 version or something newer?  See the Development Tools table at this link:      http://msdn.microsoft.com/en-us/library/cc645993.aspx


The media set has 2 media families but only 1 are provided.


I made a backup of my database from ServerA (SQL 2000) and trying to restore it to ServerB (SQL 2005) and get this error below, even after configuring the log and data paths for the restore:


TITLE: Microsoft SQL Server Management Studio

Restore failed for Server 'serverbname'.  (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Restore+Server&LinkId=20476


System.Data.SqlClient.SqlError: The media set has 2 media families but only 1 are provided. All members must be provided. (Microsoft.SqlServer.Smo)

For help, click:

Required Permissions for SQL Server 2005 DB and Impersonation

I have an Intranet ASP.NET WebForm application that uses Integrated Windows authenication and Impersonation (required becuase triggers are used to create audit logs) to connect to a SQL Server 2005 DB on the same box (no double hop issues). Normal users get their DB permissions via the <Domain\Domain Users AD group, which has a SQL Server login and a user created for the DB.  Everything works fine when I explictly grant the associated DB user CONTROL permissions on the DB.

However, after doing more research on the actual permissions granted via CONTROL, this seems to be way too much access.  The best decription of the CONTROL permission I found was at http://www.mssqltips.com/tip.asp?tip=1718, which states, "This grants the equivalent to ownership over the database. The db_owner fixed database role has this permission implicitly."  However, every other DB permission combination I've tried without granting CONTROL always fails to connect to the DB.  Impersonation is working, the correct accessing Domain/User is referenced in the error message.  The approriate User in the DB is in the db_datareader and db_datawriter roles and when I explictly grant them every single permission on the DB except CONTROl they fail with a "

The type 'ServiceLib.Web.REST', provided as the Service attribute value in the ServiceHost directi


After publishing a simple web service, I encounter the following err when accessing it via the browser, like:


in the IIS I also created one virtual application named "Web" which contains the following files:
so, the structure under localhost is like:
http://localhost/bin/xxx.dlls (the web services files)
/web /REST.svc & web.config file (this is the virtual application folder)

I wonder what's wrong, thx for helping me. I guess it's an IIS problem since web service was accessable before, but now it's not Sad I don't know where the problem is. who can tell me ?

Server Error in '/Web' Application.

The type 'ServiceLib.Web.REST', provided as the Service attribute value in the ServiceHost directive could not be found.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

How to create SQL Database Backup on a remote machine through Backup Class provided by C#?


I need to take SQL database backup on a remote machine through C#. I am using Backup Class provided by Microsoft.SqlServer.Management.Smo namespace.

When I call SqlBackup function of Backup Class I get the following error:

Cannot open backup device '\\WKS-123\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\CalDBServer.bak'. Operating system error 53(The network path was not found.).
BACKUP DATABASE is terminating abnormally.

I have already shared folder \\WKS-123\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\ with "Full Control" permissions.

Please let me know if anybody has any idea regarding the error.





Invalid SPListItem. The SPListItem provided is not compatible with a Publishing Page.


I am trying to display .swf [flash] in a publishing web part page. I am able to see my flash after applying the properties to web part.

When I am trying to check in I get:

"Invalid SPListItem. The SPListItem provided is not compatible with a Publishing Page."

Log says:

System.ArgumentException: Invalid SPListItem. The SPListItem provided is not compatible with a Publishing Page.    at Microsoft.SharePoint.Publishing.PublishingPage.GetPublishingPage(SPListItem sourceListItem)     at Microsoft.SharePoint.Publishing.Internal.WebControls.PublishingPageStateControl.RaisePostBackEventForPageRouting(String eventArgument, SPRibbonCommandHandler control, RaisePostBackEventDelegate raisePostBackEventDelegate)     at Microsoft.SharePoint.Publishing.Internal.WebControls.PublishingPageCheckinHandler.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Please suggest.



Unable to "upgrade" SQL 2008 Enterprise to Standard Edition - Error: the credentials you provided fo


I already tried changing the logon account for SQL services and still receive the error.

Please help.

A windows identity that represents the caller is not provided by binding basichttpbinding


I followed the article found here http://msdn.microsoft.com/en-us/library/ms730088.aspx and added Impersonation:=.... (found under Impersonation in a Service Method: Declarative Model). When i try to update my service reference (from the client), i receive the error ".......a windows identity that represents the caller is not provided by binding (basichttpbinding, http://Tempuri) for contract PRoj.Contract".

I searched on this error but couldnt resolve. I am using Win7 hosting it locally on IIS. I set the identity on my apppool to Network Service. My web.config file reads as

<?xml version="1.0" encoding="UTF-8"?>

Row provided does not belong to this DataGridView control. Parameter name: dataGridViewRow


I am trying to delete a Multiple rows from database through datagridview. some more information about coding is "data as Dataset" & "adap as TableAdapter" & "Group is my Table Name". I am using Visual Basic 2008 express edition with sql server 2008 Express Edition with Management Studio. I created the .mdf file in Mangement studio and i connected this file directly to the project. My opreating System is WINxp Proffessional. Now my code is given below:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
For Each Row As DataGridViewRow In GroupDataGridView.SelectedRows



  End Sub

while using this code i can delete only one row but when i am trying to delete 2 to 3 rows on one time then it shows me this error Row provided does not belong to this DataGridView control. Parameter name: dataGridViewRow.

My virtual mode is on False

How to resolve this problem please help me out


Naveesh Gupta



How to search grid results based on user provided values?


I would like a user to be able to enter some criteria in a search box and then have them click on a search button to filter the data using a "contains" logic and not an exact match.

 Anyone know if this is possible?

I have downloaded the DynamicFilterRepeater and that works well, but you end up with one search box per colulmn...I would like to have one search box that columns could subscribe to and that would be filtered automatically.

Not sure how to go about doing something like that...I'm still quite new to DD and I am still trying to get a grasp on the basic stuff.


FileStream configuration error (Msg 5135, Level 16)



i'm trying to setup FileStream on my existing DataBase.

I'm using SQL Server 2008 R2 and Windows Server 2008 R2. They are both installed on my primary disk. FileStream is enabled.

The code i'm using:


and then when i try to execute this code:

          ADD FILE
                   (NAME = FS_FILESTREAM,FILENAME = N' C:\TEST_FS'

i get error:

Msg 5135, Level 16, State 2, Line 1
The path 'C:\TEST_FS' cannot be used for FILESTREAM files. For information about supported paths, see SQL Server Books Online.
Msg 5009, Level 16, State 14, Line 1
One or more files listed in the statement could not be found or could not be initialized.

My SQL Server is using Log On as built-in account Network Service. I tried giving that account write permissions and it still doesn't work.

Could someone help me?


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