Codereaver's Q&A profile
SQL Server saving package with Protectionlevel set to serverstorage fails
I am getting this when I try to save my package. Any Ideas Failed to apply package protection with error 0xC0014061 "The protection level, ServerStorage, cannot be used when saving to this destination. The system could not verify that the destination supports secure storage capability.". This error occurs when saving to Xml. Well, as the message says - rely on server storage can't be used when saving to file. It works only when saving to SQL Server (otherwise you would have a file with plain text passwords in it). ...Show All
Visual Basic Problem using InputBox when project is saved on a mapped network drive
Hello, I have a problem with applications not working when the project is saved on a network drive. If I just put a simple InputBox in my code, like: InputBox("test...") I get the following problem when I run the program and get to where it uses the InputBox: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Microsoft.VisualBasic.CompilerServices.VBInputBox.resources" was correctly embedded or linked into assembly "Microsoft.VisualBasic" at compile time, or that all the satellite assemblies required are loadable and fully signed. If I save the project on a local drive instead, it works perfectly fine. However, I'd like to be able to work on it from the ne ...Show All
.NET Development satellite assemblies
Hi, Is there any application block which is used to build multi lingual application If not can any one give me sample program to create and use satellite asseblies used to support multiple languages. Thanks Deepa Hi, There is currently no application block that does localization. Here is a good example on creating satellite assemblies: http://www.codeguru.com/csharp/.net/net_general/tipstricks/article.php/c11367/ Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All
.NET Development Querying dataset created without connection to database
I'm building a DataSet in memory with DataTables that are populated with data from an external source (from a COM interface). I'd like to be able to perform queries with a JOIN from the DataSet. Is this possible or does the DataSet need a database behind it to process the query Thanks. The DataSet doesn't process SQL statements, although you can filter and sort DataView objects declaratively by setting properties. For the kind of behavior you describe, I believe it's possible to use the DataRelation class to create a parent/child relationship and then create calculated columns that navigate this relationship - the Expression property reference at http://msdn.microsoft.com/library/default.asp url ...Show All
SQL Server pfpagealloc error
I am running Sql Server 2005 SP 2 CTP and keep getting an error which says Internal Error pfpagealloc.cpp file is corrupt. This did not happen with SP1 and is very speradic. I get the problem when using both excel and the visual studio browser to manipulate an anylsis services database. I can then try again and everything works. I also get the same problem sometimes with my overnight rebuild of the cube. Paul Please report this with http://connect.microsoft.com/sql . This looks like a memory pressure problem. See if you get enoght memory for Analysis Server. Edward. -- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
.NET Development Help with TripleDES and RC2 cryptography.
I have 2 questions - 1) I get the following Exception when I try to decrypt data using TripleDES. - "An unhandled exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll Additional information: Specified initialization vector (IV) does not match the block size for this algorithm." How do I make things right The code is as follows - /* Provides TripleDES encryption and decryption using classes in the .net Framework 1.1 */ public class TripleDES_Cryptography { public static string Encrypt(string plaintext, string key, string IV) { TripleDES des3 = new TripleDESCryptoServiceProvider(); des3.Mode = CipherMode.CBC; byte[] by_plaintext = Encoding.ASCII.Ge ...Show All
.NET Development List<int> property for a custom control. doesn't work in design time
I've created this windows user control: public class ToolStripMenuItemRol : ToolStripMenuItem So it still supporting all the native properties of the ToolStripMenuItem. The enhacement applied in this user control was a new property: private List < int > _roles = new List < int > (); [ Description ( "Listado de roles validos para usar este menu" )] [ Category ( "Security" )] public List < int > Roles { get { return _roles; } set {_roles = value ; } } Then the property Roles appears in the Properties Page in Design mode. And when I'm trying to edit this property in design time, a collection editor appears and work fine. Everyth ...Show All
Visual Studio 2008 (Pre-release) Bind Background to ColorAnimation
Hi, I have this ColorAnimation that I want to bind to the Window's background color (it's a SolidColorBrush), I've tried the binding exaclty as shown below, but it doesn't work and no error shows in the output window. <Storyboard x:Key="ShadowFadeClose" CurrentStateInvalidated="HideShadowPanel"> <ColorAnimation To="{Binding ElementName=wndMainParent, Path=Background.(SolidColorBrush.Color)}" Duration="0:0:3" Storyboard.TargetName="brdShadow" Storyboard.TargetProperty="(Canvas.Background).(SolidColorBrush.Color)" /> </Storyboard> Thank you Bruno Silva ...Show All
Visual Studio How can I add existed DataBase scheme to my DSL as inpuit?
CONNECTION TO REAL DATA or SCHEMES FRAMEWORKS I want to make some generation from DB to C# classes with two tasks: 1. use DSL code or some framework - to read DB scheme and generate some classes or triggers and subscript it to compilers or SQL server. 2. incorporating some logics created in DSL to this process. Once DSL is code template engine it is expectable that it can provide some PRODUCTION input data or schemes for taking part in generation: for sample CodeSmith provides DB scheme or custom schemes for else sources and application generation become truly PRODUCTION relation and easy as breesy. does DSL can provide such a really well features _________________ EASY OF USE: I took CodeSmith yesterday first time, take 4 h ...Show All
Visual Studio 2008 (Pre-release) Drag and drop ListViewItems to another UIElement(Canvas).
Does anyone have a good example on how to accomplish this I have a tried an fews things with no success and haven't been able to find any good examples. Duh, I think I just realized the difference I am binding to an XMLDataProvider for my list items instead of your example were you specify the listviewitems. Can you try this <ListView local:DragDropManager.DragSourceAdvisor="{StaticResource sourceAdvisor1}" ItemsSource="{Binding Source={StaticResource DataRows}, XPath=row}"> IE... Set up an XMLDataProvider with something like... < XmlDataProvider x:Key = " DataRows " XPath = " / " > < x:Data > < root > < row > t ...Show All
SQL Server Definition of 'Persistent Data'
What is the definition of 'Persistent Data' as related to the definition of a RDBMS thx, Kat Persistent Data is data that stays around after the application has terminated. In the case of an RDBMS, it would refer to data which had been committed to tables. It would not refer to items stored in temporary tables or units of work that the server accumulated while processing a query -- work tables. It would also not refer to variables defined and used during processing. ...Show All
Visual C++ a question about porting application from vc6 to vc2005
Hello, I am porting a very large application from vc6 to vc2005. All compiling errors have been solved. Now when I run the application, it stops at the initilization. (A less components needed application can run) Unhandled exception at 0x7c964ed1 (ntdll.dll) in Navigator.exe: 0xC0000005: Access violation. Call stack: ntdll.dll!_RtlRaiseStatus@4 () + 0x26 bytes ntdll.dll!__LdrpInitialize@12 () + 0x26b95 bytes ntdll.dll!_KiUserApcDispatcher@20 () + 0x7 bytes When I try to use dependency walker to start this application, the very end information is shown as below: 00:00:10.175: GetProcAddress(0x7C800000 [c:\windows\system32 ...Show All
.NET Development Help : "error: 40 - Could not open a connection to SQL Server"
I'm using VS2005 and SQL2000. I created a database name "myDatabase" in SQL Server 2000 and built a website that connet to this database. When I'm running this website in VS2005 IDE (press F5 or Ctrl-F5), everything is OK. I publiced this site. When I connect to database on my computer, everything is OK also, but when I connect to database on another computer, an error occurred like this : "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)" Now, I do ...Show All
SQL Server Calculating field population statistics
Firstly, if this is in the worng place i apologise... A Client has asked for some populating statistics on a MS-SQL database, Is there a reporting function that will return population results IE how many fields are Null in T1/T2 then also by each individual column Many Thanks ...Show All
SQL Server SQL Way to Suppress Repeated Values
This is a problem I usually solve with procedural code, but I am wondering how/if it could be done with SQL queries. A simple one to many query like: Select inv.invnbr, inv.freight, invline.quantity, invline.partnbr, invline.cost from inv inner join invline on inv.id = invline.InvID Returns something like: invnbr freight quantity partnbr cost 100 50 3 abc 50 100 50 6 def 65 100 50 10 ghi 70 Is there way I can rewrite the query, or add a subquery such that the result set would be: invnbr freight quantity partnbr cost 100 50 3 abc 50 100 0 6 def 65 100 0 10 ghi 70 Eg, the freight value, which comes from the one/header table, ...Show All
