Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / May 2008

Tip: Looking for answers? Try searching our database.

.NET Apps stop working after running asp_regiis -i

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sillz - 08 Apr 2008 22:00 GMT
In trying to help a developer get his code working, some of our .NET
apps stopped working.

We were trying to get the .NET Application to open pdf files on a
remote .NET server.   The aspnet account kept getting locked out on
the remote IIS 6.0 server.  I read about impersonation, so I reset the
aspnet user account on both the application server and the remote
server hosting the pdf files so they matched.  We added the
impersonation code to the web.config for that application.

<identity impersonate="true" userName="aspnet" password="mypassword"/

The aspnet user account kept getting locked out on the remote box, so
I ran asp_regiis -i, and I created a new user account with all of the
privleges, and that worked fine.  We added the username and password
to the web.config file for that application.

Now, for the other applications on the server are getting the error
below.  It looks like the aspnet user account is still having problems
although it's not getting locked out.

How can I get the aspnet user account to work for the other web apps?
I don't think I want to use impersonation for all applications.  Do
all of the security settings need to be redone for the aspnet account
after running asp_regiis -i?  If so, then what are they?

Any help is appreciated.

Event Type:    Warning
Event Source:    ASP.NET 2.0.50727.0
Event Category:    Web Event
Event ID:    1309
Date:        4/8/2008
Time:        1:55:47 PM
User:        N/A
Computer:    IMEM1
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 4/8/2008 1:55:47 PM
Event time (UTC): 4/8/2008 8:55:47 PM
Event ID: 9343d553050841fabb3cdd4706ef44df
Event sequence: 105
Event occurrence: 18
Event detail code: 0

Application information:
   Application domain: /LM/W3SVC/1/Root/
claims_test-38-128520780871827405
   Trust level: Full
   Application Virtual Path: /claims_test
   Application Path: C:\Inetpub\wwwroot\Claims_test\
   Machine name: IMEM1

Process information:
   Process ID: 604
   Process name: aspnet_wp.exe
   Account name: IMEM1\ASPNET

Exception information:
   Exception type: OracleException
   Exception message: ORA-28001: the password has expired

Request information:
   Request URL: http://localhost/claims_test/Claims/HRSA/HRSA.aspx
   Request path: /claims_test/Claims/HRSA/HRSA.aspx
   User host address: 127.0.0.1
   User:
   Is authenticated: False
   Authentication Type:
   Thread account name: IMEM1\ASPNET

Thread information:
   Thread ID: 6
   Thread account name: IMEM1\ASPNET
   Is impersonating: False
   Stack trace:    at
System.Data.OracleClient.OracleException.Check(OciErrorHandle
errorHandle, Int32 rc)
  at
System.Data.OracleClient.OracleInternalConnection.OpenOnLocalTransaction(String
userName, String password, String serverName, Boolean
integratedSecurity, Boolean unicode, Boolean omitOracleConnectionName)
  at
System.Data.OracleClient.OracleInternalConnection..ctor(OracleConnectionString
connectionOptions)
  at
System.Data.OracleClient.OracleConnectionFactory.CreateConnection(DbConnectionOptions
options, Object poolGroupProviderInfo, DbConnectionPool pool,
DbConnection owningObject)
  at
System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection
owningConnection, DbConnectionPool pool, DbConnectionOptions options)
  at
System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection
owningObject)
  at
System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection
owningObject)
  at
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection
owningObject)
  at
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection
owningConnection)
  at
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection
outerConnection, DbConnectionFactory connectionFactory)
  at System.Data.OracleClient.OracleConnection.Open()
  at Claims_HRSA_HRSA.Page_Load(Object sender, EventArgs e)
  at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp,
Object o, Object t, EventArgs e)
  at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object
sender, EventArgs e)
  at System.Web.UI.Control.OnLoad(EventArgs e)
  at System.Web.UI.Control.LoadRecursive()
  at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Custom event details:

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Jeff Dillon - 08 Apr 2008 22:18 GMT
Have you checked to make sure your Oracle password has not expired as the
error suggests?

Jeff

> In trying to help a developer get his code working, some of our .NET
> apps stopped working.
[quoted text clipped - 119 lines]
> For more information, see Help and Support Center at
> http://go.microsoft.com/fwlink/events.asp.
sillz - 16 May 2008 23:01 GMT
> In trying to help a developer get his code working, some of our .NET
> apps stopped working.
[quoted text clipped - 118 lines]
>
> For more information, see Help and Support Center athttp://go.microsoft.com/fwlink/events.asp.

I never could get this to work.  The oracle account tested fine.  I
ended up creating a new account in Windows with the right permissions
and this solved the problem.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.