ANS-Denver's Q&A profile
SharePoint Products and Technologies Security Trimming - missing configuration?
I have a new out of the box install of MOSS07 up and used it to crawl some legacy SP 2003 sites with Enterprise Search. The problem we're having is security trimming doesn't seem to be kicking in on the results - users are able to get links in the results page to items they don't have security access to (SP still prompts for credentials when the link to that resource is clicked). I have one domain security account as both application identity and primary crawl ID - this ID was given permission to the legacy SP content. The content is indexed but like I said everyone can see it regardless of rights to that resource. I'm having trouble finding articles on troubleshooting/configuring security trimming for MOSS07 - apparently it should w ...Show All
.NET Development get file from remote machine using WMI
Hi, I need to copy a file from a remote machine using wmi but i don't know how to define the path to my machine, below is the code that makes a copy of a file in the same machine, what should be the path if i wanted to copy it to my c:\example\ folder ManagementBaseObject inParams, outParams; foreach (ManagementObject mo in queryCollection) { Console.WriteLine(mo["Name"].ToString()); inParams = mo.GetMethodParameters("Copy"); inParams["FileName"] = "c:\\example.config; <----------------- what can i put here so that it refers to my machine outParams = mo.InvokeMethod("Copy", inParams, null); // List outParams Console.WriteLine("Out parameters:"); Console.WriteLine("ReturnValue: " + outParams["ReturnValue ...Show All
Silverlight (formerly WPF/E) WPF/E (TextBlock) is not rendering Unicode correctly
I have downloaded the WPF/E CTP & SDK, I played with them and have noticed that WPF/E does not fully support Unicode, as I use a TextBlock to test the display of Arabic text, WPF/E was rendering the text incorrectly as if it is rendering the text from left to right while it should render the text from right to left. This same behavior is true for Hebrew too which is also a right-to-left language. am I missing somthing Until FlowDirection is implemented, Can you mirror your text <TextBlock > <TextBlock.RenderTransform> <TransformGroup> <ScaleTransform ScaleX="-1" ScaleY="1"/> <TranslateTransform X="100" Y=" ...Show All
Visual Studio Express Editions Clipboard Problem
I work for a University and we are looking into a feature that records if any of the students used a website for reference, ie cntrl +C and then paste within a word document. Is there a way to detect what website they copied onto the clipboard from. Any help much appreciated Chris Thanks for the help, One last question, could this be made within a macro that sits on a word template, that we could give the students. Chris ...Show All
SQL Server Copy database from SQL Server Standard to SQL Server Express
Hello, I am currently faced with a problem of copying a database from SQL Server 2000 to SQL Server 2005 Express using the SMO classes. I am using VB.NET and i'm just trying to take an exact copy from the server. Any ideas on how I would do this in code Any links would be great. Thanks. Rob Hello Guys, I've managed to fix the problem now, the error caused was because I never had Service Pack 1 installed for SQL Server Express. if you are having the same problem go to http://msdn.microsoft.com/vstudio/express/sql/download/ and download service pack 1 then try. Least it works now 4 hours later :-) Rob ...Show All
Visual Basic updating data grid connect to ms access database.
I have a ms access database with a table consisting of the fields user_id and password. i have a datagrid binded with this information that is displayed in a vbform. i have added an "add" button. when i press this i want the new data entered in the datagrid to be updated in the msaccess database as well as the datagrid. so far i have the following code: Dim connStr As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source = C:\Documents and Settings\Owner\My Documents\Telephone.mdb" Dim con As New OleDb.OleDbConnection(connStr) con.Open() Dim objcommand2 As SqlCommand = New SqlCommand objcommand2.CommandText = "INSERT INTO Users" & _ "(User_ID, ...Show All
Visual C# impersonating logged on user in windows service
I have a windows service running under local system account . I need to perform some "logged on" user specific operations (something in CurrentUser of the registry) through the service. I know i need to be impersonating the loggedon user in the windows service but having difficulty in creating a windows identity . I am using something like the following code IntPtr logonToken = WindowsIdentity .GetCurrent().Token; WindowsIdentity id = new WindowsIdentity (logonToken); WindowsImpersonationContext impersonate = id.Impersonate(); the first line gives the SYSTEM account as the windows service is running under that context , not the logged on user - So it is of no use to me . I need some method which returns the ...Show All
Smart Device Development IR Command...
Hello, I need to make a program that receives a command from an infrared device... like a remote controller... is there any way of accomplish this can someone show me the way thanks... Hi That depends on various aspects like the way the IR device transmits its data (Serial over IR, IrDA...), the Windows Mobile Device you're using. Windows Mobile (and the underlaying Windows CE OS) supports 3 ways to access the IR port: IrDA Sockets: a managed API is available in System.Net.Sockets. IrDAClient (System.Net.IrDA.dll) IrCOMM (COM emulation over IrDA): use the .NET CF 2.0 SerialPort class to use this techology More infos are available in the MSDN library under http://msdn2.microsoft.com/en-us ...Show All
Smart Device Development Developing a pictures cab
I am working on developing a cab file that will deploy all of the pictures that the system uses. This will allow the user to put the pictures on the storage card as required. The only thing i am adding to this cab file is a bunch of .jpg images. I am getting an error Windows CE CAB Wizard Error: File c:\docume~1\u4eevjas\locals~1\temp\wiz853.inf contains DirIDs, which are not supported ERROR: The Windows CE CAB Wizard encountered an error. See the output window for more information. ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ========== I have looked and the qiz853.inf file does not exist. Can anyone inform me of what is happening and/or how to fix it. I think I have learned that t ...Show All
Visual Studio Express Editions no subject
can anyone give me an example as to how to connect and control something from a serial port.....something really simple like a light bulb..... hey maybe this..... I have a teddy bear which runs on batteries when you squeeze his foot he snores.... I would love to connect and control him by the pc any ideas...please If you don't have a voltmeter you don't need to buy one. In that case, you just need a little more surgery on the teddy bear. You need to find out how the sensor is connected by following the conductors from the battery. It is probably just a simple switch from one side of the battery to the electronics and the head movement motor, but it can be more complicated. You are lucky that the voltage on the t ...Show All
Visual Studio Tools for Office CheckOut and CheckIn customization
Hi folks, Is there any way to intercept Documents.CheckOut and _Document.CheckIn methods in Word 07 I'd like to provide my own document management services, but there doesn't seem to be a way to replace SharePoint access code with my own. I'd also be interested to hear any alternative ideas on how to transparently load/save documents from remote server. Cheers, Alex. Thanks for your reply John, but that's not quite what I'm looking for. I need a way to make Word call my code for document storage, not just override user commands. For example, I can save a document to a temp file and then send it off to my server, but Path property of that document would still point to a temp file. I've been ab ...Show All
Visual C++ C++ implicit cast rule
Just out of curiousity, does anyone know the C++ standard rationale for not allowing implicit casts that changes signness when indirection or referencing is used Consider: void byvalue( unsigned int ) { } void byaddress( unsigned int *) { } void byreference( unsigned int &) { } int main() { int x = 0; byvalue(x); // no error byaddress(&x); //cannot convert parameter 2 from 'int *' to 'unsigned int *' byreference(x); // cannot convert parameter 2 from 'int' to 'unsigned int &' return 0; } I'm guessing it's because the compiler is trying to ensure that the results of typecasting a variable are reasonable for that variable. To touch on the sample code ...Show All
Visual Basic Question about VB2005 connect to SQL2000(2)
I want use a variable to grab a string from a text box, then pass the variable into data base to check if any record is matched and then display result in a data grid. How can i actually do that do i need to create a specific adapter and dataset for that well you can, dataAdapters are really used for when you are wanting to fill a set of records into a dataset or update records in the given dataset to the database. So to me, looks like you want to show the records that match the variable correct if so, you could use a dataset/dataadapter but if its just 1 record you are after then it may well be inefficient. There are many examples on the forums on how to use a SqlDataAdapter if you are wanting to go t ...Show All
SQL Server Check all databases for file space used
Hi There As part of monitoring i want to hourly check the data file percentage used for each database, to monitor growth and know in advance when a data file will be full. However i do not want to write a job for ever single database , this instance may have up to 100 databases that = 100 jobs. So i want to write a job that checks the percentage space used for all databases. My first dilema is that i cannot loop through databases dynamically, by that i mean if i use a cursor that loops through database names, and i dynamically build sql the say 'USE @DBNAME' and execute it the cursor context stays local you do not actually change database context. So how do i loop though databases, i have found sp_msforeachdb, however th ...Show All
SQL Server How do I insert data from a flat file or .csv file into an existing SQL database???
How do I insert data from a flat file or .csv file into an existing SQL database Here what I've come up with thus far and I but it doesn't work. Can someone please help Let me know if there is a better way to do this... Idealy I'd like to write straight to the sql database and skip the datset all together... strSvr = "vkrerftg" StrDb = "Test_DB" 'connection String strCon = "Server=" & strSvr & ";database=" & StrDb & "; integrated security=SSPI;" Dim dbconn As New SqlConnection(strCon) Dim da As New SqlDataAdapter() Dim insertComm As New SqlCommand( "INSERT INTO [Test_DB_RMS].[dbo].[AIR_Ouput] ([Event], [Year], [Contr ...Show All
