Hasan's Q&A profile
.NET Development Who can solve this problem? Is there any genius?
Hi all (genius people), I am getting a problem consuming a web service. Here is the scenario, I have a web application in vb.net 2005 (ASP.NET 2.0) and a web service made in c#.net 2003. I have deployed the web service well. It can be accessed through browser. Even I can successfully add its web reference in my web application. After deploying the webservice (and after checking it through browser) when I try to run my web application it gives a BIG error " Server Application Unavailable ". Now if I refresh IIS and run my web applicati ...Show All
Visual C++ CTabCtrl question!
I got MFC CTab control in the dialog. It is inserted using resource editor, and bunch of other controls are pasted onto it. In the OnInitDialog() function tab is extended like this: This notification is well documented: http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/tab/notifications/tcn_selchange.asp frame=true I directly see no problem.But why do you delete the last item. Just use SetItem and change the text of the last item and add a new one. ...Show All
Windows Forms Activation Key
Hi Everybody How r u all I am developing an intra office messanger using c#.I want that my product setup will be secured by both product key and activation key.I want to make a trial version that required a produck key to run trial version but after 30 days it required activation key.So only that user can use my application Product Key : Product key is same as window cd key Activation Key : Activation Key can be get by my website.You should get activation key to run registered version of my product Can any one tell me that how i can add these in deployment of my product or how can apply activation key on my product Waiting ...Show All
Windows Forms Persisting design time property changes
Greets, I am trying to write a System.ComponentModel.Component that screens potential child controls at run time for various factors. Particularly, I'd like to force the name of the given child control to a value that I determine at the time the child control is added to the parent control designer. So far I've overridden the Site property to g ...Show All
Visual Studio vs '05 extensibility book
has there been any progress on making the book available to msdn subscribers The book will be available to those who register their copy of Visual Studio in e-book form. As for a printed version, there is some talk, but nothing to report yet. When I get more information, you will be able to read about it at http://blogs.msdn.com/craigskibo . Craig ...Show All
.NET Development can not create an SQLConnection object
I am getting an initialization exception when I instantiate SQLConnection. The exception occurs emediately upon creating an instance and does not depend on whether I supply a connection string for the constructor. The odd thing is that I am not getting this error on my development computer, only when I install it on a different computer. The computer giving the exception has .Net 2.0 installed from the redistributable which I downloaded from MS on Thursday. This is happening before I set any properties or do anything else with the new connection. Any ideas Jake Wagner no, I am doing the in ...Show All
Windows Forms Relaunch of Windows Form
Hello all I have a small problem. In most cases I can track these things down pretty easy but the complexity of the application after 2 years of development and use has made it hard to track down this last one. The Scenario: Main application runs in the background 1 pixel X 1 Pixel which launches the initial form. When a form is ready to open another form I do the following: BPS.frmMain frmMain = new frmMain(); frmMain.Show(); this .Dispose(); this .Close(); The problem: Due to third party APIs (Written in anything from C++, to VB to me porting from VB to VB.Net and then to C#) being called a form I will dispose ...Show All
Visual C++ MFC portability
I wrote a program and compiled it on my laptop(WinXP Home) using MFC in VS 2003.NET and took it to school and tried to run it on one of their computers(WinXP Pro) and I it said it couldn't run because it couldn't find "MFC71.DLL". Are MFC programs not portable and if not is there a way to write a program in Visual C++ so it is Nathan87 wrote: I wrote a program and compiled it on my laptop(WinXP Home) using MFC in VS 2003.NET and took it to school and tried to run it on one of their computers(WinXP Pro) and I it said it couldn't run because it couldn't find "MFC71.DLL". Are ...Show All
Visual Studio 2008 (Pre-release) Inheritance problem?
I'm having a problem creating a ServiceHost using two servicecontracts which inherit from the same parent servicecontract. When I try to create the host the following error occurs: ArgumentException: An item with the same key has already been added. My guess is that the creation thinks that both IServiceContract's are two different contracts, which they are not. Is there any solution to this or something I do wrong Creating one contract for both contracts is no option (duo to more inheritance). Call to create the serviceHost: Uri uri = new Uri ( "net.tcp://localhost:8100/LocationService" ); ServiceHost PostalCodeHost = new ServiceHost ...Show All
Software Development for Windows Vista Rules which reference Activity properties in XOML only workflows
Has anyone been successful in creating and executing a rule that refers to an property of an activity which was dropped onto the workflow at design time in a XOML only workflow. In our scenario, we have a hosted designer which outputs XOML only workflows. In the designer, we can drop activities on to the surface and reference activity properties from anywhere on the workflow. HOWEVER, if we write a rule (in a policy or condition) which accesses a property on a dropped on activity, the workflow fails validation. It appears that it can't resolve the child activity types at validation time. When creating the workflow with XAML Activatio ...Show All
Visual C# C# job
I am applying a C# job Any technical terms I can write in my resume to show my ability in C# ROTFL. Do you think that perhaps if we give you a list of technical terms, they won't ask you questions in the interview that show your lack of knowledge Even if you get the job, if you don't know enough to be asking this question, how long would you expect to keep it My advice for anyone going for a job is *tell the truth*. If you try to lie, they will catch you out, and you will be immediately rejected. I've gone for jobs where I didn't know a lot about the core technologies in use, but I was honest about i ...Show All
SQL Server Service Broker Dialog and Transport Security
what is the difference between the Dialog security and the transport security If I disable the dialog security can the messages be sent to the a different SQL server instance. As the transport security will encrypt the messages. If I don't create a certificate to be used by the transport security can the messages be sent to another SQL server instance Can a message be sent to another SQL Server instance without creating a REMOTE Service Binding The difference becomes evident when you think about forwarders. Forwarders are SQL instances that act as intermediate hops on the route a message is deliver ...Show All
Visual Studio Express Editions How do I compare variable with datatypes DateTime
Example: Dim stoTime As DateTime Dim curTime As DateTime If curTime < stoTime Then <Statement> EndIf ***I get an error on this IS that all your code If you were to set values to the DateTimes ( which are null in the above code ), I'd expect this to work. ...Show All
.NET Development WSE 2.0 SP3 samples
Hi, I am trying to use the samples for kerebros signing and encryption in the WSE Quickstarts and am getting a SOAP header exception that the "Signature or decryption is Invalid". I looked at the trace logs and the the signature is getting sent. This is a Win2K3 machine, so I did not bother with the ASPNET access permissions. Is there anything else that I need to do I am running the sample straight out of the box. Hi, Yes it is a windows domain. I found out that for Kerberos to work on Win2K3 I need it running under the local system account. I was using Network serv ...Show All
.NET Development Protecting Assemblies
I'm building an n-tier application with data access, application and UI layers in separate projects and hence separate assemblies. MyProjectUI.dll MyProjectApp.dll MyProjectDataAccess.dll etc... The application will eventually be publicly available for download and installed on end-users machines. How can I protect my middle tier and DAL assemblies from unauthorised access so that a 'clever' user cannot add a reference to one of my separate assemblies and start calling it's public members. Marking members as Internal only works for classes that are 'inside' the same assembly. Any tips or suggestions would be greatly ...Show All
