Error in WPF application, but only on some machines

1

I made a small application to extract a .zip file. It works, but when I run on three other machines, it does not work there. The error is this:

  

An error occurred while creating ZIP file

     

Object reference not set to an instance of an object

The question is quite simple. When I install a WPF application, do I need to install something other than the exe, app.config, and referenced DLLs?

Note: The application is on the network and all machines access via shortcut pointing to the same place (address). Do I need to do anything else on the local machine?

Thanks to all of you right away.

    
asked by anonymous 07.06.2016 / 15:15

1 answer

2

I solved the problem as follows. I generated another app with messages and try..catch in several places (debug in run time) and I saw that in the connection with DB it gave an error. There is a tag in my app.config that was not working.

<oracle.manageddataaccess.client>
    <version number="*">
      <dataSources>
        <dataSource alias="SampleDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=serveralpha)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL))) " />
      </dataSources>
    </version>
  </oracle.manageddataaccess.client>

I saw that tag was not being read. So, I copied the TNSNAMES.ora , I removed all the lines, leaving only the lines referring to the connection with that bank. That way it worked. I just do not understand why dependency of TNSNAMES on the same folder as EXE , but that is for another post.

    
07.06.2016 / 19:33