Showing posts with label aspx. Show all posts
Showing posts with label aspx. Show all posts

Thursday, March 22, 2012

Accessing AS 2005 from ASP.NET application

I have an asp.net application. This application provide consolidated information to the user using Analysis Services 2005.
Within it, one aspx page uses MDX query to retrieve the information from the cube. However, we are unable to access AS 2005 because of authentication issues. What would be the easier to implement and deploy scenario?

How can I access AS 2005 from an ASP.NET application? Is there any feature to use?

Create Views and CTE( common table expressions ) with the results of the MDX queries and render the Views and CTEs in DataGridview controls. That means you are just calling Views query rewrites one persisted and the other in memory or virtual views in Asp.net. This keeps Analysis Service operation out of the Asp.net page life cycle. Hope this helps.

Accessing analysis services from asp.net application

I have an asp.net application. This application provide consolidated information to the user using Analysis Services 2005.
Within it, one aspx page uses MDX query to retrieve the information from the cube. However, we are unable to access AS 2005 because of authentication issues. What would be the easier to implement and deploy scenario?
1) Using kerberos
2) creating a webservice with some Identity to access AS 2005 and using an agent in the application;
3) some other mechanism.

Has AS 2005 come up with some mechanism to allow easy access from web applications (just like sql server authentication in SQL 2005). Is there any feature that we could use? What about anonymous access?

The closest thing we have with AS and sql logins, is http access. Using http access you can set a uid and pwd on the connect string and then the system will use those to authenitcate you against IIS (where the AS server is). This allows your ASP.NET application to use a canned account to access AS. See the connection string parameters allowed on ADOMD.NET (which is what you should be using as a managed provider for your ASP.NET application).

_-_-_ Dave

|||And how do you implement AS role-based security in this scenario?
If you use a canned account to access AS, you cannot match you users with an AS role.
Am I missing something ?|||You didn't say that you wanted to use role-based security, so I gave you a general answer. There are two issues here:

1) getting basic connectivity. If the IIS / ASP.NET machine is in a common domain then you can connect using normal NT authentication (run the virtual directory anonymously and do your own authentication within the application) -- have the anonymouse user for the vd to be a common domain account with the AS server and ensure that it is an Analysis Services sysadmin. If not in a common domain, then use http connectivity and specify an NT UID/PWD which is an AS sysadmin.

2) Once you are connected as an AS sysadmin, then you can use the new EFFECTIVEUSERNAME to set the appropriate username for the connection. Then BINGO there you are.

Hope that helps.

_-_-_ Dave

Tuesday, March 20, 2012

AccessDataSource and stored querydefs

- i have been connecting to an mdb stored in the App_Data folder with AccessDataSource controls on .aspx pages.

- i was using stored queries in the mdb as the data sources without a problem. all of the queries were stored as views and were easy to find and configure to the AccessDataSource.

- i recently opened the mdb on its own to update and rename some queries and also add some new queries (knowing i would have to redo the data source configs, gridviews and dropdown lists, etc. on the .aspx page(s))

- but now a lot of the mdb queries are stored as functions and i can't use them as a data source. or can I?

- why are so many of my mdb querydefs now stored as functions, and how can i turn them back into views so i can easily connect to them, or am i missing something?

I'm an utter n00b, but I stumbled into the same thing, queryviews turning into functions, when I set something to RUN inside of access 'maketable query' or something to that effect. It shifted the qryMyquery from a view to a stored procedure, and created a new table instead.

Don't know if that'll help or not.

AccessDataSource and stored querydefs

- i have been connecting to an mdb stored in the App_Data folder with AccessDataSource controls on .aspx pages.

- i was using stored queries in the mdb as the data sources without a problem. all of the queries were stored as views and were easy to find and configure to the AccessDataSource.

- i recently opened the mdb on its own to update and rename some queries and also add some new queries (knowing i would have to redo the data source configs, gridviews and dropdown lists, etc. on the .aspx page(s))

- but now a lot of the mdb queries are stored as functions and i can't use them as a data source. or can I?

- why are so many of my mdb querydefs now stored as functions, and how can i turn them back into views so i can easily connect to them, or am i missing something?

I'm an utter n00b, but I stumbled into the same thing, queryviews turning into functions, when I set something to RUN inside of access 'maketable query' or something to that effect. It shifted the qryMyquery from a view to a stored procedure, and created a new table instead.

Don't know if that'll help or not.

Saturday, February 25, 2012

Access SQL Server 2005 database using a published website

Hi all,

