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


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

Does RBS work for SQL Authentication?

Posted By:      Posted Date: September 03, 2010    Points: 0   Category :SharePoint
 
I tried MS RBS provider sample, but seems it didn't work for Content DB wirh SQL Authentication, if the Content DB used the windows authentication, it works fine. I can find a error log from the event viewer application logs. "Login failed for user 'sa'. Reason: Password did not match that for the login provided." I also check the Microsoft.Data.SqlRemoteBlobs.dll's code, can find such code: Using (SqlConnection connection = new SqlConnection(base.Connection.ConnectionString)) { connection.Open(); …  ... } Seems Connection.ConnectionString will hide the user password, so the exception will occur in the code above. Is this a bug? ThanksLove life,Love work,Love World


View Complete Post


More Related Resource Links

MOSS Site with Basic Authentication and variations does not work on one node

  
Hi, We have one MOSS Farm with two nodes, on this we have several sites. For one specific site we have Basic Authentication and variations enabled in it, on one node site works fine. When we browse it pops-up for credentials and once credentials are provided it works fine and properly redirect to source variation home page. But on the other node when we browse the site it pops-up asking for credentials then after providing correct credentials it again asks for credentials twice and then it throws the following error : Access denied.   You do not have permission to perform this action or access this resource. And if we directly put the source site homepage url it throws following error: 401 UNAUTHORIZED We have checked the Alternate Access Mappings for the site and it is perfectly fine, if i enable windows authentication on the defected node the site works fine. This issue is just like pain in the neck still no resolution, please help us to resolve this issue. Regards, Jasjeet Singh

Does RBS work for SQL Authentication?

  
I tried MS RBS provider sample, but seems it didn't work for Content DB wirh SQL Authentication, if the Content DB used the windows authentication, it works fine. I can find a error log from the event viewer application logs. "Login failed for user 'sa'. Reason: Password did not match that for the login provided." I also check the Microsoft.Data.SqlRemoteBlobs.dll's code, can find such code: Using (SqlConnection connection = new SqlConnection(base.Connection.ConnectionString)) { connection.Open(); …  ... } Seems Connection.ConnectionString will hide the user password, so the exception will occur in the code above. Is this a bug? ThanksLove life,Love work,Love World

Could not get WCF Mutual authentication to work

  

Hi,

I have been trying to get mutual authentication using certificate to work for days and appreciate if someone can throw some light as to what is wrong. My WCF service is hosted on IIS and I use svcutil to generated the client code. Once I turned on "Client certificate" required in IIS SSL setting for the site I consistently get the error "The HTTP request was forbidden with client authentication scheme 'Anonymous'." . I am using wsHttpBinding and anonymous access has been turned on the IIS. And in the message log I could see that in the soap header some how the  address is

<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address

Windows Authentication doesn't work after change of admin pass

  

Hello.

J have read many answers about

Login failed for user ''. The user is not associated with a trusted SQL server connection

error, but I don't want to mess up in my sql server so I want to be sure that what I do is OK.

Environment description:

In my company, we have our own application wchich we use to connect to database. All users use SQL Server Auth except me. I can log using Windows Auth from server and from my second computer.

Now everything works fine.

- My comp is in our domain 'OurDomian'.

- On server in AD is admin account 'SqlAdmin'.

- In MSSMS in Security->Logins there is account: OurDomian\SqlAdmin

- on my comp account OurDomian\SqlAdmin is added

I can log to sql server from  my comp using 'Integrated Security' in application with no problem.

Problem description:

Problem starts when I change SqlAdmin password on server.

When I connect from my comp I get the above error. But when I connect from server there is no problem.

I searcher application code and I don't think that I have to change somthing in it. Probably I have to change something with account and permissions.

1. Will it bee enough to delete and add again 'OurDomian\SqlAdmi

Windows Authentication Doesn't work properly

  

Hello,

I've implemented Windows Authentication with kerberos protocol.

Each time user visit site they have to hit Sign in button and then they get logged in. IE doesn't recognized automatically user and signed in.


Thanks, Sam

Making Claims based authentication work with multi-tenant environment in SP 2010

  

Does anybody know of a guide or reference for setting up hosting in a multi tenant where authentication happens in claims based mode?

 

We have a setup where our clients are hosted on a single web application under different site collections. And we use forms authentication where user of a particular site collection gets authentication using the respective database. We now want to use claims based authentication and out-of-the-box multi-tenancy of SP 2010. We can setup site collections and site groups, but how do we implement claims based authentication in an env like this?


MVC 3.0 Beta Bug: Windows Authentication doesn't work

  

Windows authentication doesn't works for me.

Here are steps to reproduce:

  1. Open VS2010
  2. Create an "ASP.NET MVC 3.0 Web Application" with the Empty template
  3. Add a HomeController controller.
  4. Change the authentication element in web.config to: <authentication mode="Windows" />
  5. Under project Properties > Web enable NTLM Authentication
  6. Add a break point inside HomeController.Index().
  7. Start debugging.

When the breakpoint is hit, I get:

User.Identity.AuthenticationType = ""
User.Identity.IsAuthenticated = false
User.Identity.Name = ""

When I follow the above steps with an "ASP.NET MVC 2.0 Empty Web Application" project, I get:

User.Identity.AuthenticationType = "NTLM"
User.Identity.IsAuthenticated = true
User.Identity.Name = "<My Username>"

which is correct.




