PC Review


Reply
Thread Tools Rate Thread

Calling dotnet assembly from URL

 
 
hungrymind@gmail.com
Guest
Posts: n/a
 
      17th Aug 2005
Hi All,

What I am trying to do is call one dll with query string as parameter,
based on that my dll will decide how to perform. Basically I am trying
to create assebly which will return some value in xml or any format
based on querystring.

To start with I have created one assembly with main function which
alerts window alert box.

class TestClass{
public static void Main() {
System.Windows.Forms.MessageBox.Show("hi");
}
Now in another project I have written
Response.Redirect(@"Project1.dll?i=1");
on button click event.

I tried calling dll using absolute URL path as well, but it gives error
"System.Security.SecurityException". Then I tried to configure IIS for
that particular virtual folder & enabled excutables to run, then I see
white page in browser with error "The specified procedure could not be
found." I tried to put dll in GAC after strong nameing, but it didnt
work as well.

Is it possible to call an assembly in such way. However I have seen
such application earlier where you call dll with querystring & it gives
pages based on data requested, probably developed in VB or some other
languages. For example, VB6 creates search.dll for ASP projects, which
works in same manner. Another example is
https://203.122.18.250/WorldClient.dll?View=Main

My aim is to call this URL via SOAP using javascript, & dll will return
some data to javascript, which will be used to display the data. I can
call another aspx or any other page but I want to keep the file in one
assembly & would be used as control.

Please let me know if such thing is possible or not. If yes, how?

Help appreciated in anticiaption,

regards,
- hungrymind
http://www.hungrymind.co.in

 
Reply With Quote
 
 
 
 
thinkfr33ly@gmail.com
Guest
Posts: n/a
 
      17th Aug 2005
..NET/ASP.NET/IIS don't really work this way.

Your best bet would be to create an ASP.NET HTTP Handler by
implementing System.Web.IHttpHandler.

Doing a quick google search for "ASP.NET Http Handler" will return many
examples.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strong-named assembly calling unsigned assembly: FileNotFoundexception Carol Microsoft C# .NET 7 21st Apr 2009 05:21 AM
COM Calling DotNet Derek Hart Microsoft VB .NET 8 27th Nov 2008 11:30 PM
Use DOTNET assembly in Word 97 Pete Kane Microsoft C# .NET 1 20th Dec 2007 03:24 PM
Dotnet Assembly Versioning Ben Microsoft Dot NET 6 28th Mar 2007 12:53 AM
Problem calling assembly which references another assembly from an asp page christianhaynes@hotmail.com Microsoft ASP .NET 3 3rd Mar 2006 04:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:15 PM.