|
Yep, that third one probably did it. I've thought of another way it could happen: if the other security.dll is a managed DLL.
The CLR still uses the LoadLibrary API to load managed DLLs, for compatibility with Managed C++ (in which it's possible to implement DLLs with so-called 'flat' exports) I think. This loads the DLL with an explicit path. If this gets loaded before the P/Invoke (embedded in the depths of System.DLL) happens, LoadLibrary will return a handle to this managed DLL rather than looking for the DLL in System32, even on Windows Server 2003. This could happen if another website in the same application pool which uses that DLL starts before your application does.
My solution of using LoadLibrary explicitly likely wouldn't help in that case.
If you can delete that extra security.dll , that's the easiest solution. I suspect it's being copied back there by a different web application, though. Check the bin directory under your application roots.
If you ever have to deal with a situation where another web application is using a security.dll (or any other name which conflicts with a system DLL), your best bet is probably to create a separate application pool for one of the conflicting applications. This will force it to get a different W3WP worker process (in IIS 6.0), so they won't conflict.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hi Mike
What third one did the trick? Are you saying I should leave the security.dll alone that is located
is system32 and delete the other 2? One is in System32 and the other 2 are in "Framework" someplace.
Which should I delete?
I have looked in all the bins on the site and I got the security.DLLs out of there. While they
were not located directly in this application, I hope that was causing the problem.
This is great. I hope it solves the problem.
Rob
Rob Taylor
www.tconsult.com
|
|
|
|
|
http://www.tconsult.com/aspnet/server2003/entry_point_EnumerateSecurityPackagesW.aspx
Rob Taylor
www.tconsult.com
|
|
|
|
|
I have a small program that runs the MSDE installer, then attaches a database etc. Now MSDE installs MDAC, but the program imports System.Data.SqlClient, which requires MDAC, and works nearly on every target machine.
Am I correct in guessing that the runtime only loads the MDAC stuff when it is first required, so the first function call to install MSDE doesn't use any data access, and by the time the second runs, the data access dll's are already present.
My blog.
|
|
|
|
|
can anyone tell me how to open an existing microsoft word and microsoft powerpoint document in dot net?
seemeen
|
|
|
|
|
|
i dont think the article helped me much.
let me put this again:
need to know how to open word and power point sdocuments directly in the browser?
u see i have some pdf, word and powerpoint documents.they are placed in some location on my hard drive.
i have the paths of all thesein my SQL database.
now these paths appear in a data grid like hyper links its something like this:
doc1.ppt (power point file)
doc2.pdf (adobe file)
doc3.doc. ( word file)
so as soon as i click on a hyperlink, the selected document should open up in the browser directly.
the pdf files open directly the word and power point docs do not open.
Please note that i am developing an ASP.net (with VB.net) application
now how do i do this?
|
|
|
|
|
Hi there, Seemeen. I took from your original question that you wanted to write a .NET application that would open/manipulate word & powerpoint documents. It sounds like you want - from a user's point of view - to click a link and have the document open directly in the browser, rather than in a seperate instance of the application. Is this correct?
If that is the case, you are dealing with a client-side issue then, not a server-side issue. It's up to the client machine to determine how a document will open. I believe IE by default will open Microsoft Office documents inline rather than in a seperate instance window - so there may be a setting configured on your client machine that is forcing the documents to open seperately. Here are some links to relevant KB articles:
http://support.microsoft.com/?kbid=162059[^]
http://support.microsoft.com/default.aspx?scid=kb;en-us;254918[^]
http://support.microsoft.com/default.aspx?scid=kb;en-us;193823[^]
You can check the settings it describes to see if you have any of them set on your machine.
|
|
|
|
|
How can you install the DOT net framework completly silently? I use the /Q in the command line of dotnetfx.exe, but it prompts me for the lisence agreement. Is there a way to install it completly silently? I need to do an administrative install on many computers, and it is not possible to click ok for each one.
thanks
|
|
|
|
|
I have an application, that is built using 1.0.1515.12345 of a component in the GAC. I have auxillary programs(dlls) that also depend on the exact same version. I was hoping there was some way to examine the compiled dll (that doesn't load), to find out which version of the GAC based component it is depending on. All I seem to be able to glean at this point is that it won't load.
I'm hoping to be a little more helpful to the developers of these Dll's.
If I can't then i guess that's life.
I found this article on here on Codeproject.Undocumented Fusion[^]
|
|
|
|
|
Hi,
I am using Treeview for drag and drop, and when I am dragging and moving around the treeview, I would like to highlight the node that has current focus, so that I can come to know on which node it is dropped, just like Explorer window.
Thanks,
Sreepathi
|
|
|
|
|
How does one go about checking that a particular Library or Component has been installed on a client machine in a .NET environment? I would like to gracefully handle situations where the library has not been installed when the application has been run.
For instance, the ODBC .Net data provider needs to be installed seperately from my application, and I would like to be able to tell the user that it has not been installed if that is the reason my application cannot start up. Can I check that somehow?
Thanks for any pointers.
-swc
|
|
|
|
|
How do you convert a utf8 string to a unicode?
The string was originally a unicode string.. But it was converted to utf8 so that it can be sent/transported to a network... Now my task is to convert the utf8 string i got from the network and display it as unicode..
|
|
|
|
|
string s = System.Text.Encoding.UTF8.GetString( bytes ); If you prefer VB to C#, leave off the semicolon.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hello there
I have a Winform whit a birth date field that I enter
I want to get Pup up Form Whit a 1 week reminder off all my birth date of all my customers & I want an also 3 day remind & at the same date
Exsmpale : if i enter that Tomi birthdate is in 15/08/1974
i want pupup that remind me in 10/08/2004 in 13/08/2004 in
15/08/2004
how can I do it ?
I am working whit a Accses Database & C#
thanks allot to all...
please help...
|
|
|
|
|
I see that MS has just released VS6 SP6. So a supposedly dead product gets its sixth SP while a live product, VS .NET, has yet to receive one - at least as far as the IDE is concerned!
Kevin
|
|
|
|
|
How many C++ developers continue to use VC++ 6, and how many have moved to VC++ 7? This number will say whether the product is alive or dead.
...Plug & Pray...
|
|
|
|
|
I use VC++ 7.1! Much better compliance with standard C/C++ than 6.0, and a better optimizing linker, plus a few stack check options which help secure things. I'm waiting for VC2005 with great anticipation. Now if they'd only put in some gcc -esque things like __complex , __attribute__((unused)) , __extension__ and __restrict__ it'd be tons of fun
|
|
|
|
|
Dimitris Vassiliades wrote:
This number will say whether the product is alive or dead.
I was thinking more in terms of Microsoft's definition of dead, i.e., they might declare it "dead" and drop support for it even though it still has high usage.
Kevin
|
|
|
|
|
There are two types of channels that .NET framework provide 1)TCP and 2)HTTP and there are custom channels that u can create using any stream oriented transfer technology like Sockets, Named Pipes and MSMQ.
My question is which channel is suitable in which situation. Can anybody tell me when should i use named pipes channel and when MSMQ.
Need urgent response ....
@!$h@
|
|
|
|
|
I'd say, use an HTTP channel when you want to traverse a firewall and a TCP channel when you're working entirely within a single site.
If you need to work with a network that doesn't support TCP, you might use Sockets to create an IPX stream, for example. Or, you could use Named Pipes to support any stream protocol that Windows supports (and, in addition, get support for impersonation, though this might be tricky to handle).
You might use MSMQ if you wanted to queue up requests to level out workload and provide failover capabilities. I'm not actually sure this would be possible with remoting.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
If my parent form has a menu botton "Save_All",
With a click it wants to call the "Save" functton in every child form,
Is it possible...??
Can the parent form use the functions of its children...??
And can the children form use the variables of their parent...??
|
|
|
|
|
You can get array with all child forms and than loop through it. Before calling childs method you need to cast it to correct type.
foreach(From child in this.MdiChildren)
{
if (!child is MyChildForm) continue;
((MyChildForm)child).Save();
}
foreach(MyChildForm child in MdiChildren)
{
child.Save();
}
|
|
|
|
|
I created an installer package which has been installed by several clients. Now I want to create a new version. I increased the version number and changed the upgrade code of the installer package and set the RemovePreviousVersion property to True and set the DetectNewerInstallerVersion to True as well. I have several registry setting setup in the registry editor. However if the client has a previous version of the application installed I want the system to remember those settings and not override them. Because the RemovePrevioiusVersion property is set to True the system removes all settings after which they are lost. However if I don't set this property to true the system willl install 2 version of the application on the target machine.
How can I create a package that overrides (or removes) the old version but doesn't override the registr values so that previous configuration settings will be maintained? I spend many days trying to find a solution but haven't had much luck. Also it must be possible to use this package as the first installer meaning that if the client never had the application installed before, he can run the setup to install the application. In other words it is not just a patch for older versions.
|
|
|
|
|
I want to know what libraries do I need to read up on if I want to build an app that sends info to a webpage. I am programming in C# using .NET. The info I would be sending would be text to a text box and submitting it to the website, also downloading images from the website as well. How can I do this with .NET without having to manually do this through a browser?
Thank you,
K
|
|
|
|