Configuration :: IIS Setting To Allow Anonymous Users And Also Capture System Login Id

Mar 26, 2010

in my aspx.vb page i have written

Label1.Text = Me.Page.User.Identity.Name

when i do view in browser (without publishing to any server) i see label's text as

abcxyz which is correct

but when i publish it, i dont see any text . I have made setting IIS to allow anonymous users so that anyone can open the wesite and see their computer login id

like abcxyz

View 1 Replies


Similar Messages:

Configuration :: Login Failed For NT Authority/anonymous Logon?

Feb 3, 2011

I have set up a web Application using IIS 7 .Following details:-

Database server is sql server 2008 r2 and located on another machine

I am using forms authentication and while trying to logon using my start page where i am validating the user from database. This error is coming while login

i am working on .net framework 4.0

What can be the reason for the same .

View 1 Replies

Configuration :: Can't Get The Users To Login

Feb 3, 2011

I have an application wich uses AD for authenticate users, the web.config goes like this:

[Code]....

It's works fine in development environment, the problem is when I've published this app into IIS, I can't get the users to login. I've configured the directory security to Anonimous Access since the user will enter the credentials using forms auth.

View 5 Replies

Configuration :: Login Not Finding Users Database?

Nov 24, 2010

I have created a website using Visual Web Developer Express and origonally the database was created in SQL Server Express. My Web host would not accept the .mdf file so I installed SQL 2008 Server Developer and imported my database in the full SQL Server. I then linked my website to the new database and altered the web.config file to point to the new database.

All the pages work well now apart from the Login Web Control which just says login unsuccessful and asks me to login again. When I try this on the actual website I get the following error message

"Exception Details: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)"

Its obviouly not finding the Membership/User Table in the new database but I cannot find a way to redirect it. I have tried deleting the Login Web Control and re-inserting but get the same problem.

View 4 Replies

Redirecting Anonymous Users IIS 7?

Sep 22, 2010

I am working on an internal application... i setup IIS 7 to use windows authentication since its behind the firewall and on the domain.. there is a "public" side.. and an "internal" side... if your not part of IT.. you should get the public side.. this is just informational.. my problem is that there is 1 or two pcs that are not on the domain and nobody is logged into them.. how can i just redirect anonymous users to another site?

everything i read says you can't use anonymous AND windows auth.. so my thought was to just redirect the anonymous users to another site.. how can you do that?

View 1 Replies

Configuration :: Getting System.outofmemory Exception On The Server On Accessing The Login Page

Sep 27, 2010

I have an asp.net web app running fine on localhost but I get the system.outofmemory exception on the server on accessing the login page.what should I do to get rid of this problem.

I have very simple code on page load as below:

[Code]....

View 2 Replies

Authorize A Directory For Anonymous Users IIS 7.5?

Feb 4, 2011

I'm trying to add a directory for anon access in IIS 7.5. It works under Web Dev but not IIS 7.5

I'm currently using this web.config in the directory. This is a directory with style sheets:

<?xml version="1.0"?>

Note: As an alternative to hand editing this file you can use theweb admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in WindowsMicrosoft.NetFrameworkv2.xConfig

<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</configuration>

Update:

I've went to the folder and under Authentication, I've changed anonymous authentication from IIS_USR to pool. This seems to have correct it.

I will reward anyone who provides a very good explanation and resources for understanding this setting. Also, how to apply it globally would be good to know -- for all folders.

View 2 Replies

Cache Page For Anonymous Users Only?

Jan 17, 2010

Is there an easy way to cache ASP.NET whole page for anonymous users only (forms authentication used)?

Context: I'm making a website where pages displayed to anonymous users are mostly completely static, but the same pages displayed for logged-in users are not.

Of course I can do this by hand through code behind, but I thought there might be a better/easier/faster way.

View 1 Replies

How To Determine If Web Request Is To A Resource That Allows Anonymous Users Or Not

Jul 23, 2010

I have denied anonymous access to the entire application using the following Web.Config setting:

<authorization>
<deny users="?" />
</authorization>

Then, for various paths, I have allowed anonymous access using Web.Config settings such as this:

<location path="Home/ShowLogin">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>

