corbin's Q&A profile
.NET Development Unable to use designer view due to SecurityPermissions?
In the editor, I can view the code of my forms, but can't use the designer view. When I try, I get the following error msg: The exception was "Request for the permission of type System.Security.Permissions.SecurityPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.". This just started happening after more than a year of development activity on this box. No recent changes. I'm using .Net Framework 1.1 Any advice appreciated! Hi, Check these things: 1) Check if your user is on the VS developers group and/or Debugger users 2) Start >> Administrative tools >> .NET Framework 1.1 Configuration. Check "Runtime Securit ...Show All
Visual Studio 2008 (Pre-release) The certificate 'CN=localhost' must have a private key that is capable of key exchange.The process must have access rights for
Hi, My WCF service has following security settings:- at server side(web.config) :- < behaviors > < serviceBehaviors > < behavior name = " myBehaviour " > < serviceDebug includeExceptionDetailInFaults = " true " /> < serviceMetadata httpGetEnabled = " true " /> < serviceCredentials > < serviceCertificate findValue = " localhost " storeLocation = " LocalMachine " storeName = " My " x509FindType = " FindBySubjectName " /> </ serviceCredentials > </ behavior > </ serviceBehaviors > </ behaviors > < bindings > < wsHttpBinding > < ...Show All
.NET Development Common Question: How can I clean a machine which has the .NET Framework 2.0 or 1.1?
Since this question seems to be quite common, I will post this sticky thread and will update it periodically as new information becomes available. The following is from Aaron Stebner's WebLog : "Removal tool to fix .NET Framework install failures I wrote an application late last year that is designed to clean up computers that have problems getting the .NET Framework 1.0 or 1.1 to install correctly. I have been working on refining the tool for the past couple of months, working out some bugs, adding additional cleanup features, etc. The .NET Framework setup Product Support team has been using this cleanup tool for the past few months to help resolve many cases, and the internal Microsoft helpdesk has also started using it to ...Show All
Visual Studio Express Editions Ugh....Driving Me nuts....
I am in the middle of writing a prog that takes a file within a directory on a HD renames it to the directories name and then places the newly named file on the root of that HD. Here is the code. and I am not getting it.....I would really appreciate your help. Thanks Imports System Imports System.io Imports System.IO.DirectoryInfo Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim dlg As New FolderBrowserDialog Dim FileNamesSelected() As String Dim SelectedFolder As String 'Dim FileFound As String SelectedFolder = Me .FolderBrowserDialog1.SelectedPath FileNamesSelected = System ...Show All
Visual C# cannot ad object to ArrayList
Hi, I'm trying to build an arraylist of objects. the code snippit is; assetClass newAsset = new assetClass(); newAsset.setSymbol(Symbol); newAsset.loadHistory(AssetDataFolder); assetList.Insert(0, newAsset); the errormessage is: NullReferencException was unhandled by user code Object reference not set to an instance fo an object I'm somewhat new to C#, but I don't see how newAsset above is not an object. I'm having the same problem with the same logic in a different session. Could the problem be that the scope of newAsset is local to the method Do I need a static object If so, it's not obvious by in the documentation. Randy Long make sure ...Show All
Windows Forms ListBox control changes selection on MouseDown, not MouseClick - can this be changed?
Hi all, I have a class that inherits from ListBox and provides drag/drop functionality. I'm finding that selecting multiple items to drag is frustrating, because ListBox doesn't handle a "multi-select-followed-by-drag" operation in quite the same way as ListView (or, eg. Windows Explorer) Try this: Open your "My Documents" folder, select a file. Hold down Ctrl and click a few more to add them to the selection. Now - if you mouse-down (ie. click but don't release) the left button on one of the selected items, it'll allow you to pick them up and drag them. The item selection doesn't change until you release the mouse button. The WinForms ListView control also behaves this way, but the ListBox control appears to u ...Show All
.NET Development Implementing a Clustered NT Service
Hi, I'm developing a NT Service using .NET 2.0, its a multithreaded TCP server, this service will handle connections from many enterprise applications. The challenge is to avoid a single-point-of-failure. My first idea was create a service instance capable of just redirect incoming calls to service instances which implement the concrete service. This solution decrease service unavailability risk, but AFAIK real cluster services like App Center uses another approach, it creates a virtual server that can redirect incoming calls to an available server, this approach really solve the single-point-of-failure problem. I'd like to use the same solution, how it can be done Thanks for any help ! ...Show All
Visual C++ c:\WINDDK\3790.1830\inc\wxp\winbase.h(294) : error C2146: syntax error : missing ';' before identifier 'CRITICAL_SECTION'
Hi, I am using VC++ (MSDE 2003 Version 7.1.3088) to compile my driver simulator code, but I am getting following errors in winbase.h file, can some one please help Regards, Pranav c:\WINDDK\3790.1830\inc\wxp\winbase.h(294) : error C2146: syntax error : missing ';' before identifier 'CRITICAL_SECTION' c:\WINDDK\3790.1830\inc\wxp\winbase.h(294) : error C2501: 'CRITICAL_SECTION' : missing storage-class or type specifiers c:\WINDDK\3790.1830\inc\wxp\winbase.h(295) : error C2146: syntax error : missing ';' before identifier 'PCRITICAL_SECTION' c:\WINDDK\3790.1830\inc\wxp\winbase.h(295) : error C2501: 'PCRITICAL_SECTION' : missing storage-class or type specifiers c:\WINDDK\3790.1830\inc\wxp\winbase.h(298) : error C2146: ...Show All
Windows Forms chiled forms and parent form
hi, i make a parent form and inside it i will create chiled forms when i click button a new chiled form created till now every thing is ok my problem is i want all chiled froms which is created apperas in the same location look to this image in this site we find that all chiled forms not in the same location i want to make them appear in the same location http://www.codeproject.com/csharp/MDITabBrowsing.asp please ignore my last post....you should use this property instead frm.StartPosition = FormStartPosition .Manual; this would then create the form at the location specified in the Location property of your form object Hope it helps! ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Do all DX10 cards support SM4
[original question from split thread http://forums.microsoft.com/MSDN/showpost.aspx postid=1274336&siteid=1 ] As a sidenote, if you know, could you explain to me the relationship between Shader Model 3.0/4.0 and DirectX9/10. I've read the documentation, but am a little confused. If a motherboard supports DirectX 10, does it automatically have support for SM4.0, or can it be DX10 and still only have support for SM3.0 Actually, there is a case where some new motherboards support DirectX 10. The Intel, DG965WH says in its manual: http://www.intel.com/design/motherbd/wh/wh_documentation.htm that it does support DirectX 10 through the onboard video chipset X3000. There are conflicting reports on the int ...Show All
SQL Server Connection problem when deploying
Hi all, Here is my problem, I know there are already Posts about that but I still run after the same problem ... I have a package with a connection in the connection manager. I use the xml configuration file to adapt my package when deploying it on the production server. In the xml file, I chose to modifiy the Connection String, the user name and the password. I set the ProtectionLevel propertie to "DontSaveSensitive". But when I deploying and scheduling my package on a other server, the execution failed because it can't Acquire the connection. Did I miss something else in the configuration or in the properties Thank you Are you sure you did a server restart to refresh the environment variabe on the other server I use e ...Show All
SQL Server Calling commands from the cmd prompt
I have a series of commands that I need to run which decrypt, unzip, and rename They are all one line commands when entered on the cmd prompt, is there an easy way to do this in ssis or should i write an exe and call them from there Thanks Yes, but the execute process task will execute a program. Granted I could make that program cmd.exe, I stuck on how to make an execute process task that will open up cmd and make the calls that I want. I could write a .exe file that that I could then put in the execute process task, I'm just curious if there's a way to do it w/ out writing my own script.exe file. Thanks ...Show All
SQL Server HowTo RoundDown
I need to have some calculations for business rules with ROUNDDOWN. There is no Rounddown or Floor function in MDX - are there any possibilities to create some function. Excel is not available on the server and VBA!ROUNDDOWN or VBAMDX!ROUNDDOWN does not work to Its Analysis Services 2005 SP1 Enterprise on Windows 2003 - 64 Bit Editions. Thanks HANNES You can create stored procedure using .NET which will do the required operation. For examples of how sprocs can be done for AS - you can check this project: http://www.codeplex.com/Wiki/View.aspx ProjectName=ASStoredProcedures HTH, Mosha ( http://www.mosha.com/msolap ) ...Show All
SQL Server Fuzzy Lookup Error
Hi I get the following error when I use Fuzzy Lookup in a Data Flow task with TransactionOption property set to “ Required ” [Fuzzy Lookup [61]] Error: An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: " Cannot create new connection because in manual or distributed transaction mode .". When I Change the TransactionProperty to “ Supported” it works fine. I need the property set to Required for it does an undo in the event of a failure. Any ideas on how to get the Fuzzy Lookup to work Set Required on the package container, and Sup ...Show All
Game Technologies: DirectX, XNA, XACT, etc. what is best way to render scene with great number of textures?
quiestion sounds excactly like topic :) i have many generated textures (maybe ~100). what is the most efficient way to render all the stuff not much found on google, but understud that atlas is somewhat a big map containing all textures in one. the problem is in my case i have many textures of a big size but maximum size of 2d texture itself is not large (so i will be not able to pack all of them into one). anway thx for an advice ;) ...Show All
