Aerosol's Q&A profile
Visual Studio Team System Team Build with unsafe code problem
My project has some unsafe code exist that I already marked project "Allow unsafe code" option. SO I can build it from my machine But It cannot build in Team Build Server....the following is error message ThemeManager.cs(457,33): error CS0227: Unsafe code may only appear if compiling with /unsafe Please help What does line 11 column 22 corresponds to I guess it corresponds to the unicode char. Check for the following - 1) The file is saved properly in Unicode setting. 2) On build machine, you are able to compile it using msbuild command line mentioned earlier. Thanks, Gautam ...Show All
SQL Server Matrix Totals Problem - SSRS 2005
I wasn't able to get my totals working accurately in a table footer using SUM, so I though hmm, maybe try matrix...well, still same type of problems...a bit different but still, my totals are not totalling the columns! Screen Shot: http://www.photopizzaz.biz/matrix_totals_problem.jpg I don't know what else to do, I give up at this point and need help from someone here who has already gone through these headaches! I don't understand why BOL doesn't address more complicated issues such as this...they barely tell you anything there. I believe you need to preface your column expressions with sum: ie: the expression under cus ...Show All
Software Development for Windows Vista SymbolicLinks & UAC & ShellExtensions
Can you give me a hint how to let my shellextension create symbolic links from explorer.exe More in Detail: My ShellExtension calls CreateSymbolicLink, which needs at least a manifest containing 'requestedExecutionLevel level="highestAvailable"' or you get GetLastError=ERROR_PRIVILEGE_NOT_HELD from CreateSymbolicLink. How do I set 'requestedExecutionLevel level="highestAvailable"' Well via Manifests, but how to act if I am only called from a process(explorer.exe) for which I can not modify the manifest None the less I added the manifest to my shellextension .dll, copied the shellextension to the right place, restarted e ...Show All
Smart Device Development hide app from task manager
hi, i know there is no task manager like that in pc windows, but there are some programs that does the same function like "PHM Task manager", any body knows how to prevent my program from appearing in that task manager it is critical, please help thanks I'm not sure whether that is possible . It depends on how PHM Task Manager is enumerating through processes. Do follow up with them However, I still need to question as to why you would need to do this in the first place. ...Show All
SQL Server Cannot find publication wizard
Hello Guyz Can any one help me plzz, Im using sql server 2005 which came with visual studio, and when i wanted to create a publication using sql server management studio. But i could not find the publication folder in the replication folder under my database. Plzz help me guyz Its not there. To manage publications in SQL 2005 you need to right click on the publications folder within the replication folder. -- Hilary Cotter Director of Text Mining and Database Strategy RelevantNOISE.Com - Dedicated to mining blogs for business intelligence. This posting is my own and doesn't necessarily rep ...Show All
Visual Studio Express Editions vb 2005 express edition : data source list
Hi, I just finished installing VB 2005 express edition and try to connect to my SQL server database on another machine. I try to create a data connection but the data source list just gives me choice between connecting to access mdb files and SQL server database files. I can I connect to a remote SQL server I succeeded in creating programmatically an adodb connection but that's not what I want : I want to see if I can manipulate data visually, bound controls,... as in the plain version. Thanks Phil Just great, I spent 4 hours on installing the C# Express Edition and looking for the answer how to con ...Show All
Visual Basic MSComm32.ocx in VB.Net problem
Hi everyone. A while ago I wrote a library which helps me simply text operations, serial communications, PLC interaction using OPC Automation, etc... My problem is with the vb6 serial control mscomm32.ocx. In my computer, I can use it with no problem. Everything works fine when testing serial control and my forms can open sucessfully. When I try to run a winform that uses Serial library (mscomm32.ocx) in a computer that doesn't have VB6 installed, I get the error "Common Language Runtime Debugging Services. Application has generated an exception that could not be handled. PRocess id=0xe0 (224). Thread id= 0x6f4 (1780)" I started ...Show All
Visual Studio Visual Studio.Net and VSS Integration/Sharing Issue
Hi. I'm sharing a solution between two VSS repository locations. Everything works fine except for the Deploy Projects (*.vdproj). Apparently there's something in vdproj files that is sensitive to its location in VSS and ends up in disagreement with the bindings in the solution file. Anyone else have experience with this What did you do Thanks. Sharing solutions/projects files between 2 locations in the VSS database is totally unrecommended. You're messing up with the bindings information, with the delete and rename propagation, with the checkout local version feature and with the merging information. In some cases it might ...Show All
Visual Studio Tools for Office Outlook saves my mail to drafts instead of inbox
Hi, I've write the following simple code : Outlook.MAPIFolder inboxFolder = this.GetNamespace("MAPI").GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderInbox); Outlook.MailItem mailItem = (Outlook.MailItem)inboxFolder.Items.Add(Outlook.OlItemType.olMailItem); mailItem.Subject = "my subject"; mailItem.Body = "my mail body"; mailItem.To = "emailaddress@emailaddress"; mailItem.Save(); But when i start it in debug mode, it adds my mail to the drafts not to my inbox. What's wrong with my code This is normal, because you have not sent the item. You need to send it so that it a ...Show All
.NET Development Gac'ed Configuration Application Block with Encryption
I am unable to add encryption to a strong named application configuraiton block. I wonder if it is a bug. Let me show you what I did: 1) Strong name the Enterprise Library's Common and Configuration projects, load them into GAC. 2) In the config file, I changed the reference's version number and public key from: < configSections > < section name ="enterpriselibrary.configurationSettings" type ="Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationManagerSectionHandler, Microsoft.Practices.EnterpriseLibrary.Configuration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" /> </ config ...Show All
Visual Studio Express Editions Serial port properties NOT binding.
There seems to be some problem (bug ) with the serial port properties binding. I have : Baudrate, Databits, Handshake, Parity, Portname and StopBits set up as binding, the little binding symbol appears next to the name and also they are all listed under the Application Settings. Of all the above only the HandShake (Flow control) is properly saved on exit and restored at startup, all other values for the serial port revert to the default state rather than the state on exit. Other settings for other controls are all saved/restored ok except the above. Can anyone one shed any light on this please Perhaps someone who uses serial ports can try it ...Show All
Visual Basic How do I solve TargetInvocationException problem with WebClient in Visual Basic 2005?
Hello, I've created a small programme which downloads file over web using the WebClient interface. I've added 2 handlers to the to the webclient, one for the download progress and the other for the download completed. Sample code: Private Sub DownloadAsync( ByVal URL As String ) Dim wc As New WebClient() Dim dpc As DownloadProgressChangedEventHandler AddHandler wc.DownloadProgressChanged, dpc Dim ac As AsyncCompletedEventHandler AddHandler wc.DownloadFileCompleted, ac Dim Address As New Uri(URL) If (URL.Contains( " " ) = True ) Then URL.Remove(URL.LastIndexOf( &q ...Show All
Visual Studio 2008 (Pre-release) TextBox input validation
How can I validate input for my textboxes For example I have an application where I want to input several numbers in the textboxes. The primary validation constraint is that I want the user to be able to input only valid real numbers. Some of the textboxes should contain only positive real numbers. Also I want to be able to do comparisons between the different values (for example I have a minimum speed textbox, and maximum speed textbox, so there's one more rule here: min <= max). Also, if the user is currently editing a textbox, he should be able to cancel the modifications, by pressing escape. How can I do all these with Avalon/WPF Tha ...Show All
Software Development for Windows Vista Exception handling in custom sequential activities
Hi, I have troubles with exception handling in a sequential custom activity. First activity in the sequence is FileSystem. The activitie's command Executed is promoted and if no file is found an exception is thrown from the sequence. When using this custom activity in a workflow I do not get the exception ... Tried different approaches with exception handlers in the activity's hosting workflow ... How to promote / throw exceptions from a custom activity Thanks a lot! Andreas The exception isn't passed to the host application as the threads are different. You should catch the ...Show All
Microsoft ISV Community Center Forums worksheet_change
I try to do a macro that reacts when i change the interior color of a cell. Worksheet_change seems to only react then the cell value is changed. Is there any other way 'Private Sub Worksheet_Change(ByVal Target As Range) ' 'If Target.Interior.ColorIndex = 4 Then ' MsgBox "bla,bla, bla " 'End If ' 'End Sub thanks in advance agron Not sure if this will work OK, it seems to on a simple sheet I created. I delcared LastCell as a Public variable in a new module to track the last active cell Public LastCell As Range Private Sub Worksheet_Activate() Set LastCell = ActiveCell End Sub Private Sub Wor ...Show All