I'd like to be able to determine during the processing of a given request whether the requested URL is to path that allows anonymous users or whether the request is to a path that denies anonymous users.

What is the most elegant way of determining this?

View 1 Replies

Security :: Windows Authentication For Anonymous Users?

Feb 14, 2011

I am using windows authentication in my web application. All we need is when the application will be executed it will launch login.aspx page. If users put correct userid and password(checked from active server directory) it will be redirected to a difference page. But if any unauthenticated user tries to access any other page in the application by typing the Url on the address bar it will be again redirected to the login page. We have to do this by changing our web.config file.I can achieve this using form authentication but not windows. But our requirement is windows. The requirement is very basic but all effort is just not working.

View 2 Replies

Web Forms :: Hiding Menu Page To Anonymous Users

Mar 9, 2011

I would like to ask if somebody knows how to deny view of page in the telerik rad menu to anonymous users. So if the user wont be leged in then he wont be alble to see a page in the rad menu, but when he log in the the page show up in the menu.

View 2 Replies

C# - Customize Website For Anonymous Users And Remember Settings And Information?

Mar 2, 2011

I have a E-Shop Site and I need some customization for my users like following :

Store favorite products in their own basket.Customize products list in order to what are their favorite. It must remember their basket next time they want to visit our site.

my question is how I can store information for my customers who are new to my web site also most of customers don't like to have username and password then login first they like to buy during a week and at the end of week pay for them then we can send some products to their locations.

I have already written my application using asp.net with framework 4.0.

View 3 Replies

Web Forms :: Profile Property For Anonymous Users Not Saving In Firefox Or Safari?

Aug 4, 2010

I have a user control which, when pressing a command button, sets a property for the Profile (which has been marked as allowanonymous=true), then save it using Profile.Save().

Now, in IE this works fine - no problems at all. I then go to the page where the value is used - and it's there and can be used.

However, exactly the same routine when running in Safari or Firefox doesn't work - although when you're on the same page where the value is set it will immediately state that the value is ok, do a postback and it's gone!

