Installation :: Error - Current Identity Doesn't Have Write Access

Jun 28, 2010

I have installed and repaired .NET 4.0 already, and I can not figure out why IIS will not run 4.0 applications. I am running Windows 2003 R2, Sp2. IIS 6.0 I created a new ASP.NET Application in Visual Studio 2010, and published it to a site on my IIS. In IIS, I have selected it to run with 4.0, and my web.config also says to compile in 4.0 My First error was : Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive. (C:Inetpub...web.config line 22)

After some research, I found that my IIS had no v4.0 Web Service Extension setup. I thought this was odd, but I manually added it. New error was : The current identity (NT AUTHORITYNETWORK SERVICE) does not have write access to

C:WINDOWSMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Files'.

After some research, I found I needed to add this folder, and give all rights to it. I know something is wrong, I shouldn't have to do this. My application is still erroring.. failing to load my ReportViewer :

Exception message: Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

My research and I think my aspnet_regiis did not run properly.. so I trieto run this myself: but I get this error!!

-aspnet_regiis.exe - Application Error

-The application failed to initialize properly (0xc0000005). Click on OK to terminate the application.

View 5 Replies


Similar Messages:

Installation :: Web Publish / The Current Identity (NT AUTHORITYNETWORK SERVICE) Does Not Have Write Access?

Oct 8, 2010

i try to publish my application , below the error i have, iam using

vista home edition

The current identity (NT AUTHORITYNETWORK SERVICE) does not have write access to 'C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Tem porary ASP.NET Files'.

View 4 Replies

Error - The Current Identity (NT Authority/Network Service) Does Not Have Write Access...

Jan 17, 2011

i developed a simple web application. A label and a button. On click of Button, the label will display Hello World.

When I deploy this web application on my web server and access the URL, I get this error message.


The current identity (NT Authority/Network Service) does not have write access to C:WindowsMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Files

I have tried the following -

Navigate to C:WindowsMicrosoft.NETFrameworkv2.0.50727 and typed the following command -

aspnet_regiis -ga "NT AuthorityNetwork Service"

After that also, it did not work.

We checked the permissions of the folder Temporary ASP.NET Files and for the Network Service user, we checked the Security Permissions and it has all the permissions as required.

View 1 Replies

VS 2005 - Current Identity (Butterfly-PCWebsite) Does Not Have Write Access

Jan 10, 2010

I got this error when I try to browse my default.aspx and I think this problem cause from my web.config. Take a look on my web.config file.

The current identity (Butterfly-PCWebsite) does not have write access to 'C:WindowsMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Files'.
Exception Details: System.Web.HttpException: The current identity (Butterfly-PCWebsite) does not have write access to 'C:WindowsMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Files'.

Code: <?xml version="1.0" encoding="UTF-8"?> <!--
Note: As an alternative to hand editing this file you can use the web 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>
<add name="csACC" connectionString="server=localhost;User Id=root;Persist Security Info=True;database=acc" providerName="MySql.Data.MySqlClient" />
<add name="csAgent2" connectionString="server=localhost;User Id=root;database=acc" providerName="MySql.Data.MySqlClient" />
<add name="masterConnectionString" connectionString="Data Source=BUTTERFLY-PCSQLEXPRESS;Initial Catalog=master;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<!--

Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development.
Visual Basic options:
Set strict="true" to disallow all data type conversions where data loss can occur.
Set explicit="true" to force declaration of all variables. -->
<compilation debug="true" strict="false" explicit="true" />
<pages>
<namespaces>
<clear />
<add namespace="System" />
<add namespace="System.Collections" />
<add namespace="System.Collections.Specialized" />
<add namespace="System.Configuration" />
<add namespace="System.Text" />
<add namespace="System.Text.RegularExpressions" />
<add namespace="System.Web" />
<add namespace="System.Web.Caching" />
<add namespace="System.Web.SessionState" />
<add namespace="System.Web.Security" />
<add namespace="System.Web.Profile" />
<add namespace="System.Web.UI" />
<add namespace="System.Web.UI.WebControls" />
<add namespace="System.Web.UI.WebControls.WebParts" />
<add namespace="System.Web.UI.HtmlControls" />
</namespaces>
</pages>
<!--
The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. -->
<authorization>
<allow roles="administrators" />
<deny users="*" />
</authorization>
<!--
The <customErrors> section enables configuration of what to do if/when an unhandled error occurs during the execution of a request. Specifically, it enables developers to configure html error pages to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors> -->
</system.web>
<system.webServer>
<directoryBrowse enabled="true" />
</system.webServer>
</configuration>

