Add a user runs in an exception

Topics: ASP.NET 2.0
May 4, 2010 at 12:03 PM

Hi,

I have downloaded the latest version of blogengine. After installing and starting it works fine.

Then I tried to add a new user and the following error occurs:

--------------------------------------------------------------------------------------------------------------------

Ooops! An unexpected error has occurred.

This one's down to me! Please accept my apologies for this - I'll see to it that the developer responsible for this happening is given 20 lashes (but only after he or she has fixed this problem).

Error Details:

Url : http://localhost/BlogEngine/admin/Pages/Users.aspx

Raw Url : /BlogEngine/admin/Pages/Users.aspx

Message : Eine Ausnahme vom Typ "System.Web.HttpUnhandledException" wurde ausgelöst.

Source : System.Web

StackTrace : bei System.Web.UI.Page.HandleError(Exception e)

bei System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

bei System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

bei System.Web.UI.Page.ProcessRequest()

bei System.Web.UI.Page.ProcessRequest(HttpContext context)

bei ASP.admin_pages_users_aspx.ProcessRequest(HttpContext context)

bei System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

bei System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

TargetSite : Boolean HandleError(System.Exception)

Message : Der Zugriff auf den Pfad "C:\inetpub\wwwroot\BlogEngine\App_Data\users.xml" wurde verweigert.

Source : mscorlib

StackTrace : bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

bei System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)

bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)

bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)

bei System.Xml.XmlDOMTextWriter..ctor(String filename, Encoding encoding)

bei System.Xml.XmlDocument.Save(String filename)

bei BlogEngine.Core.Providers.XmlMembershipProvider.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) in D:\Projects\Be-1610\BlogEngine\DotNetSlave.BusinessLogic\Providers\XmlProvider\XmlMembershipProvider.cs:Zeile 332.

bei System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser()

bei System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e)

bei System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e)

bei System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)

bei System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)

bei System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

TargetSite : Void WinIOError(Int32, System.String)

--------------------------------------------------------------------------------------------------------------------

I have a German windows 2008R2 server with IIS7

 

Regards

Wolfgang

 

May 4, 2010 at 12:45 PM
Did other data manipulation operations are working fine?
I mean adding post and updating post?
My guess is that you didn't set the permissions on App_Data folder.
set them and add a space in web.config to restart blogengine and see whether it
works or not?

HTH.
Thanks&Regards,
Srinivas Reddy Thatiparthy,




-----Original Message-----
From: WolfgangG [mailto:[email removed]
Sent: Tue 5/4/2010 5:33 PM
To: Srinivas Reddy Thatiparthy
Subject: Add a user runs in an exception [blogengine:211508]

From: WolfgangG

Hi,I have downloaded the latest version of blogengine. After installing and starting it works fine.Then I tried to add a new user and the following error occurs:--------------------------------------------------------------------------------------------------------------------Ooops! An unexpected error has occurred.This one's down to me! Please accept my apologies for this - I'll see to it that the developer responsible for this happening is given 20 lashes (but only after he or she has fixed this problem).Error Details:Url : http://localhost/BlogEngine/admin/Pages/Users.aspx

Raw Url : /BlogEngine/admin/Pages/Users.aspx

Message : Eine Ausnahme vom Typ "System.Web.HttpUnhandledException" wurde ausgelöst.

Source : System.Web

StackTrace : bei System.Web.UI.Page.HandleError(Exception e)

bei System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

bei System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

bei System.Web.UI.Page.ProcessRequest()

bei System.Web.UI.Page.ProcessRequest(HttpContext context)

bei ASP.admin_pages_users_aspx.ProcessRequest(HttpContext context)

bei System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

bei System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

TargetSite : Boolean HandleError(System.Exception)

Message : Der Zugriff auf den Pfad "C:\inetpub\wwwroot\BlogEngine\App_Data\users.xml" wurde verweigert.

Source : mscorlib

StackTrace : bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

bei System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)

bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)

bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)

bei System.Xml.XmlDOMTextWriter..ctor(String filename, Encoding encoding)

bei System.Xml.XmlDocument.Save(String filename)

bei BlogEngine.Core.Providers.XmlMembershipProvider.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) in D:\Projects\Be-1610\BlogEngine\DotNetSlave.BusinessLogic\Providers\XmlProvider\XmlMembershipProvider.cs:Zeile 332.

bei System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser()

bei System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e)

bei System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e)

bei System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)

bei System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)

bei System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

TargetSite : Void WinIOError(Int32, System.String)--------------------------------------------------------------------------------------------------------------------I have a German windows 2008R2 server with IIS7 RegardsWolfgang

May 5, 2010 at 10:55 AM

Hi Srinivas,

I couldn't continue testing, because I tried to reinstall. And now I don't get it to work.

I guess the problem is IIS7 and the userrights. I tried to use the Network Service(user aspnet doesn't exist), but I get always permissionproblems.

Has anyone installed and tested the program under W2K8R2-Webserver and IIS7?

I am a newbie and have not so much experience with IIS7.

 

Regards

Wolfgang 

Coordinator
May 5, 2010 at 2:39 PM

Check out this post, it might help.

May 6, 2010 at 1:59 PM
@rtur, thank you very much, it helped. Regards Wolfgang