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

Post New Web Links

Problem with permissions

Posted By:      Posted Date: September 15, 2010    Points: 0   Category :Sql Server
I've been running SSRS with an administrator account during development.  Now I am trying to deploy it for users.  I have a Domain group, SQL Users, that I've added to Report Manager.  I've given the group the following roles (same as the administrator account I use to run reports): Browser, Content Manager, My Reports, Publisher, Report Builder. When a SQL User tries to run a report they get:  An error has occurred during report processing. (rsProcessingAborted) Query execution failed for data set 'Division'. (rsErrorExecutingCommand) For more information... What permissions am I missing that is preventing the user from accessing data from the datacube?

View Complete Post

More Related Resource Links

Problem with Permissions on SQL 2005

I don't even know if my title is a fair explanation of my problem, sorry if it isn't. We are on a network using AD, probably a very typical scheme. My SQL Server is 2005 on a Server 2008 Enterprise machine. My boss had written for him a VBS which will prompt the user for the server name, then Database name and the upload a specific CVS into the proper SQL tables. As a user who is a member of the AD Administrator group, I can run the script no problems. However  the person who needs to run this script on a regular basis gets an error in a "Windows Script Host" dialog box. The error is "Microsoft][ODBC SQL Server Driver][SQL Server] Login failed for user 'CC\maurice'." I thought it may be how the SQL drivers are setup on his machine, but when I log in through his computer, I can run the script fine. Is this a setting my SQL server, or is it actually an AD issue I am dealing with?   Thanks for reading.

Is This only a Permissions Problem?


Hi all,

A complete newbie to SSIS. I'm trying to load two columns of data from an Open VMS file into a SQL Server 2005 table. I'm using an OLE DB source (I can "Preview" and see the data), a data conversion where I convert the two source columns to an output datatype of: Col1 - Unicode String [DT_WSTR] Len 20 and Col2 - Unicode String [DT_WSTR] Len 16. I have a SQL Server destination where the two columns are mapped to table columns of nvarchar(20) and nvarchar(16) respectively.

I am able to execute the package and move the data into a flat file destination on my local computer, but I cannot put the data into the SQL Server table on our dev server. I have full permissions on the destination database and I have created the destination table; however, I get the error below. My question is, is the error related to permissions on the dev server?

Any thoughts will be much appreciated. Here is the error:

[SQL Server Destination [400]] Error: An OLE DB error has occurred. Error code: 0x80040E14. An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80040E14  Description: "Could not bulk load because SSIS file mapping object 'Global\DTS

Having Trouble deploying first report, I think it is permissions problem


I think I got SSR installed ok.  From the Configuration Manager when I click on Web Service URL and Report Manager URL, IE opens and returns the correct pages.  I see report manager screen etc.

In BIDS I created a solution and a report that previews fine.  The properties page of the solution has a targetServerURL the same as what is in the Configuration Manager, web service URL tab; " http://IMB-T22:8080/ReportServer ".  IBM-T22 is the name of my computer.  8080 is the port it is using.  Port 80 is used by IIS and not running.

The TargetFolder was created ok...AdventureWorks, but the report does not deploy correctly.  If I deploy it times out.  If I debug I get I get the name of my report can't be found or a permissions error. 

In the solution property page I have tried various differnt TargetServerURLs..Localhost/ReportServer...ibm-t22/ReportServer...ibm-t22:8080/ReportServer...Nothing seems to work.  Please help

I belive I am having permissions problem.  I can connect to database from BIDS and preview data in my report.

When I installed SQL Server 2008 SR2, I used an account name "NT Authority/Sytem"   I used this because it was in drop down and was having problems with "Owner"

In Reporting Services Configuration Manager I have the foll

Problem with permissions, not sure what to do


HI I have some codes that worked on my local but when I published to the server I am getting this error message, any help at all would be great!

Server Error in '/CaretechUserMngmnt' Application.

The DELETE permission was denied on the object 'Client-Users', database 'SECURITYDB', schema 'dbo'.

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.

