473,395 Members | 1,386 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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
Jun 27 '08 #1
4 1361

"James" <j DOT w AT zoom DOT co DOT ukwrote in message
news:OX**************@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/archiv...06/568563.aspx

Jun 27 '08 #2

"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:%2****************@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?
Jun 27 '08 #3

"James" <j DOT w AT zoom DOT co DOT ukwrote in message
news:en**************@TK2MSFTNGP03.phx.gbl...
>
"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:%2****************@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.
Jun 27 '08 #4

"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:eI**************@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
Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Arnaud Debaene | last post by:
Hello group. I have an app which can load "plugins" assemblies that are described in the registry (each registry entry gives the full path to the plugin ..dll file). The plugins may be anywhere...
3
by: Mike Krueger | last post by:
Hi I'm currently working on a forms designer for a free .NET IDE (SharpDevelop -> www.icsharpcode.net/OpenSource/SD). problem: I try to put 'custom' components (user controls from the current...
2
by: Greg Bacchus | last post by:
Hi, Does anyone know how to get an offline reference to an assembly that has been downloaded using Assembly.LoadFrom. E.g. Application downloads the assembly while it in online... next time it...
4
by: V. Jenks | last post by:
I'm using reflection to dynamically load an assembly and even though I'm sure the assembly is present, I keep getting an error telling me the "assembly or one of its references can't be found". ...
11
by: Michael Maes | last post by:
Hello, I want to be able to load an assembly by selecting a dll from an OpenFileDialog. This seems to work, exept when that assembly references "3rd-Party dll's". Just this simple line: Dim...
6
by: Steve | last post by:
I'm playing with late binding and trying a very simple test to load an assembly In my "Host" application I have this code: <code> string modulePath =...
6
by: shrishjain | last post by:
Hi All, I call Assembly.LoadFrom("C:\\MyDir\\MyAssembly.dll")- it works fine. However when I call the following, it fails: ...
4
by: =?Utf-8?B?SmFu?= | last post by:
I have a .NET 2.0 application divided in two assemblies; the exe and a dll. The application generates a plugin-dll which is then loaded in a separate AppDomain (along with a second instance of my...
2
by: christopher.watford | last post by:
I'm loading a plugin assembly using Activator.CreateInstanceFrom, and inside this assembly is a settings class which gets serialized to XML. The general code flow is as follows: ObjectHandle...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.