ASP.NET Publish Compiled code Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • radcaesar
    Recognized Expert Contributor
    • Sep 2006
    • 759

    ASP.NET Publish Compiled code Problem

    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.Execu teScalar()

    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
    Contributor
    • Jan 2008
    • 374

    #2
    Did you deploy all files needed to run application ?

    Comment

    • radcaesar
      Recognized Expert Contributor
      • Sep 2006
      • 759

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

      Then uncheck the ANONYMOUS Authentication in IIS.

      Comment

      • kenobewan
        Recognized Expert Specialist
        • Dec 2006
        • 4871

        #4
        Gee that is alot of rights to give a user?

        Comment

        Working...