NickNotYet's Q&A profile
Commerce Server CommerceProfileSystemException: Failed to initialize profile service handle
Hi, We are working so thad whe have an integration server on with Commerce Server and SQL Server are running. Each developer has now local his own Commverce Server and connects to the database on the integration server. Everything was running fine till last week and now we get a rely strange error. If i start the Website on the server itself it loads and works correctly but if I start the local website on a developers PC I get the error that it Failed to initialize profile service handle. Its so strange then the code of the website is at the momment exactly the same as on the Developer's PC and i get the error way before it really goes into the code. What could here be the Problem It was really working fine last week even the Prof ...Show All
Visual Studio How to display two tables in a report?
I have two tables in the database which call table1 and table2. I try to display the records and I insert detail1 and detail2: Detail1: field1_table1 field2_table1 field3_table1 Detail2: field1_table2 field2_table2 field3_table3 However the result is: field1_table1 field2_table1 field3_table1 <--row1 field1_table2 field2_table2 field3_table2 field1_table1 field2_table1 field3_table1 <--row2 field1_table2 field2_table2 field3_table2 How can I do to display: field1_table1 field2_table1 field3_table1 <--row1 field1_table1 field2_table1 field3_table1 <--row2 ... field1_table2 field2_table2 field3_table2 <--row1 field1_table2 field2_table2 field3_table2 <--row2 ... Thanks all!!!! ...Show All
SQL Server Export to PDF
I have a wide report and i want to export it to PDF in lanscape mode. How can i do that Setting page layout in ReportViewer control has no effect on generated PDF document - it is always in portrait mode. Check out Brian Welcker's blog entry on the topic: http://blogs.msdn.com/bwelcker/archive/2005/08/19/454043.aspx Thanks, Donovan. ...Show All
SQL Server Unable to read Local event log(Reason:The parameter is incorrect)
Hi All I want to create a schedule job on the SQL Server agent. For a test basis I just created a sample package and created a job. It is giving me this error ‘Unable to read Local event log(Reason:The parameter is incorrect)’ Please suggest me or if anyone is running schedule jobs please help. My machine has Widows Server 2003 running and I have sql server 2005 . Is it problem with server or any patch needed I was reading as SP1, but still I was reading the error is reproducing. How are you all doing this job scheduling as it must be a common scenarion. Rgds Sai 42/4236 We have installed SP1, but still get this error in the event log and SQL Agent log. ...Show All
Visual Basic File Streams
How can i detect if a text file is already open by another process before i try to write to it. Thanks Is it your program which is locking the file, or another program If it's another program, then there's not much you can do about it. However, when you open the streamwriter with a filename directly, you will open it for exclusive access (i.e. no sharing). If you can't open it exclusively, you will get an error. Normally, I would open a file for writing, but with shared read: this will allow other applications to read it (but not write), and still allow you to write to it. ...Show All
Visual C# Question on behavior: Casting enum to int
Consider the following: public enum Value { First = 0, Second, Third } public void Test() { Value value = Value.First; value = (Value)5; } I was expecting the line 'value = (Value)5 is going to throw InvalidCastException since 5 is not definied in the enum. Is this behavior by design PS: This is in .NET 2.0. Yes, it is by design. For the runtime only the underl ...Show All
Visual Studio 2008 (Pre-release) Need Help: Ticker
I'm trying to create a kind of scrolling ticker like the one used on news channels. Can anyone offer some insight on how to approach it I've just done a WPF ticker control. It can repeatedly scroll without empty tail and able to add in message items during the message scrolling. The way I do it is as follow DoubleAnimation targeted on element like TextBlock/Hyperlink make a move left or move right animation. Hook up the storyboard event CurrentTimeInvalidated, check the position of current animation, then fire to execute another animation on the next message when the current animation hit that position. After the animation of a particular message completed, set th ...Show All
Audio and Video Development iHD Simulator doesn't display video post-Windows Media Format SDK Install
After I installed the Windows Media Format SDK (9.5) for Windows Media Encoder 9, I noticed the iHD Simulator won't display video any more. The menus appear fine as normal but the background footage is completely black. The footage plays fine in WMP11. Any ideas Suggestion is to try the WMP 11 SDK: http://msdn.microsoft.com/windowsmedia/downloads/default.aspx Also, try using graphedit to play the video; that shares more code in common with iHDSim than WMP does. ...Show All
Visual Basic visual basic
hi can anyone help me i have just started using visual basic i am doing some work for college i have been ask to design a progra asking the user to enter their name ,address town postcode and phone number i have to create 5 tet boxs foer the information when i click for the second text box should it say text box two You certainly don't have to. Everybody should names their controls/classes as they see best. The point was that you can rename your controls according to your needs. Andrej ...Show All
Visual Studio Team System TFS errors after enabling SP1 ISAPI filter
I'm trying to get this SP1 ISAPI filter working, but when I enable it I have connection problems with the TFS. I can still connect, but can't see work items or source control. I have the ISAPI filter configured like this: [config] RequireSecurePort=true ProxyIPList=192.168.1.1; There is an event log entry that says it has started correctly with that configuration. Here are the event log messages that start showing up when I try to connect with the ISAPI filter installed: Detailed Message: TF53002: Unable to obtain registration data for application VersionControl. Web Request Details Url: https://tfs.domain.net/VersionControl/v1.0/repository.asmx [method: POST] User Agent: Team Foundation (devenv.exe, 8.0.50727.147) Heade ...Show All
.NET Development How to know what exceptions a method can throw?
I was reading in some other posts that you only have to catch known exceptions. And that it is not allowed to catch Exception like this: private void CheckCancelEntryWeighingRecords() { try { mis.Transfer(data.CsvData); //Call to a third party dll } catch (Exception ex) { LogError("Error occured in CheckCancelEntryWeighingRecords", ex); } } How can I know what exceptions a method can throw So that i can decide on which situation i can recover and on which not I know that the Framework.NET has documented the most exceptions. But what about third party dll's with bad of no documentation I also know i could use reflector to look what the possible exceptions a ...Show All
Visual Studio Team System Nothing created in \Binaries\win32\debug
Hi, Team build reported fail and indicated that cannot link the library in D:\PrivateBuild\<Path to My Solution>\Binaries\win32\debug; but the library is in D:\PrivateBuild\<Path to My Solution>\Sources\<somewhere>. I do not know why the library is not copied to Binaries\win32\debug folder, does anyone can help on this Thanks, Wesley Hello Anutthara, After looking at other posts in the forum, I found out the problem; it seems the dependent project link to hard coded reference path used in my VC project. And now the binaries can successfully be generated to \Binaries\win32\debug. But the problem is those binaries does not go into the Drop folder that specified by Team Build proj ...Show All
Windows Forms New Unable to view designer in vs2005 c#
Hi! More or often less systematicly I get an error message when I try to view my forms in the Designer. It seems to be related to form which inherits from a baseform which again inherits from Form. It worked fine until 1 1/2 week ago. Then I should continue working on an old form in project. This form gave an error message instantly and suddenly ALL of my forms (inherited from my baseform) was unable to see in the Designer. I have tried making new projects, solutions, forms. Seems to start good but at some point they all get the same redline errormessage. This is VERY frustrating and timeconsuming. The whole customerproject will suffer from this unexpected problem. I have found no ice-breaking info on the net. The thread with almo ...Show All
Visual C# How can I load an object?
I am trying to make a notepad type application in C# for a test project. I have the menu toolbar done, and now I need to make it so that when, for example, the 'page setup' item is clicked, the page setup control is opened up. I need this for all of the items, such as open, save as..., etc. Can anyone help me please Thanks. Vampire ...Show All
SQL Server Automatically Export reports in SQL Reporting services 2000
Is it possible to have a report automatically export the results to Excel, when the report is generated ...rather than having to select the format and click Export .Pl let me know-Thanks. I found this article some days ago! http://ryanfarley.com/blog/archive/2006/01/27/15689.aspx ...Show All
