Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / December 2003

Tip: Looking for answers? Try searching our database.

HTTP download of assemblies

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jeff Grundy - 18 Dec 2003 22:21 GMT
I am trying to instantiate a windows form from a webform.
I have a command button on my web form with the following
code in the on_click.

Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click

       Dim frmTemp As Form
       Dim SimpAsm As [Assembly]

       SimpAsm = [Assembly].LoadFrom
("http://jgrundy1/autodeploy/ClassLibrary1.dll")
       frmTemp = CType(SimpAsm.CreateInstance
("ClassLibrary1.form1"), Form)
       frmTemp.Show()

End Sub

When the 'loadfrom' tries to execute I get the following
error:

"HTTP download of assemblies has been disabled for this
appdomain."

How do I enable download of assemblies?
MSFT - 19 Dec 2003 03:41 GMT
Hi Jeff,

Your code is in codebehind, and will be run on the web server. Normally,
ASP.NET server side code cannot have any user interface and cannot show a
window form yet.

Luke
Microsoft Online Support

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jeff Grundy - 22 Dec 2003 16:52 GMT
Yes Luke, you are right. The codebehind executes on the
server. I don't know what I was thinking.

If I use this on the html side and it works like
expected. "<A
HREF="http://jgrundy1/AutoDeploy/FlatFileCleaner.exe">Flat
File Cleaner</A>"

I click the link and the app is started on the client.
Thanks

>-----Original Message-----
>Hi Jeff,
[quoted text clipped - 11 lines]
>
>.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.