Connecting Tech Pros Worldwide Forums | Help | Site Map

ASP.NET Publish Compiled code Problem

radcaesar's Avatar
Moderator
 
Join Date: Sep 2006
Posts: 756
#1: Dec 5 '08
I was developing a web application using the Framework version 2.0 and VS 2005. My Application runs just fine with the development server. Yesterday I had deployed the compiled code and I got the
"Object reference not set to instance of an object" error in the below method
ODPHelper.ExecuteScalar()

Yes, I was using ODP helper to connect with Oracle. I had checked the ODPHelper.dll was available in the bin folder.

I am using impersonation with the user rights of local admin in web.config file.

When I try to deploy all the files (All the files in my solution) in the IIS and Its running fine. When I try to deploy only the aspx and DLLs inside the bin folder, it shows the above exception.

Where am i missing something?

OuTCasT's Avatar
Needs Regular Fix
 
Join Date: Jan 2008
Location: South Africa
Posts: 361
#2: Dec 5 '08

re: ASP.NET Publish Compiled code Problem


Did you deploy all files needed to run application ?
radcaesar's Avatar
Moderator
 
Join Date: Sep 2006
Posts: 756
#3: Dec 5 '08

re: ASP.NET Publish Compiled code Problem


I got it solved. I had given ADMIN rights to IUSER and set the Impersonate to True.

Then uncheck the ANONYMOUS Authentication in IIS.
kenobewan's Avatar
Moderator
 
Join Date: Dec 2006
Posts: 4,745
#4: Dec 5 '08

re: ASP.NET Publish Compiled code Problem


Gee that is alot of rights to give a user?
Reply