borice's Q&A profile
Visual Studio Tools for Office Is Excel a partial trust caller?
Hello, I have a ExcelWorkbook solution where I call a WCF Web Service. Then I have this error: “{"An error occurred creating the configuration section handler for system.serviceModel/client: That assembly does not allow partially trusted callers. (C:\\xpto\\bin\\Debug\\ExcelWorkbook1.dll.config line 30)"}” Well... I already put the ExcelWorkbook1.dll assembly as a full trusted on the “.NET Framework 2.0” on the “Administration Tools”. What more can I do Tanks, Patricia Sobreira. Hi Patricia, I believe you need to FullTrust your config file as well. The reason is that the call of the WCF walks up the stack and checks whether everything on ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 2-D game making HELP???!??!?!?
So I downloaded XNA Game Studio Express for Windows, and I just wanted to make a 2-D game ....and I thought it was just drag and drop not all these codes and stuff....I am using the wrong software or something.....HELP ! ! ! ! ! Yes your using the wrong software if you want to drag and drop...try Game Maker its good for 2D games.However if you don't mind coding open up C# and click Help then how do I and check out the help on XNA in there is a tutorial on 2D or you could try searching for something like XNA 2D Tutorial.But what ever you use it's usually not going to go without some coding..even Game Maker uses coding. ...Show All
SQL Server Issues with removing replication
SQL Server 2005 Standard replicating to an identical server. My issue: When we go into the database to remove a large number of rows, it says we are unable to delete since the database is in replication. Is there a way to pause, or stop replication temporarily I stopped the log reader but it still gave me the same error. The only way I have found around this is to delete the publication and re-create it when I'm ready. Now though, I'm unable to delete the publication. SQL Server Management Studio will freeze if I either try to delete something from the UI or command line. This happens with objects in SQL Server as well as rows and such. It will just freeze and I have to kill the process. Please Help! Can ...Show All
SQL Server Generate script of ALL database objects
I need to be able to programatically generate the CREATE scripts for all objects for a given database. Basically, I need the same results as if I generated the script using SSMS and choosing to script all objects in the selected database. I'm hoping I could do this using the Scripter w/in the SMO Utility Classes. Can anyone help me out Thanks in advance! There is a property in the Transfer object named 'FileName'. When you supply this property with a file path the generated script is output to a text file and the 'GO' statements are in the text file. ...Show All
SQL Server Having Problems Installing SQL Server 2005 Express
I am running WinXP Home edition, and I was trying to install SQL Server Express, but the error message is too vague for me fix. It says my computer lacks the "Service Pack Requirements" to run the software, but I'm afraid I don't know which service pack requirements the error is talking about. What Service Pack do I need to download Here is the report from the install: System Configuration Check - WMI Service Requirement (Success) Messages WMI Service Requirement Check Passed - MSXML Requirement (Success) Messages MSXML Requirement Check Passed - Operating System Minimum Level Requirement (Success) Messages Operating System Minimum Level Requirement Check Passed ...Show All
Windows Forms Combo Box DataBinding to Object Properties
I have several combo boxes on a tab control and I am binding the SelectedValue property to an instance of a class like this. SalaryTypeComboBox.DisplayMember = "SalaryType"; SalaryTypeComboBox.ValueMember = "SalaryTypeID"; SalaryTypeComboBox.DataSource = PayrollClass.SalaryTypes(); SalaryTypeComboBox.DataBindings.Add("SelectedValue", emp, "SalaryTypeID"); emp is the instance of the class. PayrollClass.SalaryTypes(); returns a DataTable. The SalaryTypeID in the DataBindings.Add method is a property in the class. When the user selects a diffferent value in the combo box the form locks up and will not respond. It appears that the combo box has not updated the selection and keeps the focus not mat ...Show All
Visual Studio Team System How to create AreaPath dropdown in winforms?
Hello all! When creating a new bug in Team Explorer, you have an Area: field that holds a nice dropdown that includes a look-a-like treeview. I believe the type is called "TreePath". Anyway...I'm currently creating a winform application and would like to re-create this Area dropdown. For example purposes, when creating a bug in VSTS, the Area field looks like this: Vince Test Project -item 1 -item 2 -item 3 So far I've manage to do the following inside my winform application: NOTE: _store.Projects[9]...project 9 is the ID of the project I'm interested in. Its hardcoded for now Begin form_load --------------------------------------------------------------------------- _store = ( WorkItemStore )_currentTFS.GetService( ...Show All
Visual C# Retrieving info from other windows
How can I retrieve info from other windows For example, what should I use to get the http adress from Firefox from the most active window Or the playlist in currently running WMP The 0x001c02a4 value is probably not a constant, so I don't think you can use that. What you're going to have to do is something like the sample code on http://www.pinvoke.net/default.aspx/user32.FindWindowEx to get the URL from IE. First, find the main window handle for firefox (if there is more than one open, you'll have to choose one, possibly using the z-order). However, unlike IE, in firefox you'll have to use the accessibility sdk, as I mentioned before. So after you have the firefox window handle, use AccessibleObjectFromWi ...Show All
Visual Basic How to upload files
Hello I got a problem with uploading files. Look at the code: My.Computer.Network.UploadFile ("D:\file.txt", " http://www.onh1986.com/file.txt ", username , password ) And I set permission to "777". And it couldn't to upload the file. What's problem, please Thanks & Regards Then try using ftp:// instead of http:// would be my best suggestion - it's possible that the service provider has set something to prevent a direct upload using http (that's just a guess, since this is usually the cause of the error you are seeing). ...Show All
Smart Device Development XMLSerializer: sibling elements order - normal in .Net Framework but random in .netCF!
Hi, all I have used the same classes, and the same serialization code to run a test program writing out an XML document from a data object. It turned out that for an element which has multiple child elements, the order of the child elements remained the same in Framework 2.0 as defined in the class, but it was random in CF2.0! It isn't alphabetic nor anything I can tell but a random order... This is annoying because then the document generated in CF2.0 wouldn't pass the same schema, based on which the classes' code was actually generated. Is the problem a bug -bonnie Bonnie, Despite .NET's tendency to preserve the order of XmlElement's, unless you explicitly set the XmlElementAttribute.Order pr ...Show All
Windows Forms Datagridview and checkbox
Hi all. I have bound a datatable to a datagrid. One of the columns is named "Select" and is a boolean. When i bound this to the grid it is displaying a CheckBox. Nice :-) But if i try to build the datagrid before it is bound to the datatable the column "Select" is not displayed as a CheckBox. Why What do i have to do to get the "Select" displayed as a CheckBox */Code when datagrid is buildt */ column = this .dgvContrprodProduct.Columns.Add( "Select" , "Select" ); this .dgvContrprodProduct.Columns[column].DataPropertyName = "Select" ; this .dgvContrprodProduct.Columns[column].ValueType = typeof ( DataGridViewCheckBoxColumn ); this .dgvContrprodProduct.Columns[col ...Show All
SQL Server Question on Internal Activiation
Hi Could it be assumed that a stored procedure, activated internally by Service Broker, is executed under the same environmental variables (resource allocation specifically) than when that same stored procedure is executed via an EXEC statement from a non-Service Broker procedure When I have 10 of these procedures running (somewhat concurrently) overall performance is not even close as to when I let Service Broker activate the procedure via 10 messages on the queue. If all variables are equal than I am not sure why this is. Or is it possible that everything is not equal Thanks Paul Thank you. I understand and have been watching those metrics. I'm looking at 2 to 4 million messages per each 24 hour period ...Show All
SQL Server Problems exporting from reporting services 2005 to excel with a lot of rows
Hello, When I export to excel a report made in Reporting Services 2005, and it has a lot of rows in a table (in the detail section), I have to wait a lot of time, and when it finish the size of the file is bigger than the excel file exported from the old reports in crystal report 6. When I open this exported documents, I have to wait more time until I can see them. The document have 3 sheets, the first have the document map, the second has a report header, and the last one the page header and the body section (with the table). We thought that it could be the document map because it has hyperlinks to the third sheet, but I have tried to delete this sheet in the excel document and the size is more or less the same. I tried also expo ...Show All
Visual Studio The expression cannot be evaluated while in design mode
I have only one window open and it is a vb document. I never use design mode for anything (with exception to SOME windows GUI interfaces... but none in this project). IF I am not in design mode... and ONLY use text editors... how can I get this message: The expression cannot be evaluated while in design mode. Is this a MSFT BUG or is there a way to be in design mode without actually using the designer, attempting to engage it, or actually using anything non-text to write a program I was unaware of any modes... never messed with it (I assume you are not reffering to the design vew/source view). Can you point me to where I might identify if that is the problem / correct it if needed (E.G menu option / toolbar / etc ) I have s ...Show All
Visual Studio 2008 (Pre-release) Querying list of available bitmap codecs
Hi, Is there a way to query the list of available WPF bitmap codecs It'd be cool if I could make my application completely future-proof in regard to file formats. Thanks in advance, Rei I haven't run across anything built in. But, you can enumerate the available encoders like this: public static IEnumerable < BitmapCodecInfo > GetSupportedCodecs() { foreach ( Type type in typeof ( BitmapEncoder ).Assembly.GetTypes()) { if (type.IsSubclassOf( typeof ( BitmapEncoder )) && !type.IsAbstract && type.IsPublic) { if (type.GetConstructor( Type .EmptyTypes) != null ) { BitmapEncoder encoder = ( BitmapEncoder ) Activator .CreateInstance(type); ...Show All
