VladR's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Serializing Custom Content
I've created a custom level class that I would like to load through a custom content processor. Everything seems kosher until it tries to serialize the class. Is there a particular interface I need to implement The exact error is "Error 1 Building content threw InvalidOperationException: Cyclic reference found while serializing SpaceRace.SpaceLevel. You may be missing a ContentSerializerAttribute.SharedResource flag at Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler.ContentWriter.WriteObject[T](T value) at SpaceRace.SpaceLevelWriter.Write(ContentWriter output, SpaceLevel value) in C:\Documents and Settings\Nick\My Documents\Visual Studio 2005\Projects\SpaceRace\SpaceLevelLoader\Spac ...Show All
SQL Server Package scheduling and error trace-
I am scheduling the package to run on the nightly basis everyday using windows scheduled task. How do i check whether the package ran successfully or it has given any error. Can anyone please suggest me if I can log the error in some table of SQL server. PLease suggest the steps. When building a package in BIDS, have a look at the logging options. See the SSIS menu item, Logging. You can log to several locations including a table. I would expect DTEXEC to send the appropriate return code when it failed, so the scheduled job should fail. Unfortunately the windows scheduler is not very advanced, so you cannot capture output or configure the return code. The lack of output and monitoring mean ...Show All
Visual C# How to convert Parameterized Delegate from C# to VB.Net?
Hi I want to convert this code segment to VB.Net but none of the converters worked. using System; using System.Windows.Forms; using System.Threading; using System.Reflection; private static Thread m_SplashThread = null; private static Form m_SplashForm = null; Dim splashFormType as Form ' actually splashFormType is refrence to form already added to application m_SplashThread = new Thread(new ThreadStart(delegate(){createForm(splashFormType); Application.Run(m_SplashForm);})); Private static voic createForm() { 1 Create a new instance of form 2 set properties 3 assign new instance to form m_SplashForm } How it can be converted any way Please comments Thanks Idea seems ...Show All
SQL Server How do I update a field only if update value is not null?
Hi. I'm not such an expert in sql and I wanted to update a table's fields only if the value that im going to update it with is not null. How do I do that What I mean is something like: --------------------------------------------------- Update database.dbo.table set if(@newvalue !=null) afield = @newvalue; ------------------------------------------------- Really need your help on this. Thanks. Hello, How about: update Table1 set column1 = @newvalue where @newvalue is not null and column1 = somevalue Cheers, Rob ...Show All
Visual Studio Team System How to customize permission
Can I ask is there possible to customize the permissions that created by TFS Absolutely :) You can modify permissions for users that connect to TFS in a variety of ways. I will give you some examples - but these are not the only ways: To modify server level data (create/delete global groups, add members to groups etc) Connect to your TFS via Team Explorer Right click on the server name For membership management, go to 'Team Foundation Server Settings -> Group Membership' For permissions management, go to ''Team Foundation Server Settings -> Security' To modify project level data Connect to your TFS via Team Explorer and open your TFS Project Right click on the pr ...Show All
SQL Server System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data
I have created a windows library control that accesses a local sql database I tried the following strings for connecting Dim connectionString As String = "Data Source=localhost\SQLEXPRESS;Initial Catalog=TimeSheet;Trusted_Connection = true" Dim connectionString As String = "Data Source=localhost\SQLEXPRESS;Initial Catalog=TimeSheet;Integrated Security=SSPI" I am not running the webpage in a virtual directory but in C:\Inetpub\wwwroot\usercontrol and I have a simple index.html that tries to read from an sql db but throws the error System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, ...Show All
SQL Server multi step OLE DB error
Hi All, I have a MS Access DB that I have successfully u/graded to SQL Express 2005. I run my code using a recordset as normal, and all connections to the database work fine, but I receive the multi step OLE DB error when it gets to a line trying to populate an address field which has a datatype of nvarchar(max), null. (Field was Memo in Access version before). This field in SQL2005 has allow nulls. I've tried to add an empty string " " to the variable before being saved, but this still doesn't work. Any ideas My program occurs this error at the line below: rs.delete <---------------- occurs "multi-step multi step OLE DB error ......." I spent two days fo ...Show All
.NET Development Unable to download data
Hi, I'm using the below code for downloading data from a server, WebClient downloadSearchResults = new WebClient(); NameValueCollection queryStringCollection = new NameValueCollection(); queryStringCollection.Add( "q",queryString ); //Final search query. downloadSearchResults.QueryString = queryStringCollection; System.Text.UTF8Encoding encodingData = new System.Text.UTF8Encoding(); char[] searchDataArray = encodingData.GetChars(downloadSearchResults.DownloadData(" http://IPaddress of the server/search ")); // Converting character array to String. string completeSearchResult = new string( searchDataArray ); The problem is when it comes to downloadData, no data is being downloaded, the link (serve ...Show All
Windows Live Developer Forums Is msgrp2p.xml necessary for both users?
According to the document,"Both computers must have a copy of MSGRP2P.xml in the Messenger program directory. ",whereas when I was testing the sample of "Tic Tac Toe" with my friend who had not MSGRP2P.xml in the installing folder ,everything went well. That is,I set up a web site in my PC using IIS for the "Tictactoe.htm" and copy the MSGRP2P.xml (edited correctly) to MSN Messenger's installing folder.Then I invite one of my friends in conversation window to play the "Tic Tac Toe" game,he saw the arena on the right side of his window and clicked mouse on the board. How does the remote user locate the "Tictactoe.htm" without a "msgrp2p.xml" When an ...Show All
Windows Forms OTP: disabling SHIFT + DELETE
hi , does anyone know if i can disable shift +delete on windows xp or not because i have delete most of my file 3 times allready , when i got use to shift delete now i delete everything like that so i am losing some of mu files by fault, can anyone help me please "sorry if is not fully understandable, because when i am writting this is about 15 min to 1 am in UK and i haven't sleep for about 48 hours, so sorry" thanx These forums are for programming questions only. You need to look elsewhere for help on how to use windows. However, I doubt you can disable it, if you press shift and delete, then you will delete the file. Just don't press shift if you'd prefer it to go to the recycle bin. ...Show All
Visual Studio 2008 (Pre-release) How to combine data from two tables into one EntityType?
Using the vNext August CTP and Linq May CTP LINQtoEntities Sample I would like to include the CategoryName of the Northwind Categories table in the Product EntityType, to be able to do following query: var products = from p in db.Products orderby p.CategoryName select p; foreach ( Product p in products) Console .WriteLine( "{0}\t{1}" , p.CategoryName, p.ProductName); What does the entity model have to look like Thanks! Hi nakrian – The issue Entity Services has with your scenario, is that in Entity Services, Entities need a unique key to define their identity and trying to define an Entity encompassing tables with different keys is not supported ...Show All
Software Development for Windows Vista Per Pixel Alpha subthemed controls
New to Vista themes is visual styles that have perpixel alpha values. In my various incarnations of apps testing theming in Vista, I've started with a button on a Windows Form, subtheming it to a StartMiddle button, which works as expeted (the start menu image appears in the middle of the button area, the edges of the button image fade with the background, and the rest of the button area is invisible). I then created a glass pane (no frame, useing DwmBlurBehind), and then drew the TaskbarComposited::Taskbar background on top of the window, which then emulates exactly the feel of the taskbar itself, with it's blurry glass effect, with the taskbar image partially transparent. I also had a button subthemed to StartMiddle, and it appeared exac ...Show All
Visual Studio To Know the value of the field where the user click on the report
Hi, I want to know the the value of the field where the user click on the report.I am showing a transaction report and if the user click on the transaction number then i will have to show the sub report of that particular transaction type as in my case transaction number is uniqe. ...Show All
Visual Studio Team System Cannot Deploy without Column Collation in CTP6 - UPDATE
In CTP5 I was able to import and deploy using the default database collation (without column level collation). Since CTP6 every import and deploy script includes a collation definition for every char column in the script files. I do not want column level collation defined. The project properties are set to "Do not script the collation". The setting "Use the server collation" has no effect either. Is this a bug or did I mess something up I can't find anything else that would change this behaviour. Alle Hi Mairead, unfortunately I'm 10 hours "ahead" of you, so I'm home now. Which scripts / files would you like It's only a small starting point in the project so ...Show All
SQL Server Web Synchronisation
iam able to open the web sync diagnostic information using URL https://itneersrv.abitta.com:443/Synchronise/replisapi.dll in the internet explorer but while running throuth the c# code to run Merge agent i am gettin the following error , [0%] InProgress The Merge Agent could not connect to the URL 'https://itneersrv. abitta.com:443/Synchronise/replisapi.dll' during Web synchronization. Please ver ify that the URL, Internet login credentials and proxy server settings are corre ct and that the Web server is reachable. A security error occurred I am trying the synchronise through Internet where i have an publisher is at different country and subscriber at my office in India , i have given all privileges but then too i am getting same e ...Show All
