![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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. > > 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 Specs![]() |
| | #4 (permalink) |
| | 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? 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 Specs![]() |
| | #5 (permalink) |
| | 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. > > 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 Specs![]() |
![]() |
| 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 | |||