leifw's Q&A profile
Visual Studio Tools for Office Full trust is there : Still not working : VSTO, WSE 3.0 Permission / Security error
I'm using VS 2005 RC1, VSTO with Excel, and WSE 3.0 Oct CTP. I've encountered permission when I tried to instantiate the wizard-created classes (the Wse class). The exception is found to be a permission issue on the get configuration section of WSE. The error was the "An error occurred creating the configuration section handler for microsoft.web.services3: That assembly does not allow partially trusted callers." How do I grant the WSE permission I tried using CAS policy to give to the WSE .dll full trust, but it still is giving the same error. What can I do next More error details as follows: Message="WSE032: ...Show All
SQL Server SQL Express Management Setup Error on Windows Vista Beta 2
Miscrosoft SQL Server Management Studio Express (SQLServer2005_SSMEE.msi) don't complete setup on Windows Vista Beta 2 with Sql Server 2005 Express installed. Error Code 29506. C:\Program Files\Microsoft SQL server\\90\Tools, Alberto What mean (Alberto is my Windows account) Yes, download from http://go.microsoft.com/fwlink/ LinkId=65110 ...Show All
SQL Server TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host
We are getting a problem when the below error Log Server: SQL Server 2005 and SP1. Then, All the Web Servers will drop all connections and stop the network service. Later, the network service will start up automatically but all the before service is dropped. We would like to know the error coming from Error Log ================ TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host Event Type: Warning Event Source: ASP.NET 2.0.50727.0 Event Category: Web Event Event ID: 1309 Date: 4/29/2006 Time: 10:48:47 AM User: N/A Computer: 88DBWEB0 Description: Event code: 3005 Event messa ...Show All
Windows Forms Calculate Width of a String in Pixels
hallo, Given a Font and a string, is there any ready-to-use function in .NET which can compute the resulting width of the string in pixels So that I can adapt say a Label, MenuItem or Textbox to the new size of a string. thx, Steve I guess we can agree to disagree on this one. =) I didn't have a lot of time to plink with&n ...Show All
Windows Forms MessageBox problems
I am developing an application that contains an error database. This contains a list of error numbers, names and text associated with them so knowing an error number can show a MessageBox with the name and text in it. The problem is that it doesn't recognise '\n' as a new line, instead it writes '\n'. BUT this only happens when the text&nbs ...Show All
SQL Server HELP plz solve some Queries
Please Use SQL SERVER 2000 Query 1. REMAINING Is it effecient way to use @Somevariable in the where clause Query 2.. DONE . thanx Jens Using theNorthwind WHY THE RESULTS OF THESE 2 queries vary . declare @title1 varchar(20) set @title1='A' SELECT EmployeeID FROM Employees where @title1='A' SELECT EmployeeID FROM Employees REMARK: Both queries are giving all the EmployeedID but they Differ in their order even though i have not used any order by clause Query 3 .. DONE thanx jens How to write Query like this in SQL Server.(In oracle we can write this query) select * from (select a,b from T ...Show All
Windows Forms TextBox and DBNull binding default behavior problem
Hi, This is a long discussed issue. But I have found an inconsistent behaviour in the default implementation. Create a datasource using a SQL server database table that has nullable int field Add a few records to the database table, leave the int field null in some of them Drag-Drop this field as a textbox on your form Drag Drop another field to your form as another textbox Scroll through your records until you are on a row that has the int field null in the db You will see that the TextBox will display empty string (BRAVO) Now, move your cursor in this field, DO NOT TYPE ANYTHING Move your cursor to another ...Show All
Visual Studio Creating A SubReport
Can you point me in the direction of how to create and populate a SubReport Why does the footer not display at the bottom of the page You can see the VB version here: http://forums.microsoft.com/msdn/ShowPost.aspx PostID=13691 ...Show All
Windows Forms how to filter out duplicate values?
I have a DataTable with the following schema and sample data: ProductID | LocationID | ProductName | Quantity | SellingPrice --------------------------------------------------------------------- 1 | 1 | xyz | 10 | 5.0000 &n ...Show All
Smart Device Development Audio streaming
Hi, Currently, I need to use audio streaming in my smart device project, capture voice from the microphone and send it to the PC server. Can anyone tell me how to start it ps : I'm using PPC 2003 with Visual Studio.NET 2005 The discussion bellow may help about the capturing issue http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/browse_thread/thread/865dc1fa71f0b6ce/dcfe132dcfd8b72a q=audio+streaming&rnum=6#dcfe132dcfd8b72a You may perform additional search in the newsgroups, aslo ...Show All
SQL Server No message in the TargetQueue
I have 2 instances of SQL on the same machine (arrakis): the default one and the second: arrakis/FOO. On arrakis/FOO I have an InitiatorService which sends a message to the TargetService on the other instance. I defined the services , contract and message type using the code in the MS sample: Hello World and the same code works when the two services are created on the same instance. I changed only the following part, where I inserted the target service id: BEGIN DIALOG CONVERSATION @conversationHandle FROM SERVICE InitiatorService TO SERVICE 'TargetService' , '4B031860-D31A-4452-A766-828954D1BE12' O ...Show All
.NET Development streamwriter close
Hi, I have a small static TCP class using a client socket linked to a streamwriter. If I read a file and send it to my server socket and do a close on the streamwriter after sending it , it kills the client socket too. In my opinion this is not a normal behaviour. If I search in the class msdn info there is nothing to find on this topic. Is it because the streamwriter is not yet free to send all ( i did a flush) thnx for taking the time Guy static public class TCP { private static TcpClient c = new TcpClient ( DomosCst .sIpAddress, DomosCst .iPort); private static Stream s = c.GetStream(); ...Show All
SQL Server How connect SQL server 2000 with c#.net .....?
Hello masters, help me yaar i am using dotnet 2003 and SqL SERVER 2000. BUT UNABLE TO CONNECT DATABASE using dataAdaptor(design time ) or sqlconnection any can help me gs whats the error lets see the connection string. make an empty text file called "c:\test.udl" - double click it and try to build a SQL Ole Db Provider datalink. . . can you get that to work Are the TCP protocols enabled in your machines client network settings and in the servers network settings ...Show All
SQL Server Many-To-Many Self-Join
I hope somebody can help me with a rather complicated problem I am having involving triggers and foreign keys. I am working on a database that manages projects in terms of Tasks and the other Tasks (I call them "Pretasks") that must be completed before the Task in question can be completed. Any Task can be a Pretask for one or more other Tasks, and any Task can have any number of Pretasks, which calls for a many-to-many self-join on my tasks table, tblTask. I handle this with a linking table, tblTaskChain, which contains two fields, CurrentTask and Pretask, each of which contains a TaskID referencing a record in tblTask. I hi ...Show All
SQL Server default schema for NT-group not possible
We have a new development SQL2005 server. To implement secutiry on this new server we decided to grant rights to NT-groups. We defined an NT-group Programmersmembers and gave this group the necessary rights. The problem now is when a member of this NT-group creates a table (this group is dbo in the development database) everything works fine as expected. But when a member of this group tries to make a new table through 'Microsoft SQL server management studio' they receive the error that there is no default schema available. But it seems to be impossible to map a default schema to an NT-Group. => Does this means we have no other way tha ...Show All