how to make forms authentication work accross www.abc.com and aaa.abc.com

  

Hi all,

       i am using forms authentication for my website www.abc.com, i wanna use the same website authcookie for aaa.abc.com.

What steps i need to follow


Forms Authentication Won't Work After Deploying My ASP.NET App to the Hosting Server

  

Hi,

I have strange thing here, my ASP.NET app works fine on my development PC, but when I deploy it on the server, the Forms Authentication won't work. The page is being redirected to the "login.aspx" page, but when I enter a valid username/password and hit the login button, it also goes to the login.aspx page (with no errors and no throw, it keeps like this forever).

I am using the default ASP.NET Membership provider, I have setup the hosting server to be exactly as my PC, so both have same settings of IIS, ASP.NET 4.0 Global Configuration (in IIS), and SQL Server 2005 Express Edition.

I searched for this problem in google and tried several suugestion (like removing the clear() in web.config, manually add the membership/role provider in web.config, change security in the physical folders, etc...) but with no luck.

Below is my web.config (which is working fine in my development PC):

Any ideas?

<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <appSettings>
    <clear/>
    <add key="TermYear" value="2009"/>
  </appSettings>
	<connectionStrings>
		<clear/>
		<add name=&q

InfoPath 2010 does not work in claims authentication mode on SharePoint 2010

  

Hi everyone,

I created an Infopath 2010 Forms published on a Claims-based authentication site collection. This form has an external datasource plugged on the _vti_bin/UserProfileService.asmx webservice (within the same site collection). This datasource is queried when the form opens. When I check this form with Infopath designer preview, everything works fine.

But once this forms is published, an error "Error while trying to contact Web Service" occured when opening a new form.

Here ere an extract of the logs:

The following query failed: GetUserProfileByName (User: DOMAIN\username, Form Name: library, IP: , Connection Target: , Request: http://server/_layouts/FormServer.aspx?xsnLocation=http://server/library/forms/template.xsn?DefaultItemOpen=1&Source=http://server/page.aspx, Form ID: urn:schemas-microsoft-com:office:infopath:library:-myXSD-2010-01-12T23-08-28 Type: DataAdapterException, Exception Message: The remote server returned an error: (500) Internal Server Error.
Server was unable to process request. ---> Attempted to perform an unauthorized operation.
The remote server returned an error: (500) Internal Server Error.)

Here is an extract of my IIS log:

2010-11-25 13:45:30 fe80::b9ab:23d9:ff9e:bb23%11 POST /_vti_bin/userprofileservice.asmx - 50

RadioButton inside GridView, How to get it work as normal

  
Did you tried before to drag a RadioButton control inside a Gridivew templatefield, and then you attempt to select these RadioButtons , you will notice that the behavior of RadioButton control will be changed and it will work just like the behavior of checkbox control! the user will be able to select more than one radiobutton in the grid!

Explained: Forms Authentication in ASP.NET

  
This module explains how forms authentication works in ASP.NET version 2.0. It explains how IIS and ASP.NET authentication work together, and it explains the role and operation of the FormsAuthenticationModule class.

Using Forms Authentication in ASP.NET - Part 1

  
Classic ASP developers often had to "roll their own" authentication scheme, however, in ASP.NET much of the grunt work has been taken out. This article outlines how things have changed and how FormsAuthentication can be used to secure a Web site with a minimal amount of code.

ASP.NET Forms Authentication - Part 1

  
Often, in legacy Web applications, users authenticate themselves via a Web form. This Web form submits the user's credentials to business logic that determines their authorization level. Upon successful authentication, the application then submits a ticket in the form of a cookie, albeit a hard cookie or session variable. This ticket contains anything from just a valid session identification access token to customized personalization values.

ASP.NET forms authentication with roles

  
.A timeout is specified in minutes. This is "time since last request" not the "time since login". If a login is indicated to be persistent (described later) this is ignored.
.A protection method is specified for the cookie.
Next I wanted to specify a folder to which access is restricted to people who have logged in. To do this I entered the following code in the web.config file (beneath

Forms Authentication in ASP.NET

  
In this tutorial you will learn about Forms Authentication in ASP.NET 2.0 - Forms Authentication class, Cookie Domain, Forms Cookies, The Login Control, Signin, Signout, Authenticate, Redirect, Login Status, Login Name and Login View Controls.

Looking for guidance: wanting to work with AJAX architecture

  

Hi,

I'm starting a small website that will be backed by a database, and will allow a small number of users to authenticate and select an entry in the database, and then view (and optionally update) a corresponding entry (think master-detail).

I have some flexibility in how I'll do this, but I'd really like to incorperate some newer AJAX style coding, eliminating some page postbacks. I think this is a great opportunity to learn the concepts well.

I'll probably go with an ASP.NET 4.0 site. From what I've seen there are MANY ways to go about this:

-WCF Data Services to expose the data, and consume in ASP.NET

-Page methods to expose the data, separate method to update the data

-I'd rather avoid the UpdatePanel because I'm really looking for a full hands-on approach, with learning client side scripting being an objective as well.

Beyond that, it seems that one can use jQuery to build clientside templates, but also one can use the ASP.NET AJAX template engine (in ASP.NET 4.0 I believe).

A concern I have: users should only be able to work with the data exposed via these endpoints if they are logged into the website. Hopefully I can somehow reuse the ASP.NET forms authentication cookie for this purpose. 

Well, I hope I've posted enough to a

Categories: 
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