Tiny Pan's Q&A profile
SharePoint Products and Technologies Admin permissions required to use WSS API locally?
Hi, I have just tried to compile a simple SDK code sample (enumerating sites in a site collection). It works fine if I'm a local admin on my SP box, but fails if I'm not. Here's the exception I get in this case: Unhandled Exception: System.IO.FileNotFoundException: The Web application at htt p://spb9306 could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need t o add a new request URL mapping to the intended application. at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean con textSite, SPUserToken userToken) at Microsoft.SharePoint.SPSite..ctor(String requestUrl) at SOM_Test.Program ...Show All
Software Development for Windows Vista Add a rule conditions programmatically in an activity
I'm almost exploding here... please help me. I am trying to create an activity that implements a lot of functionality so that the user can just drag it on his workflow and not be concerned about the implementation of certain tasks. My activity dynamically adds a ConditionedActivityGroup, for which rule conditions are needed. I have tried three ways to add the conditions to the workflow: Add a .rule file to the activity files by manually adjusting the project file. The problem is that the runtime does not seem to find the embedded file. Create and add the conditions programmatically and add them in the constructor of the activity and add them using rootActivity.SetValue ( RuleDefinitions . RuleDefinitionsProperty, ruleDef); . The problem ...Show All
SQL Server Clocking Report
Hi, I have to report the clocking for our company employees. The main clocking table is just employee number & Date/Time clocked. An employee can have any number of clockings per day. Would it be possible to create a select statement so that there is just 1 row per day for each employee [Table Rows] piet, 2007-02-23 07:59 piet, 2007-02-23 13:01 piet, 2007-02-23 13:55 piet, 2007-02-23 16:35 [Result for SQL statment] Piet, 2007-02-23, 07:59, 13:01, 13:55, 16:35 Any help will appreciated. Thanks ...Show All
Visual Studio report viewer textbox keep together problem
I am using winform report viewer in C#. I add a list. Inside the list, I add customer Id, name, addresses etc. these approximately occupied half page. The last field I add is a Note that is a long text. I found if the Note is more than half page, the Note will entirely display in the second page and leave the first page's second half page blank. That is not what I want. I wish the note always start to display at first page and continue to the next page. In the list property, I set the keep together to false, set group on to the customer Id and page break at end. I've just come across this problem too - a simple textbox that should start on page 1 and continue onto page 2 but only starts on page 2 lea ...Show All
.NET Development SQLDataReader.GetOrdinal() fails rarely with IndexOutOfRange
Hi everybody, We were developed some Web-Services that run against SQL Server 2000 with SQLDataReader that executing Stored Procedures in the DB. Most of time (95%) everything is running well, but sometimes (when exactly, we don't know) the same WebService that worked 200 times, fail. The code is simple: public string myFunction( int ANumber ) { string strRetVal = null ; SqlDataReader myReader = null ; SqlConnection MyConn = null ;   ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Will build #5536.16385 of Vista be compatible with D3D10 in August'06 SDK?
Hi, Just checked my email and it seems that beta testers (maybe MSDN people as well) can now get another pre-RC1 build of Vista. The August'06 SDK states that the D3D10 CTP will only work with RC1 of Vista and the other recent pre-RC1 build wasn't good enough. So, just wondering if anyone here knows if 5536 will work with the August SDK or if we still need to stick with Beta-2 and the June SDK. Would save me a lot of time before I go and download 5gb of ISO's and spend a few hours setting up my test machine... Cheers, Jack Klamath wrote: What hardware are you using As (nearly) everybody else I am forced to work with the refrast. ...Show All
Visual C++ HELP! Enigmatic LNK2005 error defies solution in C++ project
Hello, I am getting the following error on attempting a release build. The Debug build compiles AOK. Error 1 error LNK2005: ___@@_PchSym_@00@UwlxfnvmghLzmwLhvggrmthUxxUnbLwlxfnvmghUerhfzoLhgfwrlLCAAFUkilqvxghUghwkkPehUghwkkPehUivovzhvUwzgzvovnvmgOlyq @ already defined in dataelement.obj dataset.obj I have dealt with LNK2005 errors before, but normally the text of the error is more helpful. How do I decode this so I can find the error I went through all the project setting differences between the release and debug builds, changing the release setttings to match one by one. It did not help. I hand searched my code for the usual LNK2005 suspects to no avail. I was getting stdafx.h not included errors which I solved by adding ...Show All
Visual C++ Any interest in building an FAQ?
I'd like to propose that we put together an FAQ to address some of the issues that pop up regularly here. It seems like we have an awful lot of questions like: - "How can I call my C#/VB/FORTRAN routines from C++ " - "How do I compile and run my project " - "I've included the correct header files, so why am I getting LNK2019 errors " - "How on earth am I supposed to use destructors/finalizers/IDisposable " And of course these are all valid questions! But since they are common questions which tend to be answered in the same way from one thread to the next, I think it would be very helpful to have all (or at least most) of the common answers in one single place. This would be helpful both to aske ...Show All
Software Development for Windows Vista Freeformdesigner --> saving to XOML
Hi! I have implemented a workflow surface who is using the freeformDesigner. I can now resize and move the activities free around the workflow surface. I can also draw arrows between the activites in any direction I want. I have used much of the flowchart example code. Here is my BIG challenge for you: When I save the workflow and re-open it it doesn't appear like it was before I saved it. The activity-boxes' position and size is correct (I have implemented this). The problem is that the arrows between the activity-boxes is gone. How can I save the arrows' position into the XOML-file I don't even know where to look for this properties... Thanks a lot! The layout information is ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Multi threading in a game (using XNA)
Hello. I am able to create thread and make them exchange information through common objects they know (server / each other reference) Now I would like 2 threads to update a server. Each of those threads takes for inputs a keyboard for one, a mouse for the other one. However, it seems that the thread that listens on the keyboard do not detect events from it. Seems like it is the parent thread that is able to listen to a keyboard event and only that parent thread. How would you do so that a children thread is master over a device even if it does not have the focus Regards, Chryso It is more like separating code. The keyboard / mouse is just a start. Using gamepad is what comes next. And if I want to push it ...Show All
Windows Live Developer Forums VE Collection Question
Hey, I have a question about my VE Collection code... The code I have is below. I was wondering if there was a way to somehow change the code to make it so it loads as soon as the page is loaded (you dont have to click a load button). If you could help that would be great! Thanks <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script src="http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js"></script> <script> var map = null; & ...Show All
.NET Development Garbage Collection never collects garbage from generation 2 (finally resulting in OutOfMemory exception)
Hi, I have been searching the net for many hours trying to solve my problem. Since many questions regarding the GC are answered here I hope you can help me. We have built an web application based on ASP.NET (v1.1), the enterprise library (ie caching and logging blocks) and a custom framework. The problem is that the w3wp.exe process keeps growing and growing untill it recycles around 600 MB. When monitoring the heaps I discovered that the heap basically only grows, expect for some small memory releases now and then. I used windbg to analyse a memory dump (created on the moment of recycling). It seems that many objects reside in the generation 2 heap while not having any references to other objects. There are for instance 2000 dataset objec ...Show All
SQL Server Msg 3616 Transaction doomed, Triggers and Error logging
I am trying to use the uspLogError and uspPrintError stored procedures found in AdventureWorks and I have a problem. I have a stored procedure called Is_uspProcessLeads that processes some customer information that is in xml format. Part of the process is to check to make sure that the xml is well formed and if it is validated. Each step along the way, Is_uspProcessLeads updates a status field to indicate how far along in the process the xml file got, and if there is an error, to capture that error in a log file. The error handling process uses a try..catch logic. Is_uspProcessLeads does it's processing against a table called [ Is.Leads ] which contains the following fields... IsLead_Id   ...Show All
Visual Studio Remote debugging - timeout period exceeded
I'm having trouble getting remote debugging working between two machines that aren't in the same domain. Local machine is XP with VS2005. The machine is in a domain, and so is the user. Remote machine EDMDEMO is Win2K in a workgroup. The remote debugging monitor is running interactively in a local account. Local userids exist on both machines to match the domain user id, and all 3 passwords match. I can browse the shares of the machines without any problems. The local can connect to the remote machine, and it shows up in the remote debugging monitor as "EDMDEMO\username"connected. This waits for about a minute then returns the error (on the host): --------------------------- Microsoft Visual Studio ------------ ...Show All
Visual Basic RegExp
Hi, If I had a textbox that contained the following: --------------------------------------------------- Mr FirstName LastName ABCD Ltd, Address 1, Address 2, Town/City, PostCode, Notes1, Tel: 0171 800900, Fax: 0171 800909 --------------------------------------------------- how can I parse this to -------------------------------------------------------------------------------------------------------------- Mr, FirstName, LastName, ABCD Ltd, Address 1, Address 2, Town/City, PostCode, Notes1, 0171 800900, 0171 800909 -------------------------------------------------------------------------------------------------------------- I now this can be done using Linux GREP but I am new to regular expressions and its options. Any assistan ...Show All
