Assembly.LoadFrom fails on Vista,as does IE hosted user controls

  • Thread starter Thread starter James
  • Start date Start date
J

James

Hi,

I have just upgraded a user machine to Vista (our first) as a test.
Unfortunately a couple of our apps are failing due to Vista...

1. One app that loads an assembly from an Intranet website now fails with
FileNotFound on a call to Assembly.LoadFrom(url). This still works fine on
all XP SP2 systems in the company.

2. Maybe related... Our Intranet hosts a couple of csharp user controls in
webpages, these too are not loading now on the Vista machine. It works on
all XP SP2 machines.

Does anyone have any suggestions as to why the two behaviours happen (.Net
2.0 and IE 7 is being used all round).

Thanks!
James
 
James said:
Hi,

I have just upgraded a user machine to Vista (our first) as a test.
Unfortunately a couple of our apps are failing due to Vista...

1. One app that loads an assembly from an Intranet website now fails with
FileNotFound on a call to Assembly.LoadFrom(url). This still works fine on
all XP SP2 systems in the company.

2. Maybe related... Our Intranet hosts a couple of csharp user controls in
webpages, these too are not loading now on the Vista machine. It works on
all XP SP2 machines.

Does anyone have any suggestions as to why the two behaviours happen (.Net
2.0 and IE 7 is being used all round).


Just because it runs on XP doesn't mean it's going to run on Vista. The
solutions you brought over from XP may have to be re-tooled to work with
Vista's security. Under the hood, Vista is another O/S platform even though
it's a NT based O/S.


http://www.ookii.org/showpost.aspx?post=85

<http://community.bartdesmet.net/blo...cation-by-adding-a-manifest-using-mt.exe.aspx>

<http://technet2.microsoft.com/Windo...2b2f-422c-b70e-b18ff918c2811033.mspx?mfr=true>

http://blogs.msdn.com/shawnfa/archive/2006/04/06/568563.aspx
 
Mr. Arnold said:
Just because it runs on XP doesn't mean it's going to run on Vista. The
solutions you brought over from XP may have to be re-tooled to work with
Vista's security. Under the hood, Vista is another O/S platform even
though it's a NT based O/S.

Thanks for your post Mr. Arnold. Fully understood that it is a different OS.
But I was hoping that as I am using .Net 2 on both XP and Vista, the same
functions would work. I did embed manifests for UAC compliance into the app,
but the root of the problem is that Assembly.LoadFrom is failing with
FileNotFound. Do you know where to begin looking as to why this may happen?
 
James said:
Thanks for your post Mr. Arnold. Fully understood that it is a different
OS. But I was hoping that as I am using .Net 2 on both XP and Vista, the
same functions would work. I did embed manifests for UAC compliance into
the app, but the root of the problem is that Assembly.LoadFrom is failing
with FileNotFound. Do you know where to begin looking as to why this may
happen?

I would suspect that a DLL that's there on XP is not there on Vista, and
that's the file not found. You should look at the DLL(s) that are used
during this function and find out what their dependencies or other DLL(s)
used in the process are.

Something you should keep in mind, you build, compile and deploy a solution
for the platform it is intended to run on. You build and compile the
solution on a XP machine to be deployed to XP and you do the same with the
solution if it's Vista -- Vista to Vista.

It's not build solution on XP machine and deploy it to Vista machine, or the
other way around.
 
Mr. Arnold said:
I would suspect that a DLL that's there on XP is not there on Vista, and
that's the file not found. You should look at the DLL(s) that are used
during this function and find out what their dependencies or other DLL(s)
used in the process are.

Something you should keep in mind, you build, compile and deploy a
solution for the platform it is intended to run on. You build and compile
the solution on a XP machine to be deployed to XP and you do the same with
the solution if it's Vista -- Vista to Vista.

It's not build solution on XP machine and deploy it to Vista machine, or
the other way around.

Thanks - I got the Assembly.LoadFrom call working in App1. I needed to
insert a manifest into the app then it ran fine (I thought this app had one
already). The usercontrol hosted in IE still doesnt work, but it now does if
I run the app as admin. The control makes a webservice call to the intranet
(not the server the assembly came from which I think is the problem)
J
 
Back
Top