Exception Details: System.Data.SqlClient.SqlException: The DELETE permission was denied on the object 'Client-Users', database 'SECURITYDB', schema 'dbo'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


WCF Permissions Question / Problem


I am attempting to write my first WCF Application and am experiencing trouble when trying to pull data from a Visual FoxPro Table.  Before you cringe and quit reading, I know the problem is a permissions one.  I can debug this code on my development PC but when I put it live it simply doesn't work.

I had this same problem implementing ASMX services.  Since the provider for the VFP tables is 32 bit and the server is running on a 64 bit server (Windows 2008 R2 - IIS 7.5) I had to force those services to run 32 bit and all worked fine.  However I've tried this same thing with WCF Service and that doesn't seem to work.

Yes - I'm using impersonation.  And, I can run parts of the service that DO NOT attempt to open 32 bit OLEDB Providers.

I am developing in VS 2010.  Anyone have any ideas?

Problem to group radio button across gridview rows

In general no one can easily group or make a single selection from radio button list inside gridview rows. There are a lot of way to make a single or unique selection from list. Here i want to share how i can address this problem in the most easiest way. Googling the problem most of the cases i saw the grouping in horizontal way. Thats why i tried to group the radio buttons in vertical manner. Let i have a requirement like below:

Regrading Sharpoint 2010 problem and solutions

We can write your question and problem on this blogger.you get ans.use.

This sharpoint 2010 problem solving threads

Hi friend,

you can use this thread to solving problem and solutions.

Virtual Path Problem


 I get the following error on last line below (working on remote host): 'E:\web\sfcascom\ls_admin/uploads/images/001.JPG' is not a valid virtual path,

Note that the slashes go in different directions

I've tried a number of things but nothing seems to work. Thanks-


Imports System.Drawing
Imports System.Drawing.Drawing2D
Imports System.Drawing.Imaging
Imports System.Web.UI.WebControls

Imports System.Drawing.Imaging.ImageCodecInfo
Partial Class Protected_imageupload
    Inherits System.Web.UI.Page
    Private Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click
        ' Initialize variables
        Dim sSavePath As String
        Dim sThumbExtension As String
        Dim intThumbWidth As Integer
        Dim intThumbHeight As Integer
        Dim sFilename As String = ""
        ' Set constant values
        'sSavePath = "images/"
        sSavePath = Server.MapPath("~/") + "ls_admin/uploads/images/"

        sThumbExtension = "_thumb"
        intThumbWidth = 160
        intThumbHeight = 120

        ' If file field isn?t empty
        If FilUpload.PostedFile IsNot Nothing Then
            ' Check file size (mustn?t be 0)
            Dim myFile As Http

Strange Photo upload problem


I'm working project it's live on shared hosting

we'er uploading photos to a file on the server everything works fine the photo is resized renamed and sent to the folder

the upload page returns the thumbnail and the full size photo it's there all the photos have to be approved by an admin

twice now after they have been approved they disapear I checked the folder they are not there could there be anywhere

on the server they could get hung up before they go into the folder I have it setup so when you delete the data base entry it deletes the photo from the folder othe than that you need to open the folder and delete the photo this has hapened twice now I tried to recreate it with no luck

thaks for your help in advance

ASP.Net Caching problem ??


I'm having a problem with an asp.net 3.0 application using a gridview to display data.  The problem seems to be that despite a brand new .selectCommand being sent to the sqlDataSource, the gridview starts displaying data from *someone else's* query.  For example, user A is logged in and will be working fine until a few page submissions later when the gridview data starts suddenly showing information that belongs to another user. 

This is my first asp.net application, though I've been working with classic asp and ADO for years so I'm used to sending a SQL string and getting back the results from that string.  Apparently there is a complex caching system which is interferring which I do not at all understand so at this point I just want to stop the server from caching any data whatsoever.  Is this possible?

Any and all help will be much appreciated!!

Could some one tell me whats the Problem with this String Manipulation ??? C#.net



I store some values from code behind to a label which is Hidden !

