|
Unless your assembly is registered in the GAC or in the system path then you need this. However don't move the DLL once you've registered it with that command because it won't be able to find it then.
|
|
|
|
|
I have a few more questions:
1) If the Com-Visible "wrapper" DLL, which is Com registered and seen by Com clients, wraps another DLL, does this other DLL also need to be COM Visible, registered via regasm /codebase, etc.? My Com DLL references another which references several others. Do all the DLLs need to be COM Visible? I thought that it was only the wrapper that had to be visible but maybe this is not the case?
2) And are there any bad side effects for other .Net applications that also consume a COM-Visible DLL (but not through Com)?
Thanks!
|
|
|
|
|
1) No, if it's wrapping it through .NET code.
2) Not that I know of, depends on how you code it mostly. Situation dependent (e.g. accessing shared resources).
|
|
|
|
|
Thanks, Ed!
I will put in some logging or something to try to figure out why the calls to my wrapper dll seem to do nothing on the com machine, but have the intended effect on the .Net machine.
Glad to hear it took you 2 weeks to get this working; I have been pulling my hair out over it since Friday!
|
|
|
|
|
THAT WORKS! You're a genius!
Now I have to debug the assembly, which doesn't seem to work, but at least I can compile!
THANK YOU!!!!
|
|
|
|
|
Don't worry it took me 2 weeks to get that little gem working to call a C# dll in Delphi 5.
|
|
|
|
|
How do I keep people from browsing sub folders on a .net website?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
how about adding a simple index.htm file in each of them?
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Index.html won't do it because it's a .net site. Right now, I'm using a Default.aspx file set in each sub folder.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Authentication and a web.config in the subfolders you want to be protected.
|
|
|
|
|
But the catch is non-ASPNET parseable resources still bypass aspnet_isapi.dll and web.config may not be able to halt them. An IIS level control is required.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
True - but John is working on a .NET site so he's probably got the necessarys right there.
|
|
|
|
|
Check this out http://www.peterprovost.org/archive/2003/05/16/470.aspx[^]
There is also a hidden catch.
But the catch is non-ASPNET parseable resources still bypass aspnet_isapi.dll and web.config may not be able to halt them. An IIS level control is required.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Need authentication integration, or something simple?
Theres a couple of free .htaccess solutions kicking around.
If you want the integration have a google for the wildcard mapping in IIS to convince it to push all requests thru the ASP.Net isapi dll...
Messy though... are you sure you can't stream the files out (using URL rewriting if you really need nice paths)? Actually you could probably have a generic handler using URL rewriting to pick the file off disk and stream it out. Messy again though heh.
|
|
|
|
|
Am I missing something? What about the "Directory Browsing" check box in the IIS console properties?
led mike
|
|
|
|
|
You must have forgotten that I'm not using IIS...
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: You must have forgotten that I'm not using IIS...
that or I never knew to begin with. What are you using?
led mike
|
|
|
|
|
Hi
I am starting with .net and I wonder how I can load a menu from my resources.
I'm looking for something like CMenu::LoadMenu() of MFC.
thanks
eric
|
|
|
|
|
Hello,
I have created the shared assembly by giving it a strong name and then registring it with gacutil -i TestAssembly.dll
My issue is how can I reffer the shared assembly in the .net applicaiton.
Do I need to browse the path of the dll and add a reference to it? If yes then what shall be this path? The c:\windows\assembly?
Please let me know.
Regards,
Pavas
|
|
|
|
|
mpavas wrote: Do I need to browse the path of the dll and add a reference to it?
No. Just open up the Add References tab in Visual Studio and refer to it in the .NET Assemblies tab. If you've added it properly, it should be visible here.
|
|
|
|
|
How can I get the Assemblies in .NET Assemblies Tab?
I have created a stong name key and then I used the gacutil -i "Path of the Bin\Release\Tetassembly.dll"
Is this correct?
Regards,
Pavas
|
|
|
|
|
If the assembly has been installed correctly, the item in question should just show up in the list without any interaction from you. If not, then you've got some kind of problem with your assembly.
Yes, the command line you used to install the assembly is correct. If you've installed a bad assembly, then tried reinstalling a new one without removing the original, you might run into a problem. In that case, try uninstalling the assembly first, then reinstalling it. If that doesn't work, try adding the /f switch to the command line to force a reinstall without regard to the same assembly name already being installed, essentially, overwriting the registration details.
|
|
|
|
|
thanks will try this out
Regards,
Pavas
|
|
|
|
|
Hi,
I have the following problem: have a splitcontainer with horizontal orientation. The application saves the current settings of the user interface including the splitter distance when the form is closed. When the form is load up the settings should be restored. The problem I have is that everytime the form is loaded the splitter is not positioned correctly. Everytime a value is added to the original value of saved one. I figured it out that if I don't set the splitcontainer's dock propery to "fill" and I don't set the anchor property to "bottom", everything is working fine.
Any suggestion is really appreciated.
|
|
|
|
|
Hello everyone!
I know that System.Web is obsolete, but I can't use System.Net. becouse MS update for System.Net does't work for me.
So I have to use System.Web.Mail.MailMessage instead. It works fine. But when I try to attach file with
mailMessage.Attachments.Add(new System.Web.Mail.MailAttachment(Settings.Default.LicenseFilesStore + licenseFilePath));
My e-mail simply could't be delivered
Could someone please provide me with an advice. M.b. suggestion to download & use some custom developed smtp class.
Thanks in advance.
|
|
|
|