I am stuck with a problem using ASP.Net website. I created a website which accesses a database table in SQL Server 2005. The default.aspx is a form which inserts/updates/deletes data from the database. After creating the website I published it to IIS (Inetpub -> wwwroot). When I use Visual Studio 2005 and build the website and start with debugging. the form comes up and i can insert/update or delete the data from the table as I want. Now, as I have the website published I can access the form from another sharepoint website using the url as

/Employee_Data/Default.aspx">http://<mydesktop>/Employee_Data/Default.aspx

the form shows up but I am not able to access any of the database. I do not see any errors either. Once I click on the button the page just refreshes but nothing else happens. I have my web.config as :-

<?

xmlversion="1.0"?>

<

configuration>

<

appSettings/>

<

connectionStrings/>

<

system.web>

<

compilationdebug="true"/>

<

authenticationmode="Windows"/>

</

system.web>

</

configuration>

Am I missing something? Ieven have Anonymous access in the IIS inetpub properties. I can even the database as I am the administrator.... I appreciate your suggestions.

Thanks,

Kavya

Can you post your connection string as well as SQL commands? Can you connect to the SQL Server from the machine (on which you can access the published website) via Management Studio?

access rs reports through .aspx

I'm not sure of what i should do to come up with a web site that allows the
users to access the reports that are in my reportserver, I would like to
know a step by step instructions on how to access my reports using asp.net
web application.
Is my problem has anything to do with configuring consoles or xml log files?
Will I have to make a coding that will look for server/ virtualroot/
pathinfo prefixes.. and where and how will i make one?
I am really confused on which or what should i do to access my reports
through aspx application ..
Please guide me..
--
~SiMPLe~You need to decide if you are going to integrate using URL integration
(easiest and fullest featured) or web services (harder but complete
control). Is this an intranet or internet. If internet where you don't want
the user to have access to your server then you would have to use web
services. If URL integration then the best thing is to first understand the
URL that you need to create. Make sure you can create the URL (even just
typing it in from IE) and that you can pass parameters. Once you can do that
then you can control the other aspects of it. I tend to create the URL for
Jump to URL which is a little different (RS automatically fills in the
server name so I don't have to deal with it).
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Alex" <alex@.interpac.com.ph(donotspam)> wrote in message
news:C9A32654-7806-402D-B709-9D7289DC9889@.microsoft.com...
> I'm not sure of what i should do to come up with a web site that allows
> the
> users to access the reports that are in my reportserver, I would like to
> know a step by step instructions on how to access my reports using asp.net
> web application.
> Is my problem has anything to do with configuring consoles or xml log
> files?
> Will I have to make a coding that will look for server/ virtualroot/
> pathinfo prefixes.. and where and how will i make one?
> I am really confused on which or what should i do to access my reports
> through aspx application ..
> Please guide me..
> --
> ~SiMPLe~|||so i need to know how to intergrate my reports using web services.. because i
don't want my clients to see my server.. Can you tell me in details how
should i start making one? and also in the URL integration, you mean the
prefixes right? (rs.. rc.. ) I guess i'll also use the URL integration
inside my web service?
--
~SiMPLe~
"Bruce L-C [MVP]" wrote:
> You need to decide if you are going to integrate using URL integration
> (easiest and fullest featured) or web services (harder but complete
> control). Is this an intranet or internet. If internet where you don't want
> the user to have access to your server then you would have to use web
> services. If URL integration then the best thing is to first understand the
> URL that you need to create. Make sure you can create the URL (even just
> typing it in from IE) and that you can pass parameters. Once you can do that
> then you can control the other aspects of it. I tend to create the URL for
> Jump to URL which is a little different (RS automatically fills in the
> server name so I don't have to deal with it).
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "Alex" <alex@.interpac.com.ph(donotspam)> wrote in message
> news:C9A32654-7806-402D-B709-9D7289DC9889@.microsoft.com...
> > I'm not sure of what i should do to come up with a web site that allows
> > the
> > users to access the reports that are in my reportserver, I would like to
> > know a step by step instructions on how to access my reports using asp.net
> > web application.
> > Is my problem has anything to do with configuring consoles or xml log
> > files?
> > Will I have to make a coding that will look for server/ virtualroot/
> > pathinfo prefixes.. and where and how will i make one?
> > I am really confused on which or what should i do to access my reports
> > through aspx application ..
> > Please guide me..
> >
> > --
> > ~SiMPLe~
>
>

Friday, February 24, 2012

access problem

Hi,

The Report Server and the server hosting web application are differrent. I have an aspx page with the reportviewer control. If I try to open the page with the report control its giving me a message

privilages for the user 'domain/server$' are insufficient for performing this operation". where the 'server$' is the IIS server hosting webapplication.

Please help me in solving this

put Domain Administrator as a full user with all access permissions on the report server (Actually in the properties of the report)