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

Re: Assembly.LoadFrom fails on Vista,as does IE hosted user controls by Mr

Mr
Wed May 07 23:12:22 CDT 2008


"James" <j DOT w AT zoom DOT co DOT uk> wrote in message
news:OXk$ooIsIHA.4376@TK2MSFTNGP06.phx.gbl...
> 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/blogs/bart/archive/2006/10/28/Windows-Vista-_2D00_-Demand-UAC-elevation-for-an-application-by-adding-a-manifest-using-mt.exe.aspx>

<http://technet2.microsoft.com/WindowsVista/en/library/00d04415-2b2f-422c-b70e-b18ff918c2811033.mspx?mfr=true>

http://blogs.msdn.com/shawnfa/archive/2006/04/06/568563.aspx


Re: Assembly.LoadFrom fails on Vista,as does IE hosted user controls by James

James
Thu May 08 12:07:44 CDT 2008


"Mr. Arnold" <MR. Arnold@Arnold.com> wrote in message
news:%23qqy7GMsIHA.2188@TK2MSFTNGP04.phx.gbl...
>
> 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?



Re: Assembly.LoadFrom fails on Vista,as does IE hosted user controls by Mr

Mr
Thu May 08 18:19:02 CDT 2008


"James" <j DOT w AT zoom DOT co DOT uk> wrote in message
news:enteJ4SsIHA.4912@TK2MSFTNGP03.phx.gbl...
>
> "Mr. Arnold" <MR. Arnold@Arnold.com> wrote in message
> news:%23qqy7GMsIHA.2188@TK2MSFTNGP04.phx.gbl...
>>
>> 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?

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.



Re: Assembly.LoadFrom fails on Vista,as does IE hosted user controls by James

James
Sat May 10 20:01:46 CDT 2008


"Mr. Arnold" <MR. Arnold@Arnold.com> wrote in message
news:eInhsHWsIHA.2068@TK2MSFTNGP05.phx.gbl...
>
>
> 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