PhotoJoe's Q&A profile
.NET Development Plugin Security
How can i assign a CAS permissionset to a dynamically compiled and loaded assembly so as to prevent it from executing malicious code. It seems that this is needed for any kind of Plug-in architecture but I cant find a solution to the problem. I need the compiled code to run in a totally different security context than the application code, however i need it to be able to make callbacks into the application code to perform things like IO, or network access in a controlled way. I'm scratching my head here cuz there just are no samples. In order to successfully sandbox code, you need to keep it in a se ...Show All
Visual Basic Setting the Primary key as a foreign key in an intersection table
I need to be able to add information to table1 then click a button to bring up a new screen with information from an intersection table, table2, and another table, table3, while putting the PK from table1 into table2 for several records. Table3 is a static table and will not change so I know how to do that, but I don't know how to do it with a table that will not remain static. I am using VB '05 Express and SQL '05 Express. Simplified version: I need to be able to put a primary key as a foreign key into an intersection table. TABLE1 ............... TABLE2 .................. TABLE3 ---------- .............. ---------- ................ ...Show All
Windows Forms Drag & Drip File From Explorer
Does anyone have an example of draging & droping a file from Windoew Explorer onto a DataGrid -- all I want to do from there is capture the file name into one of the grid cells Yipppppeeeee it finaly works -- I was confident after seing your second post that you would help me get this right (thank you) You were very righ ...Show All
Windows Forms OFFICIAL SURVEY about your usage of the .NET Framework documentation!
Hello - I'm conducting an official survey about your usage of the .NET Framework documentation. In particular, what programming languages do you filter on. Your answers will be used to help improve the documentation viewing experience. When reading the survey, remember that the concept of filtering on a programming language is talking about viewing the documentation wit ...Show All
SQL Server MySQL to SQL Server migration
Hi, I would liked to know the SQL Server equivalent for the below MySQL query : SELECT a.col1, a.col2, max(a.col1) FROM test a, test1 b WHERE a.col2 = b.col2 GROUP BY a.col1 Thanks, Smitha You can do it the same way except you can't just show a.col2. You use groupby, so it must belong to some logical output. You can do it like: SELECT a.col1, max(a.col2), --or other functions... max(a.col1) FROM test a, test1 b WHERE a.col2 = b.col2 GROUP BY a.col1 OR SELECT a.col1, a.col2, max(a.col1) FROM test a, test1 b WHERE a.col2 = b.col2 GROUP BY a.col1, a.col2 Hope it helps ...Show All
Windows Forms System.Deployment.Application missing! (VS2005 Beta 2)
Hi! My first post on here, so be gentle! I'm running Visual Studio 2005 Beta 2 and experimenting with ClickOnce deployment to work. So far so good, but I'm trying to get the publish version in code, so I can display it in an "About" box. The following thread says you can find it in code using the property System.Deployment.Application.ApplicationDeployment.CurrentDeployment.CurrentVersion http://forums.microsoft.com/msdn/ShowPost.aspx PostID=9145 However, the namespace System.Deployment.Application doesn't seem to exist on my VS2005! Intellisense only recognizes one namespace within System.Deployment and that's the unhopeful-sounding Syste ...Show All
Windows Forms Deployment identity does not match the description
Hi, I have a ClickOnce project that had been working fine for several deployed versions. At some point something happened and I began getting errors when I tried to publish -- "Cannot publish because a project failed to build" (even though there were no build errors). and "SignTool reported an error 'Keyset does not exist.'" I couldn't resolve these issues, so I created a new project and imported the forms, classes, reports, etc. It works okay and will publish fine, but if I publish it to the original location, when a user runs the program and it tries to upgrade to the new version, they get "The deployment ide ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Render in a Form
Hi guys, I've a project in vs 2003 ( http://it.geocities.com/salvodifazio/littlEngine.zip ). My problem is: If I write the code of Vertex.cs in CreateDevice.cs I make a beautiful triangle otherwise if I leave the code of Vertex.cs in this file the Form is not Rendered... Does anyone know why tnx Becuase you are not drawing anything.... Put a breakpoint at the top of your render method in vertex. Run the program The program breaks - good render is being called Press f10 to step and notice it returns before drawing anything Check out the value of m_xRenderDevice and notice that its null I tried to ...Show All
Visual C++ Date time stamp can't be this difficult
Hi, I'm writing what should be a simple program to auto-edit a text file. If an error occurs, the program makes an entry in an errlog file which should include an date/time stamp. Unfortunately, I can't figure out how to do it. I started in namespace std and included <string>. I found <ctime> but as I struggled to make it work, I received warnings that it was deprecated. After some digging, I found DateTime, which required that I change to namespace System. So, now I have a function that finds the date and time but I can't use it because my program uses strings and the DateTime.ToString() functions returns ...Show All
Visual Studio Team System Team System - Website Under source control
I have the Team Build Configured and I am also able to start the build from any of the client machines. The library, console, windows services and application are all compiling with out any errors but when it comes to compiling websites I am running into issues. All of these projects are under Team System source control. The website has Project references to other library projects within the same solution but the team build does not seem to be copying these referenced assemblies into the website's bin directory after compiling those libraries, because of this the website compilation is failing, is there any thing that i need to do ...Show All
Software Development for Windows Vista CreateWorkflow with xml reader is giving validation exception
I have a base workflow that I've registered as a TypeProvider Service. I want to use an xoml file to define the structure. I'm getting this validation exception with no more details. System.Workflow.ComponentModel.Compiler.WorkflowValidationFailedException' occurred in System.Workflow.Runtime.dll how can determine what is wrong here is my xoml contents. < SequentialWorkflowActivity x:Class = " BDW.Workflow.Driver. BasePipeline " x:Name = " Pricing " xmlns:ns0 = " clr-namespace:BDW.Workflow;Assembly=BDW.Workflow, Version=1.0.0.2, Culture=neutral, PublicKeyToken=c3ca1b00c08a6348 " xmlns:x = ...Show All
SQL Server Improving Cursor Performance
Hello Can we use rowsets in sql server triggers and stored procedures for improving cursor performance. Any other solution in this context is welcome Chikuu Why are you using cursors There are very few problems that require use of cursors. And using them within triggers is even more of a performance hit. Try to use set-based operations inside triggers so it can execute quickly and reduce blocking issues which can otherwise happen due to long running trigger code. Maybe if you post a simple example of what you are trying to do with the cursor it will be easier to suggest a set-based alter ...Show All
Visual C++ HELP! - Converting Data Type and Writing File Problem
I want ot open a file, getting the username from a label, and write to it. Simple No. It always errors whaever I do. I have looked at the documentation but that provides no answers. This code: FILE *stream; errno_t err; err = fopen_s( &stream, label5->Text, "w" ); fclose(stream); but it errors: error C2664: 'fopen_s' : cannot convert parameter 2 from 'System::Windows::Forms::Label ^' to 'const char *' No user-defined-conversion operator available, or Cannot convert a managed type to an unmanaged type How do I stop this And the, I have no idea how to write to the opened file. How do I do that Please help me! Hiya. Than ...Show All
.NET Development aspnet_regiis error when encrypting connectionStrings
I have a website whose domain is www.myWebsite.com and on my server it is located in a directory on my c: drive at the following physical path: c:\dirVirtual\myWebsite I have a connection string defined in my web.config in the connectionString section. <connectionStrings> <add name="myConnectionString" connectionString="Data Source = 1.2.3.4; Initial Catalog = XYZ; UserID=user;Passowrd=xyz" providername="System.Data.SqlClient" /> </connectionStrings> I go to the c:\Windows\Microsoft.Net\FrameWork\2.050727 directory and there run the following command to try to encrypt th ...Show All
Visual Studio 2008 (Pre-release) Using LINQ/DLINQ in live apps?
There seems to be a lot of activity on this forum and it has me wondering...are all these questions coming from applications that aren't going to launch until after Orcas ships OR is it "OK" to create apps today that are targetting .NET 2.0 using LINQ/DLINQ :) Is there any chance there will be a Go Live license for LINQ/DLINQ before Orcas ships Whats the latest on when Orcas is expected to ship Basically, when can we expect that we'll be able to use LINQ for real ...Show All
