Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

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

Reply
 
Old 05-07-2008   #1 (permalink)
James


 
 

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

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



My System SpecsSystem Spec
Old 05-08-2008   #2 (permalink)
Mr. Arnold


 
 

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


"James" <j DOT w AT zoom DOT co DOT uk> wrote in message
news:OXk$ooIsIHA.4376@xxxxxx
Quote:

> 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/archiv...06/568563.aspx

My System SpecsSystem Spec
Old 05-08-2008   #3 (permalink)
James


 
 

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


"Mr. Arnold" <MR. Arnold@xxxxxx> wrote in message
news:%23qqy7GMsIHA.2188@xxxxxx
Quote:

>
> 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?


My System SpecsSystem Spec
Old 05-08-2008   #4 (permalink)
Mr. Arnold


 
 

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


"James" <j DOT w AT zoom DOT co DOT uk> wrote in message
news:enteJ4SsIHA.4912@xxxxxx
Quote:

>
> "Mr. Arnold" <MR. Arnold@xxxxxx> wrote in message
> news:%23qqy7GMsIHA.2188@xxxxxx
Quote:

>>
>> 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.


My System SpecsSystem Spec
Old 05-10-2008   #5 (permalink)
James


 
 

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


"Mr. Arnold" <MR. Arnold@xxxxxx> wrote in message
news:eInhsHWsIHA.2068@xxxxxx
Quote:

>
>
> 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


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
.net fails on every single assembly .NET General
Less verbose [System.Reflection.Assembly]::LoadFrom() ? PowerShell
Re: User Account Controls (Vista Home Premium) Vista installation & setup
Re: Problem running .NET user control hosted on Windows Vista / IE 7 Vista security
Problem running .NET user control hosted on Windows Vista / IE 7 Vista security


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46