View 3 Replies

Access :: IIS_WPG Write/modify Access To The Folder Where MS-Access Database Is Located - Insert An Error Pop-up?

Feb 17, 2010

Is there anything missing in IIS 6.0 that prevents me from (Insert into table) using MS-Access?

Explain: The application works fine under Visual Studio 2008 IDE the insert into table works fine with no error, Also I tested with hosting provider and works fine with no problem. but now I have published the same exact app in a dedicated server windows 2003 with
IIS 6.0 .NET framework 2.0 with latest service pack I gave IIS_WPG write/modify access to the folder where MS-Access database is located and database but at the time of insert an error pop-up. I need to install in the Server or settings in the IIS to recognize my MS-Access db is it some office runtime that I am missing. (BTW I am using OLEDB connection string in my C# )

Using System.Data.OleDb;

I can retrieve data off of it with no problem but when I try to insert is when it fails I thought the problem was Access Rights but I do not think is the case.

View 4 Replies

Get Error When Try To Access Website - Server Error In '/' Application. Attempted To Read Or Write Protected Memory

May 5, 2010

Server Error in '/' Application. Attempted to read or write protected memory. This is often an indication that other memory is corrupt.Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

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.

Stack Trace:

[code]....

View 1 Replies

Web Forms :: Error CS0103 - Name 'txtEmail' Doesn't Exist In Current Context

Dec 13, 2010

I am working on a contact form. i am getting an error below, here is my code:

[Code]....

And here is the error i'm getting:

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0103: The name 'txtEmail' does not exist in the current contextSource

Error:

[Code]....

Line 20: try
Line 21: {
Line 22: MailAddress fromAddress = new MailAddress(txtEmail.Text, txtFirstName.Text + " " + txtLastName.Text);
Line 23:
Line 24: // You can specify the host name or ipaddress of your server
Source File: c:HostingSpacesartofmouldingartofmoulding.comwwwrootcontact.aspx.cs
Line: 22

View 5 Replies

Compiler Error Message - CS0103 - Name 'lblRegion' Doesn't Exist In Current Context

Sep 3, 2010

i am gettign this error

Compiler Error Message:

CS0103: The name 'lblRegion' does not exist in the current context

Source Error:

[Code]....

Line 31: {Line 32: Line 33: lblRegion.Text = dt.Rows[0]["RegionName"].ToString();Line 34: lblCountry.Text = dt.Rows[0]["CountryName"].ToString();Line 35: lblCountryCode.Text = dt.Rows[0]["CountryCode"].ToString();

this is source code:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Net;
using System.Xml;
public partial class CSharp : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//Get IP Address
string ipaddress;
ipaddress = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
if (ipaddress == "" || ipaddress == null)
ipaddress = Request.ServerVariables["REMOTE_ADDR"];
DataTable dt = GetLocation(ipaddress);
if (dt != null)
{
if (dt.Rows.Count > 0)
{
lblCity.Text = dt.Rows[0]["City"].ToString();
lblRegion.Text = dt.Rows[0]["RegionName"].ToString();
lblCountry.Text = dt.Rows[0]["CountryName"].ToString();
lblCountryCode.Text = dt.Rows[0]["CountryCode"].ToString();
}
else
{
}
}
}
private DataTable GetLocation(string ipaddress)
{
//Create a WebRequest
WebRequest rssReq = WebRequest.Create("[URL]xml/" + ipaddress);
//Create a Proxy
WebProxy px = new WebProxy("[URL]+ ipaddress, true);
//Assign the proxy to the WebRequest
rssReq.Proxy = px;
//Set the timeout in Seconds for the WebRequest
rssReq.Timeout = 2000;
try
{
//Get the WebResponse
WebResponse rep = rssReq.GetResponse();
//Read the Response in a XMLTextReader
XmlTextReader xtr = new XmlTextReader(rep.GetResponseStream());
//Create a new DataSet
DataSet ds = new DataSet();
//Read the Response into the DataSet
ds.ReadXml(xtr);
return ds.Tables[0];
}
catch
{
return null;
}
}
}

View 4 Replies

Web Forms :: Reference Class From Inline Code - Error "The Name CsUserProperties Doesn't Exist In Current Context

May 1, 2010

I lifted some nice code to handle memberships, but I want to add a customer specific field. My issue is how to reference my class from the inline c# code.

[Code]....

The problem is the line csUserProperties.AddNew(intUserId, lngCustomerId); -- I get the error "The name 'csUserProperties' does not exist in the current context. I have <%@ Import Namespace="csUserProperties" %> at the top of the file. I also tried everything with no namespace in the class below.

View 3 Replies

Security :: Access Denied Error When Trying To Write To A File From Web Service?

Mar 12, 2010

I am getting "Access Denied" error when I am trying to write a file on my hard drive (C:/.... xmls/test.xml) from a webservice which is also on my local machine.

The folder structure is like this

AdminApp (Web Folder on C drive)
- WebServices Folder
- TestService.asmx
-Xmls Folder
- Test.xml

I tried following settings in IIS in my efforts to resolve the issue:

- Set anonynmous access checked with my account name and password under "Account Used for anonymous access" alongwith integrated windows authentication checked. I am a admin on my machine.

- Disabled anonymous access with only integrated windows authentication checked. I have identity impersonate = true set in my web.config.

View 4 Replies

Access :: Update Error / An Unhandled Exception Occurred During The Execution Of The Current Web Request?

Nov 23, 2010

I have built a webform as part of my project that grabs all the data out of a particular table in an Access database on the server. I have allowed the ability to update said table via the DetailsView form however when you change the details and then click on "update" it throws back an error.

No value given for one or more required parameters.
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.OleDb.OleDbException: No value given for one or more required parameters.

Source Error:

[Code]....

Stack Trace:

[Code]....

I am not sure what has happened but it simply will not allow me to update any data. Here is a copy of the select, update and delete statement.

<asp:AccessDataSource
ID="UserDetails"
runat="server"
ConflictDetection="CompareAllValues"
DataFile="\xxx.xxx.xx.xxDatabaseCSBEDBv1.0_be.mdb"

DeleteCommand="DELETE FROM [tbl_mmstafflist] WHERE [EngID] = ? AND (([EngCode] = ?) OR ([EngCode] IS NULL AND ? IS NULL))
AND (([EngName] = ?) OR ([EngName] IS NULL AND ? IS NULL)) AND (([EmailAddress] = ?) OR ([EmailAddress] IS NULL AND ? IS NULL)) AND (([Ext No] = ?) OR ([Ext No] IS NULL AND ? IS NULL)) AND (([Mobile No] = ?) OR ([Mobile No] IS NULL AND ? IS NULL)) AND (([Home
No] = ?) OR ([Home No] IS NULL AND ? IS NULL)) AND (([Address 1] = ?) OR ([Address 1] IS NULL AND ? IS NULL)) AND (([Address 2] = ?) OR ([Address 2] IS NULL AND ? IS NULL)) AND (([Address 3] = ?) OR ([Address 3] IS NULL AND ? IS NULL)) AND (([Town] = ?) OR
([Town] IS NULL AND ? IS NULL)) AND (([County] = ?) OR ([County] IS NULL AND ? IS NULL)) AND (([Postcode] = ?) OR ([Postcode] IS NULL AND ? IS NULL)) AND (([Other email address] = ?) OR ([Other email address] IS NULL AND ? IS NULL)) AND [Visa card] = ? AND
[Ex staff] = ? AND (([ExternalDirectDialNumber] = ?) OR ([ExternalDirectDialNumber] IS NULL AND ? IS NULL)) AND (([PayrollNumber] = ?) OR ([PayrollNumber] IS NULL AND ? IS NULL)) AND [NeedstoSeekApproval] = ? AND [IsStockController] = ? AND (([Group] = ?)
OR ([Group] IS NULL AND ? IS NULL)) AND (([ContractedWeeklyHours] = ?) OR ([ContractedWeeklyHours] IS NULL AND ? IS NULL)) AND (([Grade] = ?) OR ([Grade] IS NULL AND ? IS NULL)) AND (([IP] = ?) OR ([IP] IS NULL AND ? IS NULL)) AND (([StaffTitle] = ?) OR ([StaffTitle]
IS NULL AND ? IS NULL))"

InsertCommand="INSERT INTO [tbl_mmstafflist] ([EngID], [EngCode], [EngName], [EmailAddress], [Ext No], [Mobile No],
[Home No], [Address 1], [Address 2], [Address 3], [Town], [County], [Postcode], [Other email address], [Visa card], [Ex staff], [ExternalDirectDialNumber], [PayrollNumber], [NeedstoSeekApproval], [IsStockController], [Group], [ContractedWeeklyHours], [Grade],
[IP], [StaffTitle]) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"

OldValuesParameterFormatString="original_{0}"
SelectCommand="SELECT * FROM [tbl_mmstafflist] where ([EngID] = @EngID)"
UpdateCommand
="UPDATE [tbl_mmstafflist] SET [EngCode] = ?, [EngName] = ?, [EmailAddress] = ?, [Ext No] = ?, [Mobile No] = ?, [Home No] = ?, [Address 1] = ?, [Address 2] = ?, [Address 3] = ?, [Town] = ?, [County]
= ?, [Postcode] = ?, [Other email address] = ?, [Visa card] = ?, [Ex staff] = ?, [ExternalDirectDialNumber] = ?, [PayrollNumber] = ?, [NeedstoSeekApproval] = ?, [IsStockController] = ?, [Group] = ?, [ContractedWeeklyHours] = ?, [Grade] = ?, [IP] = ?, [StaffTitle]
= ? WHERE [EngID] = ? AND (([EngCode] = ?) OR ([EngCode] IS NULL AND ? IS NULL)) AND (([EngName] = ?) OR ([EngName] IS NULL AND ? IS NULL)) AND (([EmailAddress] = ?) OR ([EmailAddress] IS NULL AND ? IS NULL)) AND (([Ext No] = ?) OR ([Ext No] IS NULL AND ?
IS NULL)) AND (([Mobile No] = ?) OR ([Mobile No] IS NULL AND ? IS NULL)) AND (([Home No] = ?) OR ([Home No] IS NULL AND ? IS NULL)) AND (([Address 1] = ?) OR ([Address 1] IS NULL AND ? IS NULL)) AND (([Address 2] = ?) OR ([Address 2] IS NULL AND ? IS NULL))
AND (([Address 3] = ?) OR ([Address 3] IS NULL AND ? IS NULL)) AND (([Town] = ?) OR ([Town] IS NULL AND ? IS NULL)) AND (([County] = ?) OR ([County] IS NULL AND ? IS NULL)) AND (([Postcode] = ?) OR ([Postcode] IS NULL AND ? IS NULL)) AND (([Other email address]
= ?) OR ([Other email address] IS NULL AND ? IS NULL)) AND [Visa card] = ? AND [Ex staff] = ? AND (([ExternalDirectDialNumber] = ?) OR ([ExternalDirectDialNumber] IS NULL AND ? IS NULL)) AND (([PayrollNumber] = ?) OR ([PayrollNumber] IS NULL AND ? IS NULL))
AND [NeedstoSeekApproval] = ? AND [IsStockController] = ? AND (([Group] = ?) OR ([Group] IS NULL AND ? IS NULL)) AND (([ContractedWeeklyHours] = ?) OR ([ContractedWeeklyHours] IS NULL AND ? IS NULL)) AND (([Grade] = ?) OR ([Grade] IS NULL AND ? IS NULL)) AND
(([IP] = ?) OR ([IP] IS NULL AND ? IS NULL)) AND (([StaffTitle] = ?) OR ([StaffTitle] IS NULL AND ? IS NULL))">

<SelectParameters>
<asp:QueryStringParameter
Name="EngID"
QueryStringField="EngID"
Type="Decimal"
/>
</SelectParameters>

The SelectParameter is used because this page is a details page that is selected from a list. I would appreciate any help that you can offer. Unfortunately Access errors are not forth coming with information.

View 2 Replies

C# - How To Get At The Current Users Windows Identity

Mar 8, 2011

The site is running on my local IIS 6.1. I Would like to add some features to pull information from our AD. My AD code works on many other projects and on my dev server. Here are my attempts at writing out the username:

Response.Write("1. " + this.Request.LogonUserIdentity.Name);
Response.Write("2. " + Request.ServerVariables["Auth_User"]);
Response.Write("3. " + WindowsIdentity.GetCurrent().Name.ToString());

The results I get are:

NT AUTHORITYIUSR
administrator
NT AUTHORITYNETWORK SERVICE

How can I get at the actual windows username like ourdomain/username

View 5 Replies

HttpContext.Current.User.Identity.Name With And Without Www?

Oct 20, 2010

am writing a web service in vb.net/asp.net 2, that needs user's name. It works fine when the url request is "www.mysite.com" but if any one has logged-in using "mysite.com" without a "www" and goes to the page that calls my web service, The HttpContext.Current.User.Identity.Name gives null. How can I resolve this problem?

View 2 Replies

Installation :: Account Is Not Present On Machine" Error On Sitecore Installation?

Nov 3, 2010

I am getting an error saying "ASPNET account is not present in this machine" when I try to install Sitecore on my machine after I installed visual studio 2008..

- My machine is running on windows XP sevice pack 3

- I installed Visual Studio 2008 and .NET framework version 3.5 SP1 on that machine

- I can see that ASPNET User group account Under Users and Groups and it doesn't have "Account is locked out" ticked under general tab

- Also I ran aspnet_regiis -i many times but didn't help; actually I red in one post that I should delete ASPNeT account first and run the script but still didn't help

- when I view http://localhost on IE I can view the ASP home page without any problem but Firefox asks me to enter user name and password.

View 2 Replies

Using EWS From Within A Website, Is It Possible To Use The Current Logged In Users Identity?

Feb 20, 2010

I have a web application using Forms authentication provided by AD. I would like to know if it's possible to use EWS to send mail as the currently logged in user without having to supply credentials, or; would I be required to set up an account with impersonating access which will send mail on behalf of the currently logged in user?

View 1 Replies

Saving The Login Name As Current User Identity?

Mar 1, 2011

So I'm making a asp.net login. I want the login name that people use to match an id in my SQL database. So that I can retrieve their information. But currently when I use the code below, from which I get the name of the computer I am currently on. However I would like the user Identity to be what they write in the username textbox at the login screen.

If HttpContext.Current.User.Identity.IsAuthenticated Then
Dim userName As String = HttpContext.Current.User.Identity.Name
Response.Write(userName)
End If

So I looked for it on net and I think it might have something to do with my web.config file. As I'm totally new to asp.net I wouldn't know. However here's a part of my Web.config file.

[Code]....

View 3 Replies

Installation :: AjaxControlToolkit In Visual Studio Installation Error?

Feb 14, 2011

Net Framework 2.0 Net Framework 3.5 and above, but not addobjects that I use when I use ajax added. Why can not I add the NetFramework 2.0.

View 1 Replies

Security :: Unable To Retrieve Current.User.Identity.Name In II7

Feb 26, 2010

I'm in the middle of moving a web application from IIS6 to IIS7. I've enabled "Windows Authentication" and added <deny users="?" /> to the authorization section of my web.config file. When the app was running on IIS6 my users where able to access the web app without logging in because their windows login was automatically recognized. This does not seem to be the case in II7. I can not get a value for "Current.User.Identity.Name" in my ASP.Net code.

View 1 Replies

DataSource Controls :: How To Get The Current Identity Number When Doing Insert

May 20, 2010

The scenario is that I wanna insert a record to the database via INSERT query and I need to user the identity number of this record in the INSERT query.

But I don't know how to achieve this.

Here is my table structure and code for your better understanding.

There are three columns in the Table: categoryID, categoryName, categoryPath. I need the path based on the categoryID which is an identity int column.

Now I used this code to do INSERT:

[Code]....

View 6 Replies

C# - Storing Extended Identity In HttpContext.Current.User?

May 14, 2010

I have created an ExtendedId class which extends GenericIdentity. (This stores Id as well as name)

In a httpmodule I stored this extended id in Current.User like so:

HttpContext.Current.User = new GenericPrincipal(myExtendedId, roles);

Problem is, later, how do I get at my ExtendedId type again?

If I try this:

ExtendedId eId = (ExtendedId)HttpContext.Current.User.Identity;

View 2 Replies

HttpContext.Current.User.Identity / Is Possible To Create Another Property Like 'userid'

Jul 8, 2010

is possible to create another property like 'userid' as i can access like

HttpContext.Current.User.Identity.userid ? if yes , how? (actualy last year i did something like this but i have forgotten

View 1 Replies

Security :: Httpcontext.current.user.identity.isauthenticated Always False?

Sep 7, 2010

I create two pages, the first one is the login page with user name and password textboxes - (not asp login control) , when clicking login button I check the login authentication, if it is true redirect to default page. in the default page if !IsCallBack then i check httpcontext.current.user.identity.isauthenticated

if it is false i redirect the user to the login page. but my problem is that the httpcontext.current.user.identity.isauthenticated is always false.

Below the section of authentication in web config

[code]....

View 5 Replies

Security :: Forms Authentication Cookie Not Changing Current User Identity

Jan 21, 2010

I am having a problem with security in a web application I am building using Visual Web Developer 2008. I am using Forms Authentication:

<authentication mode="Forms">
<forms name=".MYAUTH" timeout="20" enableCrossAppRedirects="true" />
</authentication>

And a SQL Server database with ASP.NET Membership and Roles. I am using the LoginView control with the AnonymousTemplate and LoggedInTemplate to manage the user's interaction with logging in and out. The problem I am having is that I am authenticating the user against the database:

If Membership.ValidateUser(_userName, _txtLoginPass.Text)
Then returns True and:
FormsAuthentication.SetAuthCookie(_userName, False)
sets the cookie correctly:
FormsAuthentication.Decrypt(FormsAuthentication.GetAuthCookie(_userName, False).Values(0))
{System.Web.Security.FormsAuthenticationTicket} CookiePath: "/"
Expiration: #1/21/2010 1:42:27 PM#
Expired: False
IsPersistent: False
IssueDate: #1/21/2010 1:22:27 PM#
Name: "jaymo "
UserData: ""
Version: 2
but when I check
HttpContext.Current.User.Identity.IsAuthenticated it always returns False.
If done this before and it worked fine. I cannot find any mistake I might have made or where something might have changed between ASP.NET 2.0 and 3.5.

View 2 Replies

Security :: HttpContext.Current.User.Identity.IsAuthenticated / Module Isn't Working

Jan 18, 2010

We have an SharePoint site no login (anonymous) with a search module using AJAX. Now the users complains that the module isn't working. When I check the code (not developed by me), I find that the code only runs if "HttpContext.Current.User.Identity.IsAuthenticated=true". Could that ever return true on an anonymous site?

View 1 Replies

Access The Current Thread's Context Using HttpContext.Current?

Mar 11, 2010

I have a static class with serveral static methods. In these methods, I'm trying to access the current thread's context using HttpContext.Current. For example:

var userName = HttpContext.Current.User.Identity.Name;

However, when I do that, I receive a NullReferenceException, the infamous "Object reference not set to an instance of an object."

View 3 Replies







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