472,989 Members | 3,047 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

preventing excessive probing when launching an exe via href

If i create a simple windows form .exe then launch it via a href, ( simple
one touch deployment ), why does
the .net framework/iis search in multiple places and for multiple files
derived from the actual .exe name. ( most of which don't exist )

eg;
2005-03-01 04:47:35 10.2.5.229 GET
/Components/Softix.Platform.Application.Startup.exe - 80 - 10.2.5.232 200 0 0
16621 314 15
2005-03-01 04:47:40 10.2.5.229 GET
/Components/Softix.Platform.Application.Startup.DLL - 80 - 10.2.5.232 404 0 2
1795 264 0
2005-03-01 04:47:40 10.2.5.229 GET
/Components/Softix.Platform.Application.Startup/Softix.Platform.Application.Startup.DLL - 80 - 10.2.5.232 404 0 3 1795 300 0
2005-03-01 04:47:40 10.2.5.229 GET
/Components/bin/Softix.Platform.Application.Startup.DLL - 80 - 10.2.5.232 404
0 3 1795 268 0
2005-03-01 04:47:40 10.2.5.229 GET
/Components/bin/Softix.Platform.Application.Startup/Softix.Platform.Application.Startup.DLL - 80 - 10.2.5.232 404 0 3 1795 304 0
2005-03-01 04:47:40 10.2.5.229 GET
/Components/Softix.Platform.Application.Startup.EXE - 80 - 10.2.5.232 200 0 0
16621 314 0
2005-03-01 04:47:40 10.2.5.229 GET
/Components/Softix.Platform.Application.Startup.exe - 80 - 10.2.5.232 304 0 0
184 314 171

Is there anyway to stop this behaviour ?
Jul 21 '05 #1
5 1460
Hi,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to know how to stop .net from
looking for assembly from multiple directories. If there is any
misunderstanding, please feel free to let me know.

As far as I know, this is the default behavior of .net. It is doing so to
ensure that it can find the correct assembly under certain folder.

You can specify the looking up URL in <codeBase> element in the
configuration file. For more information, please check the following link:

http://msdn.microsoft.com/library/de...us/cpgenref/ht
ml/gngrfCodeBase.asp

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #2
Hi again Kevin,

Yes your understanding of my problem was correct.

I'd actually tried specifying the codebase in the .config file but had no
success with this approach, however, during my various attempts to solve this
problem i'd either missed or failed to register the pertinent line contained
in the page that you referenced in your reply, that being..."If the assembly
is a private assembly, the codebase setting *MUST* be a path relative to the
application's directory."

I'd only ever tried setting my codebase as a url
"http://whatever/myAssembly.dll", which only works if my assembly has a
strong name. ( i don't use strong names because i need to be able to patch
any number of referenced dll's individually, but thats another story. )

Anyway, now i specify the codebase correctly in my .config file the
excessive probing has gone away, and things look a lot cleaner.

My .config file now looks like this...

<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Whatever.Platform.Application"
culture="neutral" />
<codeBase href="Whatever.Platform.Application.exe"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

I don't appear to need the publicKeyToken or version attributes. Can you
foresee any problems in not setting these ?

Thanks again for your help with this issue.


"Kevin Yu [MSFT]" wrote:
Hi,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to know how to stop .net from
looking for assembly from multiple directories. If there is any
misunderstanding, please feel free to let me know.

As far as I know, this is the default behavior of .net. It is doing so to
ensure that it can find the correct assembly under certain folder.

You can specify the looking up URL in <codeBase> element in the
configuration file. For more information, please check the following link:

http://msdn.microsoft.com/library/de...us/cpgenref/ht
ml/gngrfCodeBase.asp

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #3
Hi,

If the assembly is not a strong named one, and we just use in the current
application, I don't think there will be problems.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #4

I've done a fair bit of testing now during the day and all seems well just
specifying the codebase.

Thanks again for your help.
"Kevin Yu [MSFT]" wrote:
Hi,

If the assembly is not a strong named one, and we just use in the current
application, I don't think there will be problems.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #5
You're welcome.

Thanks for sharing your experience with all the people here. If you have
any questions, please feel free to post them in the community.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #6

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

Similar topics

0
by: ptass | last post by:
If i create a simple windows form .exe then launch it via a href, why does the .net framework/iis search in multiple places and for multiple files derived from the actual .exe name. ( most of which...
4
by: ptass | last post by:
Does anyone know what causes and how to prevent getting System.IO.FileLoadException everytime you launch a new version of an .exe via a href. ? The error reads...An exception...
2
by: Steve Barker | last post by:
Hi guys, I have written a web service, but I want clients to be able to consume it without having the .NET framework installed on their PC. The web service doesn't return any values; it is just...
8
by: alanstew | last post by:
With the body tag calling out 'window onload', a function with a 'window.open' fails at the 'window.open' line. If I cut out the body tag, the function executes as normal. At first I thought it...
1
by: james.kingston | last post by:
I've read that one must return false from an onclick handler attached to an anchor if we wanted to prevent the browser from following the href. In a greasemonkey script I'm hacking together with...
2
by: Richard | last post by:
I am writing an installer for our application. The installer places the application .exe in the install directory and then creates a \bin subfolder and places all .dlls in the \bin subfolder. ...
2
by: Joel D Kraft | last post by:
I'm using controls in my ASP.NET application from a couple of vendors. Between the vendors and thier versioning, I've set up subfolders under my bin directory: bin bin\Infragistics\v5.2...
5
by: ptass | last post by:
If i create a simple windows form .exe then launch it via a href, ( simple one touch deployment ), why does the .net framework/iis search in multiple places and for multiple files derived from the...
8
by: Mark Shroyer | last post by:
I just completed a new design for a personal web site. After finishing the basic CSS stuff and double-checking it in Safari, FF, Opera, et al., I put on my war paint and fired up IE7 to figure out...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.