Judoshiai's Q&A profile
.NET Development strange problem with loading an assembly using custom AppDomain
I'm trying to load assembly files using a custom class, which was created through a custom AppDomain. Here's my Main code block: AppDomainSetup setup = new AppDomainSetup(); setup.ApplicationBase = @"C:\test"; setup.ApplicationName = "test"; setup.PrivateBinPath = "bin;plugins"; AppDomain domain = AppDomain.CreateDomain("MyDomain", null, setup); General.Loader load = (General.Loader)domain.CreateInstanceFromAndUnwrap("Loader.dll", "General.Loader"); Type[] types = load.LoadAssembly("TestObject"); All this does is setup an AppDomain and point it to "c:\test" and then I set the assembly folders it should look for when loading an assembly. The General.Loader cla ...Show All
Visual Studio Team System TF53010 - WAREHOUSE update error - Urgent
The following error below has appeared recently within the event loag of our team server. Our graph reports also show no data since the error occured. Error can be replicated by issuing the 'Run' command from the following asmx. http://localhost:8080/Warehouse/v1.0/warehousecontroller.asmx Any ideas please Thanks in advance. TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 22/02/2007 16:18:07 Machine: TEAM01 Application Domain: /LM/W3SVC/3/Root/Warehouse-19-128166346769658534 Assembly: Microsoft.TeamFoun ...Show All
Windows Forms Call a BindingNavigator Method
I would like to activate an event associated with the BindingNavigator control. Specifically, I want to assign an access key to activate the MoveNext and MovePrevious buttons. However, I am missing a concept somwhere to get this to work. I've tried the following with errors: this .materialsBindingNavigator.MoveNextItem(); this .materialsBindingNavigator.MoveNextItem.Click += new EventHandler (MoveNextItem_Click); bindingNavigatorMoveNextItem_Click(); Thanks, cj Yes, thanks: this .BindingSource.Position = this .flagsBindingSource.Position -1; ...Show All
Windows Forms Writing to console in batch mode
Hi so I have enabled batch mode for my application and it seems to work fine. However I am unable to write to the cmd window. For Example Console.Writeline("My Text Here") won't do anything in the console but if I do something winform based such as MessageBox.Show("My text here") the dialog pops up. So my question is how do I write to the command window Changing the output type doesn’t change your ability to use Windows forms or GUIs in general. The major difference between building and running your app as a Windows app vs a Console app is the way messages are handled but more relevant to you, a Console application doesn’t immediately return to the calling application when ...Show All
SQL Server Error -2147024809 An error has occured on the computer running IIS
I am sync. for the first time (Merge Replication using SQL 2005 and Mobile) and this error keeps poping up on the emulator. I am tring out the tutorial. :) boss on my butt. Does anyone have any ideas or a solution to this...your help is WELL APPRECIATED ... Error code: -2147024809 zo Did you run the above code on the CE device If true then I am wondering repl.InternetUrl = " http://localhost/SQLMobile/sqlcesa30.dll " might be the cause. Can you try to use the IIS machine name instead of "localhost" Thanks. This posting is provided AS IS with no warranties, and confers no rights ...Show All
Community Chat Task buttons hidden (disappear) in Toolbar
Hi there, Please help!! Recently, I hit the problem is the Task button hidden (disappear) in Toolbar, I open over 8 tasks but no task buttons shown inside the Toolbar, I just can use Alt+Tab hot key to change active windows. Thx you guys Sue Sue, I hope someone has an answer. I have the same issue. It has to be something user related as other users on my machine do not have the problem. I have Windows XP2 with the latest updates and Office 2007 running. Ed ...Show All
Software Development for Windows Vista How to include transform filter in a graph builder that uses graphbuild::render method from a source filter?
Hi, How modify my source to allow to insert a transform filter between a H.264/MPEG2 decoder and a render filter. This graph builder without my filter is created with graphbuilder::render method. How create a filter property's page What i need to access to diferent parameters values of my filter what is the best way to save changes in values for the filter Thanks. You can always build the graph manually (using AddFilter and IPin::Connect). Generally if I need to do manual work, I end up using ICaptureGraphBuilder2::RenderStream(). As for supporting IPropertyPage, check out CBasePropertyPage in the base classes. ...Show All
Visual C# Announcing: XML Notepad 2007
Here's a fun little app written in C# using .NET Frameworks 2.0. See: XML Notepad 2007 Handy features include: Tree View synchronized with Node Text View for quick editing of node names and values. Incremental search (Ctrl+I) in both tree and text views, so as you type it navigates to matching nodes. Cut/copy/paste with full namespace support. Drag/drop support for easy manipulation of the tree, even across different instances of XML Notepad and from the file system. Infinite undo/redo for all edit operations. In place popup multi-line editing of large text node values. Configurable fonts and colors via the options dialog. Full find/replace dialog with support for regex and XPath. Good ...Show All
Windows Forms Treeview control
I am building treeview control nodes from a database table.. when a user right click on a tree node, i am showing them a some textboxes( in the same form as treeview, where they can enter data) what I want to do is when they hit submit button take them to the next tree node. It this possible Try this: private void btnSubmit_Click(object sender, EventArgs e) { // Do your submit stuff // ... // Then move to the next node in the tree TreeNode node = treeView1.SelectedNode; if (node.Nodes.Count > 0) // Select sub-node treeView1.SelectedNode = node.Nodes[0]; else if (node.NextNode != null) // Select next node treeView1.SelectedNode = node.NextNode; else { ...Show All
SQL Server Binary Data on Multiple Servers
I'm using EncryptByKey to encrypt data in my SS2005 database. Since our server is really slow to access from home to work on, I used the Database Publishing Wizard and installed the db to work on at home. Then I created the certificate and symmetric key in my home db. When I pull info using the DecryptByKey on our database at work on Windows 2003 Server, no problem, the data is decrypted. However, the same data does not decrypt at home on my Windows XP computer. I'm using TripleDes on both machines for the symmetric key (AES won't work on XP). --To create my cert and key: USE My_DB; CREATE CERTIFICATE MyCert ENCRYPTION BY PASSWORD = 'some password' WITH SUBJECT = My Data', START_DATE = '01/01/2007', EXPIRY_DATE = '01/01/2099' ...Show All
.NET Development Webservice: "The ASP.NET process identity does not have read permissions to the global assembly cache."
I'm uncertain what the best forum is for this - I also posted this in the ASP forum. I am developing a distributed application with a client-side java calling a webservice serving a static binary database. The application works well with the VS2005 Development server on XP Pro SP2. However when I publish it to an IIS v5 environment, it fails with these errors. 3.) .aspnet_wp.exe (PID: 3988) stopped unexpectedly 2.) Failed to execute the request because the ASP.NET process identity does not have read permissions to the global assembly cache. Error: 0x80131902 1.) Failed to initialize the AppDomain:/LM/W3SVC/1/Root Exception: System.Configuration.ConfigurationErrorsException Message: Exception ...Show All
Internet Explorer Development problem with IE7 - links suppose to open in the same page but it opens a new page in my website
Hi i'm designing this website using dreamweaver 8, i used frameset method to devide the page into 3 frames top frame which contains the flash navigation menu, left frame which contains ads , right/content frame which contains the content of the website. when the user click any of the links on the menu it should be opened in the content frame , it worked fine in IE6 , but when i upgraded to IE7 things changed every link now opens in a new page! this is the flash code i'm using in each link getURL("../services_en/services_en.html" , "content"); content is the name of the frame that i wish all the links appear in. i've tried the <base target="content"> included in the head tag of the menu page but that d ...Show All
.NET Development Events with COM Interop & VB6.0 for C++
Greetings, I appologize if this is in the wrong forum but this looks like the most applicable for my issue. I've written in VS 2005 C++ COM visible classes and these work great from VB 6.0 applications. My only problem surrounds events/callbacks. I've replaced a native ActiveX component with a .NET/COM visible one and everything works, except a simple event it needs. Under no circumstances have I been able to get VB 6.0 to reference a .NET class with the "WithEvents" keyword nor be able to install an event handler/callback. I need a very simplistic event or callback, which is a simple single-argument "TimeOut" handler for asynchronously processing data in the .NET assembly. It simply needs to call a given VB6.0 function ...Show All
Visual Studio Express Editions How to get Primary Key from Recordset in VB 2005 Express
Hi, I am trying to fetch Primary keys for different tables in Oracle and Sybase. After doing some search, I found the following code, but I am not sure how to get the primary key from recSet recSet = objConn.OpenSchema(adSchemaPrimaryKeys, Array("database","schema","tablename")) recSet!COLUMN_NAME does not work in 2005 Express edition and recSet.Fields has all the columns in the table. Not sure how to identify primary for the same. Please advise. Thanks Shiv Shivaram, If you would like to upgrade your VB6 code to the .NET Framework and compile it in Visual Basic 2005 Express, I suggest you to read the related documents on the migrating because there are ...Show All
SQL Server Upgrade MSDE to SQL Express. Connection problem
I have just done an in-place upgrade from MSDE to SQL Express with Advance Services for my customer. After upgrading, the program was not enable to connect to SQL Express and threw an error (the program connect to the server through OLEDB provider) Code -2147217843 (80040e4d) - IDispatch error #3149 - Source : Microsoft OLE DB Provider for SQL Server It only works if I replace the string "Provider=SQLOLEDB.1" with "Provider=SQLNCLI.1". I wonder why I have to do that because in my working PC and other customers, I don't get this. The customer's PC use Windows 2003 Server for Small Business Server SP1 Thanks in advance Huy Le Hi Huy, I'm not sure why changing the provid ...Show All
