Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.Net 4 FileLoadException permissions problem

Status
Not open for further replies.

zeevgetner

Programmer
Dec 24, 2000
37
IL
I have created a very simple window service using visual studio 2010 and .Net 4.0.

This service has no functionality added from the default windows service project, other than an installer has been added.

If I put the files on my local mach and run installutils, it works.
If I put the files on a network folder it fails.
Gives

Exception occurred while initializing the installation: System.IO.FileLoadException: Could not load file or assembly 'file:///C:\TestService\WindowsService1.exe' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515).

I need to put the files a the network, because I install the same service on a few machines, and I to handle versions simply.
I tried to put in the config file
configuration>
<runtime>
<loadFromRemoteSources enabled="true"/>
</runtime>
</configuration>

with no help
I clicked proerties on the install file, as suggested by other posts, and cannot find "unblock"
I have Win XP SP3
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top