Here's some very simple code to show the problem. Whilst IE will always dump 'plop true/false' to the screen (yes, I know - very juvenile!), FF and Safari will the first time, but on postback will just dump True to indicate it's a postback. (oh, and autosaveprofile is set to true in this example - otherwise there'd be a Profile.Save() below the set property).

[Code]....

I can't use Cookieless session states as the CMS I'm using won't allow it. I've also used Fiddler to try and track the issue, but no joy.

I'm guessing it's related to the way FF and SF handle cookies - but both are set to accept anything. Could it possibly be anything to do with the ASP.Net Development Server? (ie. the address is[URL]The fact that it never manages to save the value

View 1 Replies

Web Forms :: Login Control For Anonymous User Using Form Authentication?

Dec 15, 2010

I have a problem with using login controls form authentication ! as my website serves some pages for guest users(Anonymous user) and some pages are for only secure user(they must have to login for those requested pages)...... my problem is this that when i apply form authentication in web.config file to login control then visual studio directly shows only login page where i want that in general case only : guest user pages must be shown and if user clicks on login then after login the requested page he may open !

View 2 Replies

Web Forms :: Setting Focus On Login Button In Login Control?

Jan 29, 2010

i have a login control . I need to set focus on submit button, every time user pressses enter key.

How can that be done

View 2 Replies

How To Capture A User Login In

Apr 28, 2010

how and where can I capture when a user logs in and its username?I am using a login control..

View 4 Replies

Configuration :: Anonymous Access For Published Web Application?

May 5, 2010

I check WindowsPrincipal.Identity.Name against Active Directory security groups before allowing the user to edit data. If the user is not authorized I just present a read-only version of the data.

When I run my web app from the IDE everything works fine. I published the web app, made sure anonymous access was disabled, and invoked it from IE. The read-only page came up.

I then added code to write to the event log to display the WindowPrincipal.Identity.Name and saw that instead of displaying the user name, it was instead showing the server name. I verified again that Anonymous Access is disabled and integrated security is on.

View 3 Replies

Security :: How To Make Login Control Allow Users To Login By Either Username Or Email Address

Oct 12, 2010

how to make login control allow users to login by either username or email address

View 1 Replies

Security :: ARR Login Fail But When Users Remove All Cookies And Session Data The Login Works Again

Sep 27, 2010

I have two application (one of this is mojo portal): [URL] for some users when they login into "app" then the login in "mojo" doesn't work and viceversa. I've set the machinekey into web.config file. When the users remove all cookies and session data the login works again. The two application are into a Web Farm. Should be ARR the problem?

View 2 Replies

C# And Anonymous Types - Iterate Through A DataTable While Manually Building An Anonymous Type

Jan 18, 2010

I am currently implementing a client-side paging solution using ASP.NET, jQuery and JSON.

I have been following the excellent article from encosia: http://encosia.com/2008/08/20/easily-build-powerful-client-side-ajax-paging-using-jquery/

In my Web Method I retrieve my data from the database as a DataTable:

DataTable categoryProducts = ProductViewerAccess.GetCategoryProducts
("AA", 4, 0, Page.ToString(), out howManyPages, "FALSE", 0, "CostPrice", "asc", destinationList);

I then retrieve the data from the DataTable into an anonymous type:

var feeds =
from feed in categoryProducts.AsEnumerable()[code]....

This all works great.

However, I would like to extend the code to perform some evaluation checks (e.g., check that various columns in the DataTable are not NULL) and other pre-processing (e.g., call various functions to build the image URL based on the image ID - which is another column in the DataTable not shown in the code fragment) before I return the resulting rows of the DataTable as an anonymous type to the client-side.Basically, I want to iterate through the DataTable, perform the evaluation checks and pre-processing, while building my anonymous type manually as I go. Or maybe there is a better way to achieve this?

View 2 Replies

Login - Capture Session Timeout In A GeneXus Application?

Oct 21, 2010

I need to capture an ASP.NET Session Tiemout in a GeneXus X application generated in C#. When a user stay away from keyboard more than N minutes, I would like to request User/password once again without loosing data's changes in webform

View 1 Replies

C# - Convert The Standard Login Framework That Ships With MVC 2 Into A Modal Login Dialog System

Oct 17, 2010

I'm trying to find an example of how to convert the standard login framework that ships with ASP .NET MVC 2 (the account controllers and views, etc) into a modal login dialog system, like the one at Digg. After searching for hours, the closest tutorial I found was this: [URL]

However, there are a few modifications I'd like to make to it--such as, if there is a validation error, instead of displaying it inline on the form (ex: <%: Html.ValidationMessageFor(m => m.UserName) %>), I want to slide down a bar at the top of the page like Twitter/Digg. I'm not sure how to make use of the existing authentication framework to access the validation errors in javascript.

View 1 Replies

Security :: Folder Security / How To Block Anonymous Users

Jan 12, 2010

I have a web page where I am denying anonymous users from accessing. In the web site I have a folder called FileManager. In the web app the usres have the ability to uploaded files and when they do a folder gets created under the filmanger and the files are saved. I have created a web.config in this folder that denies anonymous users. The problem is if the user knows the directory structure they can type in the url of the site add /FilManager/x/x/NameOfFile, where x are the sub directories. If the file is an image it shows the image in ie, if it is a .xls or .doc or what ever they get the prompt to either download or save the file. What am I doing wrong. Will the web.config file not stop an anonymous user from access files? I put a webpage in the folder and it is blocked and the user gets sent to the login screen, but files seem to be unsecured.

How do I block anonymous users from being able to access the files in this folder?

View 4 Replies

Configuration :: Configuration Error / Unrecognized Configuration Section System.serviceModel?

Mar 10, 2010

I am getting this error on a website. does that mean the server is not competible with asp.net 3.5

Configuration Error
Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized configuration section system.serviceModel.

Source Error: [Code]....

Line 236: </assemblyBinding>Line 237: </runtime>Line 238: <system.serviceModel>Line 239: <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />Line 240: </system.serviceModel>

Source File: D:Inetpubvhostsmuratmalli.comhttpdocsweb.config Line:
238

View 2 Replies

Finding Difference System.web.httpcontext.current.application And System.Configuration.Appsettings?

Jan 22, 2010

Can anyone tell me the differnce between

System.web.httpcontext.current.application["tag"]

or

System.Configuration.Appsettings["tag"]

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved