JinFan's Q&A profile
.NET Development Problems authenticating on a foreign server
Hello. I'm using HttpWebRequest to log a user on to a foreign server. They supply their own user name and password. I know that sounds like a huge security mistake, but bear with me. Basically I have to make a number of adapters for various web-based e-mail clients, such as Yahoo. Most of these aren't too bad, but I've hit a roadblock on sites like www.mailpuppy.com . The web site reports that my session ID is invalid, but when running a&nb ...Show All
SQL Server SQL Server Express Security?
We are releasing an application built on SQL Server Express in the next few months. Our clients are mostly small companies with little technical knowledge, and they will be using our application on desktop computers where everyone likely logs in as the same user. As such, my thinking is that we setup SQL Server Express as in SQL Server Authentication mode. This way they could select an Administrator password upon first installa ...Show All
SQL Server service broker message on remote instance not working
I was trying to send a message on a different instance in the network using service broker. I have created the endpoint and route both the side. I could see that the messages are in the transmission_queue in the sender side with no error in the status. What could be the reason. I am doing the following: CREATE ROUTE inst02 WITH SERVICE_NAME = 'SERVICE2', ADDRESS = 'tcp://10.14.43.149:2341' in the send script i am using this: BEGIN DIAL ...Show All
Windows Forms Report Viewer prints different sizes according to screen resolution...
Whatever size the computer desktop is set at affects the size of the reports I am printing. Maybe it is in the build of the report that is causing the problem, but i dont think so. I have it set to 7in wide and 9in high, and i'm not using percentages or anything, so i have no idea why it would be printing in different sizes... I do know that if i change the desktop resolution to different sizes, the report size changes. Does anybody have ...Show All
Visual Studio Express Editions How to Reset Form and Delete DataSet
Hi everyone, I have a form that gets filled with all kinds of goodies (listboxes, treeviews, textboxes, labels, etc). A dataset also gets created programatically with a single table (6 columns and probably 100 rows). I'm looking for a way to quickly reset the form back to its original state and delete the dataset. I found: Application.Restart() which looks like it resets the form like I want it to. Two questions: Any repercu ...Show All
SQL Server Lookup Transform error when linking using a DT_R8
I'm trying to lookup a value in another table linking on a column of datatype DT_R8. The lookup transform is complaining that I can't link on that datatype. However, the documentation says that it should work. I'm using the April CTP. Is this fixed in a later version Any suggestions I'm sure DT_R8 does work in a Lookup. You may get an error such as - [DDD, BackOfficeSoftwareKey] ...Show All
Visual Studio Team System After VSSConverter, the .sln file still point to VSS, not the VSTS Source COntrol
Hi: Maybe I missed something, but I have a question like to ask everybody who know the steps. I have a Visual Studio 2005 solution with 2 projects and 1 web site. This solution was originally controlled by Visual SourceSafe 2005 and worked since Dec CTP released. Now I want to change the source control to Team System Version Control, which is in the TFS April CTP edition. I followed the steps in Migration Walkthroughs with ...Show All
.NET Development XPathNavigator Null Xml Bug?
If this is a way to represant a null xml entries: <name/>, then XPathNavigator doesn't like that cause it can't determine the value of a node properly with those scattered through the document...Here's code that should show you what i mean... the output is this: Expected: 0 1 2 3 4 5 Actual : 01 2 3 45 Press any key to continue . . . using System; using System.Collections.Generic; using System.Text; using System.Xml.XPath; using ...Show All
Visual FoxPro Form clattered at design time. How to change pages?
With many controls added to a form I am beginning to sense a problem. During runtime many controls will be invisible on the first page but when subsequent pages are chosen they will appear. It is determined programmatically. I do not see an option to choose pages at design time. It would allow me to see some controls much better. In Visual dBASE Plus such convenience if taken for granted and much appreciated. How can I do it here Thanks. H ...Show All
SQL Server SSIS Bulk insert to 2k
I am using SSIS (2005) to insert records into a sql2k database and getting error: The selected connection manager uses an earlier version of a SQL Server provider. Bulk insert operations require a connection that uses a SQL Server 2005 Provider. Using the Bulk Insert Control Flow object is not an option because it requires the file be on the 2000 server and I am not able to create temporary tables on the 2005 server (some nutty security ...Show All
.NET Development Data Binding error!
Hi Everyone, Why the application rasing error: "Dynamic SQL generation is not supported against multiple base table." while executing SqlDataAdapter What mistake I am doing Can anybody help Thanks in Advance, Jose Jose, Rather than use the SqlCommandBuilder to generate your update logic at run-time, you can set the SqlDataAdapter's InsertCommand, UpdateCommand and DeleteCommand to call your stored procedures as David showed in his pr ...Show All
Visual Studio Team System New System definition using SDM SDK
Hi, I'm trying to create a new SDM system definition using the SDM SDK. I'm using Visual Studio TS Beta2. I successfully compile my .sdm file, I'm able to create manager dll using SdmG and CSC and I also create a prototype for toolbox using protogen tool. When I install my sdmDocument into VS (by adding required entries into registry - EnterpriseTools\Sdm\InitializationFiles and EnterpriseTools\DesignerPrototypeFolders) I see an entry ...Show All
.NET Development error with parameter with stored procedure
I have a stored procedure for inserting or updating records that is identical to tens of other ones for other tables and they have no problems. However, with this one on the second call to this procedure I get the following error: Formal parameter '@@ModelLookupMatchID' was defined as OUTPUT but the actual parameter not declared OUTPUT. The call from a VB.Net app sets the direction for the parameter as ' ...Show All
Windows Forms Installing a windows service with installUtil.exe
I have a windows service. I need to install it before I use it. I have done this before on a different project and it worked fine. Now for my current project, when try to install the windows service with InstallUtil.exe, I get the following error message. Note that FilesSaveAndCopy.exe is the name of the executable for the windows service. System.BadImageFormatException: The format of the file 'FilesSaveAndCopy.exe' is invalid.. ...Show All
Smart Device Development copy files to pda
How can i copy files to pocket pc using comand line on desktop I saw a tool posted by someone that does this (you can also write on your own using RAPI) http://www.codeproject.com/ce/rcmd.asp Amit ...Show All
