Hi
I am building a smart client application in which i am calling the assembly (exe ) on web server by assembly.loadfrom() method in client exe.
I have tried deploying assembly by all the three methods i.e XCopy , Global Assembly Cache and Code Base.
The first time the assembly loads fine , but affter making some change and changing the version of assembly and than again deploying on the web server.
Now if i try to run my client exe , it still shows the old version exe and not the new version.
Could someone let me know what could be the problem , I tried clearing download assembly cache hoping the old version is coming from cache. But thats not the case , it just shows the old version exe.
My App.Config is :
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="SmartTest" publicKeyToken="0c1c679667aa20be" />
<codeBase version="3.0.24.0" href="http://localhost/smarttest/bin/SmartTest.exe"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
Assembly Calling Exe code :
im downloadedAssembly As [Assembly]
Dim formType As Type
Dim downloadedForm As Object
Try
'download and load the assembly
downloadedAssembly = [Assembly].LoadFrom("http://localhost/smarttest/bin/smarttest.exe")
'find the type in the assembly for the object we want to create
formType = downloadedAssembly.GetType("SmartTest.Form1")
'Create an instance of the desired type and show it
downloadedForm = System.Activator.CreateInstance(formType)
downloadedForm = CType(downloadedForm, Form)
If Not (downloadedForm Is Nothing) Then
downloadedForm.Show()
End If
Catch exc As Exception
MessageBox.Show(exc.ToString())
End Try
Thanks,
PS
---
Posted using Wimdows.net NntpNews Component -
Post Made from
http://www.DotNetJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.