Answer Questions
Ian Sugar Can't Update, Repair, or Uninstall Microsoft .NET Framework 2.0.
Hello. I have recently found a security patch for my Microsoft .NET Framework, V 2.0. I needed the framework installed for my ATI Driver update to work. However, Every time I tried to install the patch, it failed. I tried repairing the framework, but that didn't work. Neither did uninstalling it. Uninstalling and Repairing yeilded the following message: "The following error occured during setup: Patch Package could not be opened. Verify that the patch package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package." I downloaded and installed the framework from ATI's site. My system is a Windows XP, and I would like some help... Please... Thanks for any ...Show All
hollow COM class factory for component
I'm using a dll that uses WSE 3.0. I installed it locally, everything works fine. I went to upload it to the test server, and got the error that asked me to install it. I had the IT guy install it but now I get he following error in my web-app: Retrieving the COM class factory for component with CLSID {698BFD43-76AA-4D13-98FE-5BE9FF5E05B8} failed due to the following error: 80040154. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {698BFD ...Show All
marcusadolfsson Time scheduling datatype: Schedule, Duration
Hi, one little question here, i can't find it thru the search, might not be using the correct search keys. What datatype should I use to indicate time I mean I want to store 2:00AM, or 5:00PM, just the time, without the date. So it is something like a schedule, a schedule that will runs for multiple days. Secondly, how should I indicate duration Duration like, 30 minutes, 2 hours Since, the unit of measurement is different, be it hour, or minutes; should I change it into the smallest feasible unit of measurement, or should I create a new data structure to store it Is there any ready made data structure in .net Thanks Eugene thanks Lowendahl.. what do you mean by there is now a special Tim ...Show All
tony noriega Reflecting on Properties
How can one determine the common or garden access modifiers of a property (i.e. public, private virtual, override etc) - the PropertyInfo class does not have an Attributes property nor any IsPublic, IsFamily etc properties. The get & set methods have such properties but its not clear to me how one determines which one inherited its modifiers from the property and which one has the accessor specified modifiers. Nor can I see how one can easily determine that a property uses the override attribute to "hide" one of the same name in it base. Rgds PhilD You can get in following way object parameterValue; //----------some input PropertyInfo propertyInfo;/////////////some input Type para ...Show All
Programm3r reflection related query
I am facing one problem in my project. I want to find the referenced assemblies of my current assembly. I am using reflection.assembly.getreferencedassemblies() function for that. But I can't get COM converted .net dll and c++ dlls in that. why what should I do to get that dll also............... I want that dll name anyway..........please show me some way if it's not possible in .net then is it possible in c++................... Thanks in advance.................. You're probably talking about Dependency Walker. It reads a DLL/EXE file to discover the static dependencies and hooks the Windows LoadLibrary and LoadLibraryEx APIs to discover dynamic dependencies. Try a Google query to find out ...Show All
Honey! httpwebresponse.getresponsestream() not working :(
I have a problem using HttpWebRequest/Response, GetResponseStream() will never return a readable response, even though the complete response came through to the client side. Content-Length, encoding etc are all set in the response, but when i put the contents of GetResponseStream() in a stream or a streamreader, they are non-readable and return the error "Stream was not readable". Here is the code i use: HttpWebRequest web1 = ( HttpWebRequest ) WebRequest .Create( http://my.test.server/data ); web1.ContentType = "application/x-www-form-urlencoded" ; web1.UserAgent = "Mozilla/4.0 (Windows XP 5.1) Java/1.5.0_07" ; HttpWebResponse resp1 = ( HttpWebResponse )web1.GetResponse(); Stre ...Show All
tayeen dotnet 2.0 on windows server 2003 enterprise sp1
Hi all, i am unable to install dotnet 2.0 on server 2003 sp1, it says u need windows installer 3.0 and when i try to install windows 3.0 it says the current version of windows is already updated. can anyone help me how to setup windows server 2003 sp1 for hosting asp.net 2.0 websites were u able to solve this problem please let me know if anyone solved this problem. i have been experiencing the same situation since the last three days ... let me know if there is a solution.... can you check if windows installer 3.0 or 3.1 shows up in your ARP. If not can you please install windows installer 3.1 from http://www.microsoft.com/downloads/details.aspx FamilyID=889482FC-5F56 ...Show All
minority80 App.Config - Enterprise Library - Security Issues
Hi guys, I am just trying educate myself on the usage of the Cryptography Application Block from the Enterprise Library. When you select a symmetric algorithm and then define a key file using the Enterprise Library EXE, it modifies the contents of your application's app.Config file. When examining the app.Config file, I can tell the name of the symmetric algorithm used and the location of the keyfile. Forgive my noob understanding but doesnt this pose as a security risk Since the location and the name of the symmetric algorithm are presented in clear text How does one go about protecting this type of sensitive information within the app.config file. Is there an enterprise library method that I could use to encrypt this section of the a ...Show All
JIM.H. Creating class to create bitmap of forms graphics object
I often need to capture a forms drawing surface and write it to a file. Typically I'd create the bitmap then save that and draw it to the forms graphic object but I'd like to do this more generally. Here is some code to create a class to do that but I cannot get to work. The gaphics from g does not transfer to ng and therefore the saved file is blank. class ImageCreator { public void CreateStill(System.IntPtr WinHandle, int w, int h) { Graphics g = Graphics.FromHwnd(WinHandle); Bitmap bmp = new Bitmap(w, h); Graphics ng = Graphics.FromImage(bmp); ng = g; bmp.Save(Application.StartupPath + "\\img.bmp"); } } I'd call it like this: ImageCreator ic = new ImageCreator(); ic.CreateStill(this.handle, this.ClientSize.Width, this.ClientSi ...Show All
WinDeveloper Optimizing array use
Currently: User data is being pulled from a database. The returned recordset is looped through and saved into a variant array (using classic asp here) . For every user, there is a ReDim Preserve (5, NumUsers) call. As the data is being put into the array, there is some business logic being applied that SQL is not suitable for. The array is then sorted based on values generated by the business logic and displayed in a web page. The problem: Although inefficient, this has worked quickly (under 3 seconds for a page load) in the past because Customers have had very few users each. We are now getting a customer with a very large user base and even a fraction of their users will be enough to slow a page load down to a minute or two. As ...Show All
Abhilash CR How can I save textbox with value in the windows forms as xml file with Rootnode and Child and sibling nodes?
Hi Please sombody help. I am trying to do the following for the past 5 days but I couldn't do it. 1. I have table and picked up one row with 70 colums as dataset 2. I used Dataset.writexml("..\test.xml") 3. All 70 colums writtern as xml but under one root element.(like below) <root> <1>gh</1> <2>fg</2> <3>fg</4> <4>fg</4> <5>fg</5> </root> 4. I want the xml as below <root> <test1> <1>gh</1> <2>fg</2> </test1> <test2> <3>fg</4> <test3> <4>fg</4> </test3> <5>fg</5> </test2> </root> ...Show All
coconut113651 How can I synchronize two MS Access tables?
Hello, I have 2 MS Access databases, In each database I have a table called catlog. What I want to do is to check the catlog table in database (B) and pass over each row to see if it (the row) exists on table (A). If the row doesn't exist, I insert it as a new row, if it does exist I update the existing row. I want to do that at the runtime of a C# program. Your help would be greatly appreciated. Thanks a lot, I'll try that. Hello, What if the source database column uses a combo box and shown only the second column, (first one is id and set width to 0" and hide), how can we change the above code to get the second column. I tried and always get the first colu ...Show All
Ica xml as return string( http request/response)
i have two aspx files Default1.aspx and Default2.aspx Default1.aspx Calls a http request to Default2.aspx Accepts a string Parse this xml Default.aspx return string as xml But I am not able to do this……. Usually we parse xml when we have it as a file. like XMLFile3 .xml etc XmlDocument xmldoc = new XmlDocument (); xmldoc.Load(Server.MapPath( @"App_Data\XMLFile3.xml" )); but how do i do it when it is a string Hi, If you have a static XML you could put them to a file and read the file. But your best option could be XMLTextWriter. This class is exactly meant for your need. Note: Concatenating stri ...Show All
AlucardHellSing Specifying framework version with COM interop
We are having problems with COM interop called from a Classic ASP Page loading the wrong version of th framework. If I load an assembly written in 1.1 on a computer which has multiple versions of the framework 1.1 & 2.0 and it is called from another assembly everything is OK and it uses the correct version. However, t here is documented behavior with COM interop where it ignores the registered version of the framework in an assembly. I f the same assembly is loaded through COM interop it loads and runs in the 2.0 framework. Seems this behavior is noted and documented ( http://west-wind.com/weblog/posts/1319.aspx ) and even some potential solutions - Here and here but these only seem to work for apps that don't get register ...Show All
Subhas Publisher Policy to patch another Publisher Policy
Is it OK to provide two publisher policy files for a single version of an assembly e.g.: PubPolicy 1.0.0.0 redirect to 1.0.0.1 PubPolicy 1.0.0.0 redirect to 1.0.0.2 How will the CLR loader respond to this Will it pick the latest version It would be nice if it worked this way since it would allow us to provide roll-up patches. I guess the other approach is to provide a redirect for the previous publisher policy file e.g.: PubPolicy 1.0.0.0 redirect to 1.0.0.1 PubPolicy 1.0.0.1 redirect to 1.0.0.2 This isn't quite as nice because it requires the 1.0.0.1 patch to be installed before the 1.0.0.2 patch can be installed. Thanks for answering this! No, the first ...Show All
