Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Saranya B

@Saranya B
About
Posts
23
Topics
15
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Class inheritance question
    S Saranya B

    Hello... Your example code is pretty perfect and will work for sure. Still I dont understand what you are trying to ask. Cheers, Saran

    C# question oop tutorial

  • ComClass in C#
    S Saranya B

    Hello Everybody, How can we create a class using ComClass Template. First of all, I am not able to add the reference of Microsoft.Build.Tasks.V3.5 since it is not being listed out in the Add Reference dialog. So I browsed this dll and added the reference. Still my problem is not solved. I am getting the following error. 'Microsoft.Build.Tasks.Deployment.ManifestUtilities.ComClass' is not an attribute class I am not sure. Here is my code,

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Microsoft.Build.Tasks.Deployment.ManifestUtilities;

    namespace COMArray
    {
    [ComClass(ComClass2.ClassId, ComClass2.InterfaceId, ComClass2.EventsId)]

    public class ComClass2
    {
        
    
        #region "COM GUIDs"
        // These GUIDs provide the COM identity for this class 
        // and its COM interfaces. If you change them, existing 
        // clients will no longer be able to access the class. 
        public const string ClassId = "83a8275f-9282-4257-ba62-afab6ed03beb";
        public const string InterfaceId = "e75a1569-f1aa-4bdc-8e39-ae5807ee5baa";
        public const string EventsId = "f966bdd3-9c5b-4ad9-8714-bc17d28f7e3a";
        #endregion
    
        // A creatable COM class must have a Public Sub New() 
        // with no parameters, otherwise, the class will not be 
        // registered in the COM registry and cannot be created 
        // via CreateObject. 
        public ComClass2()
            : base()
        {
        }
    
        private int \_test;
        public int test
        {
            get { return \_test; }
            set { \_test = value; }
        }
    
    }
    

    [ComClass(ComClass1.ClassId, ComClass1.InterfaceId, ComClass1.EventsId)]
    public class ComClass1
    {

        #region "COM GUIDs"
        // These GUIDs provide the COM identity for this class 
        // and its COM interfaces. If you change them, existing 
        // clients will no longer be able to access the class. 
        public const string ClassId = "35cf06df-5ed3-431f-9780-1e30d8acb94c";
        public const string InterfaceId = "04fcc0fb-da33-4750-bab1-86e3b6d0e300";
        public const string EventsId = "e073bca9-3bc5-437a-8c77-a489086c6517";
        #endregion
    
        // A creatable COM class must have a Public Sub New() 
        // with no parameters, otherwise, the class will not be 
        // registered in the COM registry and cannot be created 
        // via CreateObject. 
        public Com
    
    C# csharp help linq com sysadmin

  • How to instantiate an .net object with parameterized constructor in VB6?
    S Saranya B

    Hello everybody, I hope someone can help me... My .net code goes like this...

    public class ProxyFacade : BaseProxyFacade

    {

    ProxyConfiguration _configuration = new ProxyConfiguration();

    public ProxyFacade(Uri Uri)

    {

    _configuration.Url = Uri;

    }

    public Student IncreaseAge(Student StudObj)

    {

    StudentServiceClient client;

    base.ProxyConfiguration = _configuration;

    base.PreProceedHandler();

    client = new StudentServiceClient(base.BaseProxy, base.BaseProxy.EndPointAddress);

    client.Open();

    return client.IncreaseAge(StudObj);

    }

    }

    My Issue: I have registered this dll as COM component. When I try to instantiate this ProxyFacade from VB6, I am not able to give the object reference with New Keyword? Do I have to set anything in the .net side? What is the correct way to instantiate this .net object registered as COM? My VB6 code:

    Private Sub cmd_CallCOM_Click()
    Dim objStud As New ProxyLibrary.Student
    Dim a As Integer
    objStud.Age = 11
    objStud.Name = "Johnie"
    objStud.IsOutStanding = False
    Dim objFacade As ProxyLibrary.StudentServiceClient
    Dim b As ProxyFacade

    'a = objFacade.IncreaseAge()
    'Set objFacade = GetObject("http://localhost:3507/StudentException/Student Service.svc/rest")
    lbl_Age.Caption = objFacade.IncreaseAge(objStud).Age
    End Sub

    When i tried with GetObject, again error... I think i am taking a wrong way to instantiate this object which has parameterized constructor... Any help plssssssssss Tnx in advance, Saran

    COM help question csharp com

  • How to add HttpHeaders to WCF client?
    S Saranya B

    Hello Everybody, I want to add some http headers to my request to service from WCF client. After some google around, I found the code snippet at http://www.west-wind.com/WebLog/posts/177835.aspx\[[^](http://www.west-wind.com/WebLog/posts/177835.aspx "New Window")]">and followed it. But, It throws a generic exception that the Underlying connection is closed. No inner messages. I couldnt find out where I am going wrong... My code looks like this...

    HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty();
    httpRequestProperty.Method = "POST";
    httpRequestProperty.SuppressEntityBody = true;
    httpRequestProperty.Headers.Add("testdata", "My Header");

            using (OperationContextScope scope = new OperationContextScope(client.InnerChannel))
            {
                OperationContext.Current.OutgoingMessageProperties.Add(HttpRequestMessageProperty.Name,httpRequestProperty);
                Response.Write(client.ChangeOutStanding(stud).IsOutStanding);
            }
    

    Breaking my head since morning... Couldnt find out the reason... Any help is appreciated... Thanks, Saran

    WCF and WF csharp wcf com help tutorial

  • Calling WCF from VB6 application [modified]
    S Saranya B

    Hi, I created a WCF Service. It works fine and am able to cosume it from a .net3.5 client. Now, i want to consume this WCF from VB 6 application. I created a COM component for my proxy class and am able to instantiate this class from this COM component.Problem starts here, My parameters are changed :( In my actual proxy class i am passing a string and returning a string. But the parameters here are someother object of the classes that are auto generated while creating the proxy class throug svcutil.... I am getting TypeMismatch Error From my VB6 client. :( Am I making it clear? Pls. somebody Help me to overcome this problem... First of all, AM i on right track? Regards, Saran

    modified on Tuesday, June 10, 2008 12:59 AM

    WCF and WF help csharp wcf com

  • Multiple subreports
    S Saranya B

    Hi All, I have to use two sub reports in a main report. But, I am getting the error, Subreport could not be shown. There are no articles or blogs for this multiple reports in main report. Can anybody help me on this???? -Saran

    C# help question

  • Multiple Subreports [modified]
    S Saranya B

    Anybody working in reports???? Facing problem with multiple subrepotrs in single main report. Hi, Can anybody help me how to use two sub reports in single main report? I am using two sub reports in my main report. From main reprot one parameter is passed to each sub report. In Reportviewer1_SubreportProcessing event I am adding the datasource after checking the reportpath(From the event args.) But I am getting the Subreport could not be shown as error message... Hope you are getting my scenario... -Saran -- modified at 3:15 Tuesday 28th August, 2007

    Visual Basic help tutorial question

  • SQL 2000 & 2005
    S Saranya B

    in my system, SQL Server 2000 and SQL Server 2005 are there. But I couldnt connect to SQL Server 2000. Does anybody know why and how can i resolve this?? Thanks, Saran

    Database question database sql-server sysadmin

  • Login failed for user. The user is not associated with trusted connection
    S Saranya B

    Hello Everybody... I have a web application developed in .net 2.0 which uses SQL Server 2005 as its backend. No error is thrown when I jus debug from my machine. But When I host it in IIS it is throwing the error mentioned in subject line. My connenction string in web.config file just has, server, database attributes along with integrated security is set to true... And the SQL Server is in Mixed Mode authentication. Still I face the error. PS: I could successfully browse the site if i mention some SQL Authenticated User id and password in connection string instead of integrated security... Is there anyother way without giving the sql userid? Why do we have to have the sql authenticated user? -Saran

    ASP.NET database security csharp sql-server sysadmin

  • To save a file in a SQL 2005
    S Saranya B

    Can anyone help me to save a file in SQL Server 2005. :confused: My application will be used by the user to attach the approval mails (Either html or word or any files). How can i save and retrive from SQL Server 2005? :omg: Anticipating for your replies... Regards, Saranya Balasubramanian

    Database question html database sql-server sysadmin

  • To hide a class member from intellisense
    S Saranya B

    Then what is the use of [EditorBrowsable(EditorBrowsableState.Never)] attribute... The description given in MSDN is -Saran

    ASP.NET question visual-studio

  • To hide a class member from intellisense
    S Saranya B

    Yes... Replicated the same in my class too... But I am seeing the prorty displayed in intellisens regardless of [EditorBrowsable(EditorBrowsableState.Never)] attribute's presence.

    ASP.NET question visual-studio

  • To hide a class member from intellisense
    S Saranya B

    Hello Everybody, I have a class. I dont want a particular public class member/method to be listed in intellisense property. I have tried [EditorBrowsable(EditorBrowsableState.Never)] attribute. But for this, i have to have a property. And that member is now anyway displayed as property in intellisense. I dont see any difference even after commenting [EditorBrowsable(EditorBrowsableState.Never)] attribute. Can anybody explain me how this [EditorBrowsable(EditorBrowsableState.Never)] works? What is the exact purpose? Thanks for your response... -Saran

    ASP.NET question visual-studio

  • ISAPI Authentication in asp.Net
    S Saranya B

    My application will be used by internal users and also users from outside. So, I cant use windows authentication. And the requirement is to use ISAPI Authentication. Any idea on how to implement this?

    ASP.NET csharp question asp-net security help

  • ISAPI Authentication in asp.Net
    S Saranya B

    Hello everybody, Can anybody help me how can I implement ISAPI Authentication in my application using C#.Net? Are Form Authentication and ISAPI Authentication one and same? Anticipating for your answers!!! Thank You... -Saranya Balasubramanian

    ASP.NET csharp question asp-net security help

  • Web.Config File
    S Saranya B

    Thank You Sandeep :)

    ASP.NET

  • .Net 1.1 and .Ne 2.0
    S Saranya B

    Thanks for you explanation!!!

    Guffa wrote:

    There is no "upgrade" from 1.1 to 2.0. When you install 2.0 on a system that already has 1.1, they will both be available side byte side.

    So, do you mean when we install .net framework 2.0, there will be 2 instances. One with 1.1(which exist already) and another instance with 2.0 version? Can I take your explanation in this way?

    ASP.NET csharp visual-studio dotnet windows-admin question

  • .Net 1.1 and .Ne 2.0
    S Saranya B

    Thank you Navaneeth!!!

    ASP.NET csharp visual-studio dotnet windows-admin question

  • .Net 1.1 and .Ne 2.0
    S Saranya B

    Hi All... My friend has Visual Studio 2003 and also Visual Studio 2005 installed in her system. Whenever she has to work with VS-2003, she will change the IIS to point the .Net framework 1.1 version and switches to .Net 2.0 when she works with VS-2005 and also she is telling that she has both the framework. What I thought was, to work with both VS-2003 and 2005, it is enough to have .Net framework 2.0 and this 2.0 will have all the features supported by 1.0 and 1.1. We dont install .Net 2.0 as seperate one and only upgrade 1.1 to 2.0. So no need to change the framework. I dont understand why she changes her IIS every time. But I dont change IIS. I just work with both VS-2003 and VS-2005 at a same time. How is it possible? Wht is the concept behind this .Net Framework different versions? Am I making sense? Hope I narrated in a way you can understand. Expecting your explanations for this dbt. Thank You, Saran

    ASP.NET csharp visual-studio dotnet windows-admin question

  • Why Main?
    S Saranya B

    Hi All, Anybody knows why main() is called as main? Why not someother names but Main()? Anticipating your responses. Thank You, -Saran

    C# question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups