Nagendra Rao S.V's Q&A profile
Visual Studio 2008 (Pre-release) WCF UserName authentication
HI, I'm trying to implement username authentication for a WCF service (hosted in ServiceHost, not IIS) and once service starts it gets to Faulted state if i specify: tcpBinding.Security.Message.ClientCredentialType = MessageCredentialType.UserName; Here's the piece of code where service is being started (all settings, e.g. endpoints, behaviors are set in code - there is no app.config in the project): //////------------------------------- urlService = "http://localhost:8000/MyService" ; host = new ServiceHost(typeof(ServiceLibrary.service1)); host.Opening += new EventHandler(host_Opening); host.Opened += new EventHandler(host_Opened); host.Closing += new EventHandler(host_Closing); host.Closed += new EventHandler(host_Clos ...Show All
SQL Server Books Online July 2006 issue
The SQL Server Books Online was working installed on my workstation fine until this morning. Now when I open it up it does not show me T-SQL reference with all the commands and functions. Yesterday I was on the MSDN website using the Books Online. Could some pointers in the program been corrupted I have uninstalled and reinstalled Books Online to no avail. Please help. Thanks, Fred Hi Fred, Okay, this sounds like maybe a filter was accidently set that is limiting the returned topics. At the top of the Contents tab, there's a "Filtered By" drop down box. Make sure the filter is set to either 'unfiltered' or 'SQL Server 2005', or 'SQL Server Database Engine'. That should resolve t ...Show All
Windows Live Developer Forums Msn Live "HOW TO CHANGE BACK TO SMALL BUDDY ICON" on contact list
hey guys i was wondering how i can change the BUDDY ICONS back to the SMALL THUMBNAILS on this new version for some reason i can't find it under options/ personal/ or message where can i find the option to change it back from LARGE BUDDY ICON THUMBNAILS to small. OK, ALL YOU HAVE TO DO IS LOOK TO THE RIGHT HAND SIDE OF YOUR MSN CONTACT LIST, ABOVE THE SCROLL BAR THERE IS A LITTLE GREEN ICON THAT LOOKS LIKE 2 ARROWS ONE IS POINTING UP AND THE OTHER IS POINTING DOWN. CLICK ON THAT, NOW THIS WILL SHOW YOUR OPTIONS. IF YOU WANT THE LARGE BUDDY ICONS, CHECK THE OPTION THAT SAYS "SHOW CONTACTS' DETAILS", IF YOU WANT SMALL BUDDY ICONS THEN UNCHECK THIS OPTION. ...Show All
Visual C++ Problem with strcpy()
Hello all, The following operations giving the error in vc++,visual studio 2005,where as the same thing works fine under vc++6. char a[16]; void CACTiMCtrl::SetUnicastIP(LPCTSTR lpszNewValue) { strcpy(a,lpszNewValue); SetModifiedFlag(); } Error is: error C2664: 'strcpy' : cannot convert parameter 2 from 'LPCTSTR' to 'const char *' e:\actim\actim\actimctrl.cpp 506 How can i solve the problem in visual studio 2005(works fine under vc++6) Thanks Adarsh See http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=849851&SiteID=1 , and especially the part marked "resolution". ...Show All
Visual Studio 2008 (Pre-release) Method-Level Authentication
Friends, I have created a kickass service oriented Membership System using WCF. First off, WCF is really the greatest thing since Solitaire. That says alot. So, a quick overview and then my question. Basically, I am using multiple endpoints to satisfy my clients for authentication. One endpoint uses the UserName authentication and another uses Windows authentication. All methods within the WCF Service sit behind these endpoints. I have created a custom UserNameValidator to handle non-Windows authentication requests. That works great. I have also created a custom AuthorizationPolicy and AuthorizationManager to handle some other various needs for the application. Now, I have an OperationContract/method called 'Authenticate' that ...Show All
Visual C# Problem with the HintPath
Hi All I use several third party library in my current project, I add the reference to these dll files by the "Add Reference" dialog.When I inspect my project file,I found that almost each reference element has a hint path pointed to the path of the dll file,except one file.Even after I remove the reference and add it again,the hintpath is still not there. This cause a problem when my project is built in the building server. Any one encounter some similar problem before Thanks I have a similar issue with the hint path not getting added however, the assembles that we are adding are not in the GAC, also the flag SpecificVersion is set to true by default and it should be set to false. Thus far ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA + Standard Dialogs
Hi, Thanks in advance for any help. Sorry if it's a silly question - though I have done a quick search of the forums and found nothing. I'm aware that, because of the way XNA uses the graphics device, standard windows buttons etc. can't be used in the main game window. So I wrote a quick form to show some diagnostics / settings outside of the main window. All OK. I now want that form to have a 'save as' button, to save the current file I've been editing in the underlying XNA code. However when I launch a SaveFileDialog from the form I get a "System.Threading.ThreadStateException". Is that because XNA doesn't like modal forms Why does it handle my form OK but not this standard dialgo I'm guessing I could write my own Save As dia ...Show All
Windows Forms Listbox - Scrolling
Hi all, I am using VS .Net 2005 C++. I have a windows form which has a listbox. When the application is started the listbox is populated with the numbers 100-200. I am trying to determine when the user has scrolled to the bottom of the listbox or have scrolled down so that I can add more numbers to the list box. Is there an event I can use to notify me when the user scrolls down Please help. Check this thread ... ...Show All
SQL Server hosting SSIS packages where?
After i create a SSIS package, where can i put it or store it in the SQL SERVER 2005 so that i can execute it later on Grant Swan wrote: Hi, The option to do this is available once you have built you're project and you have done this whilst the CreateDeploymentUtility is True. All you then have to do is go to the deployment folder (usually in the bin directory) and run the .SSISDeploymentManifest file. This will give you all deployment options including where to store your package. This link gves some info on how to execute the packages programmatically: http://msdn2.microsoft.com/en-us/library/ms403355.aspx Hope this is of use to you. Cheers, Grant I don't understand what you just said.. ...Show All
Visual Studio Express Editions Debugging running very slow
While working on my program, I run the debug to test it out. It is running very slow. I saw somewhere where VB Express takes up a lot of RAM. My computer has 640 MB of RAM. Is it running slow because it is in debugging mode Because if this is how slow the actual program will run when I release it, I have a big problem on my hands. I don't think I'm doing anything overly complicated. For example, the main screen has 3 buttons. When I click on one of them, it takes several seconds (20 ) just to open a form with a DataGridView. Can anyone tell me if this is normal Thanks. John I tried it and it only ran slightly faster. It still took longer than I hoped it would. But I will try it sometime on a differe ...Show All
Visual Studio Express Editions Reports/graphs etc in VB express?
Hello All, Is it possible to display graphs based on data is the functionality in vb express or do you have to tap into the excel COM objects Any info would be great, thanks! Ahhh but ms does have a vs2005 chart control. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=9915&SiteID=1 ...Show All
Visual C++ lnk2019 with PathAppend and PathCombine
I hate to ask another "LNK2019" question, but this one has me stumped. As you may expect from the subject, I'm getting an LNK2019 error with PathAppend and PathCombine. Here is the error output (I removed the parameters from the function calls because they are extremely long and, I suspect, useless information): 1>WindowsMounter.obj : error LNK2019: unresolved external symbol __imp__PathCombineA@12 referenced in function "public: virtual void __thiscall uruz::WindowsMounter::run(...) 1>WindowsMounter.obj : error LNK2019: unresolved external symbol __imp__PathAppendA@8 referenced in function "public: virtual void __thiscall uruz::WindowsMounter::run(...) 1>C:\Uruz\UruzEngine\Test\Utility.exe : ...Show All
Visual C# multithreading
I need to do multithreading. It is my fist attempt. It failed. This is the setup: There is a form with tabControl and a few pages. There is a progress bar on one of them. It is supposed to measure progress of file downloading. WIthout multhithreading it is dead while the files are downloaded and then in the end it jumps to 100%. This is what I did. Everything compiled but the progress never was activated even after the downloading was over. In other words my code actually made the things worse. In the main form I put in this code at the start of procedure that is handling the download: ThreadStart threadDelegate = new ThreadStart ( Work.DoWork ); Thread newThread = new Thread ( threadDelegate ); newThread.Start ( ); T ...Show All
Visual Basic Max form size
is there a way to set a form to the max screen size, it gets old going back and forwards making sure it fits. I have been using table layout panels to help make my forms, if I am right, those do scale to the form, requardless of the size of the form, I think Davids Learning You can resize the form in the IDE: if they are all anchored properly, then they will resize appropriately. That'll give you an idea as to what it looks like. Even so, it sounds like there's something missing, here. Just run the application and play with the form size: we are talking about 30 seconds of time - far less time to write a forum post . ...Show All
Visual Studio Express Editions how do i stop/exit a sub by using another sub i.e a button click?
how do i stop/exit a sub by using another sub i.e a button click I presume you want this because you are trying to escape from a loop which is running in a sub. One way is to use a flag, probably declared at module level, which is set by the button click and checked within the loop, which can then exit if the flag is set. ...Show All