<asp:Label ID="lbl_Hidden" runat="server" Visible = "false"></asp:Label>

and at the page load event i retrieve the value of the label & assign it to a string !

stringvalue = lbl_Hidden.Text;

Now i dont know why this manipulation does'nt work !

I've a character 'A' in the string and i'm unable to replace it with a space !

stringvalue.Replace(A, " ");

Wot do u think abt it ????

RaiseEvent problem


I have a parent page ProdView.aspx and two static UserControls, UC1 and UC2. Each UC is in an Ajax accordion pane and the accordion inside an updatepanel.

UC1 has a Gridview footer with couple of textboxes and a link button that fires an Add Row insert procedure. I want to Raise an event that will rebind the UC2 after the row insert in UC1.

First I created the sub delegate and event in UC1:

  • Public Delegate Sub MyRefresh(ByVal sender As Object, ByVal e As CommandEventArgs)
  • Public Event Refresh_UC1 As MyRefresh

In the same UC1 the Insert procedure that fires the insert and RaiseEvent:

Sub PricingGrid_Insert(ByVal sender As System.Object, ByVal e As EventArgs)
       Dim myConn As SqlConnection = New SqlConnection(ConfigurationManager.ConnectionStrings("LocalSqlServer").ConnectionString)
       Dim myCom As SqlCommand = New SqlCommand("AddRow", myConn)
       myCom.CommandText = "AddRow"
       myCom.CommandType = CommandType.StoredProcedure


Gridview Enable Selection Problem



I have a gridview with Enable selection and Enable Paging equals to TRUE.

I also set the PageSize of my gridview to 4 so that I only displays 4 rows per page.

The problem is when I click the pager in the bottom of my gridview, my gridview is disappearing and no records appear.

Here is code behind of my gridview:

If e.Row.RowType = DataControlRowType.DataRow Then
                e.Row.Attributes("style") = "cursor:pointer"

                e.Row.Cells(2).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
                e.Row.Cells(3).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
                e.Row.Cells(4).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
                e.Row.Cells(5).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
                e.Row.Cells(6).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))

Problem making Role based Menu in MVC application



 I want to make Rolebase menu in MVC such that if user doesnot have permission for some action then that Action name shouldnot be shown in the Menu.

 I have used the code in the url(http://forums.asp.net/t/1566328.aspx) in my MVC application.My application is a Discussion Forum(in MVC) same functionality as in this forum forums.asp.net

 I have used Controllers for post, thread etc.In each controller there are some actions that are using [Authorize(Roles)] attribute

 but this coding does not count  those Actions in Controllers having Authorize attribute according to the url http://forums.asp.net/t/1566328.aspx 

 In the code, Authorize attribute is applied to Controller class, but my requirement is of Applying Authorize attribute to some actions in controller so that some are available for all users and  some links are available rolewise.Now what is the solution for that?



Problem upgrading to MVC3 - System.Web.Routing



I'm trying to upgrade to .NET 4 and MVC 3.

When trying to compile my project, I get the error:

Error 1 The type or namespace name 'Routing' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) C:\Users\spencer\Desktop\weblauncher\Common\MVCConfig.cs 4 18 Common

The type or namespace name 'Routing' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)

I do have the System.Web.Routing in my references for the project.

BUT - when I try to view System.Web.Routing in the OBJECT BROWSER, nothing is inside!  The System.Web.Routing namespace is not in there - the entire thing is empty!  Could it that the dll is corrupted?  I tried to reinstall the .NET 4 and MVC 3 stuff, but its still empty!

The dll is coming from here:

C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Web.Routing.dll

and the runti

Embed Youtube inside Ajax Html Editor- problem



When inserting a simple embed of youtube inside the ajax editor, on firefox and chrome problems occur. On the other hand on internet explorer 8 everything works fine. I found this solution http://www.nopcommerce.com/boards/t/4228/bug-in-ajax-html-editor.aspx . 

My question is where do I find the DesignPanel.pre.js ?


Roderick Vella

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