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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. problem with virtual directory : Server Error in '/' Application.

problem with virtual directory : Server Error in '/' Application.

Scheduled Pinned Locked Moved C#
helpsysadminwindows-admindata-structuresdebugging
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Muruvet Kaplan
    wrote on last edited by
    #1

    I have a project that's web service includes virtual directory and to call the virtual directory in the project ı create an asmx file called 'Directory' and when try to run the asmx on the web, ı got this error. Besides this, in the project, i declared the virtual directory in the localhost(as in default web site), but i will publish the project, and when users install the program to their pc's, can they see and use the virtual directories in the server. When i research on the web, i see the virtual directory is only in the localhost Can i declare the virtual directories on specified web service like: "IIS://LocalHost/w3svc/1045426499/Root/Data/",@"c:\Program Files\xxxxx\yyyy\Data" Could you help me, please! The error::confused::confused: Server Error in '/' Application. -------------------------------------------------------------------------------- Cannot serialize member System.ComponentModel.Component.Site of type System.ComponentModel.ISite because it is an interface. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NotSupportedException: Cannot serialize member System.ComponentModel.Component.Site of type System.ComponentModel.ISite because it is an interface. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [NotSupportedException: Cannot serialize member System.ComponentModel.Component.Site of type System.ComponentModel.ISite because it is an interface.] [InvalidOperationException: Cannot serialize member 'System.ComponentModel.Component.Site' of type 'System.ComponentModel.ISite', see inner exception for more details.] System.Xml.Serialization.StructModel.CheckSupportedMember(TypeDesc typeDesc, MemberInfo member, Type type) +889837 System.Xml.Serialization.StructModel.GetPropertyModel(PropertyInfo propertyInfo) +134 System.Xml.Serialization.StructModel.GetFieldModel(MemberInfo memberInfo) +129 System.Xml.Serialization.XmlReflectionImporter.InitializeStructMembers(StructMapping mapping, StructModel model, Boolean openModel, String typeName, RecursionLimiter limiter) +1226 System.Xml.Serialization.XmlReflectionImporter.ImportStructLikeMapping(StructModel model, String ns, Boolean openModel, XmlA

    P 1 Reply Last reply
    0
    • M Muruvet Kaplan

      I have a project that's web service includes virtual directory and to call the virtual directory in the project ı create an asmx file called 'Directory' and when try to run the asmx on the web, ı got this error. Besides this, in the project, i declared the virtual directory in the localhost(as in default web site), but i will publish the project, and when users install the program to their pc's, can they see and use the virtual directories in the server. When i research on the web, i see the virtual directory is only in the localhost Can i declare the virtual directories on specified web service like: "IIS://LocalHost/w3svc/1045426499/Root/Data/",@"c:\Program Files\xxxxx\yyyy\Data" Could you help me, please! The error::confused::confused: Server Error in '/' Application. -------------------------------------------------------------------------------- Cannot serialize member System.ComponentModel.Component.Site of type System.ComponentModel.ISite because it is an interface. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NotSupportedException: Cannot serialize member System.ComponentModel.Component.Site of type System.ComponentModel.ISite because it is an interface. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [NotSupportedException: Cannot serialize member System.ComponentModel.Component.Site of type System.ComponentModel.ISite because it is an interface.] [InvalidOperationException: Cannot serialize member 'System.ComponentModel.Component.Site' of type 'System.ComponentModel.ISite', see inner exception for more details.] System.Xml.Serialization.StructModel.CheckSupportedMember(TypeDesc typeDesc, MemberInfo member, Type type) +889837 System.Xml.Serialization.StructModel.GetPropertyModel(PropertyInfo propertyInfo) +134 System.Xml.Serialization.StructModel.GetFieldModel(MemberInfo memberInfo) +129 System.Xml.Serialization.XmlReflectionImporter.InitializeStructMembers(StructMapping mapping, StructModel model, Boolean openModel, String typeName, RecursionLimiter limiter) +1226 System.Xml.Serialization.XmlReflectionImporter.ImportStructLikeMapping(StructModel model, String ns, Boolean openModel, XmlA

      P Offline
      P Offline
      PC Player
      wrote on last edited by
      #2

      I don't know what exactly you wanted to install into Client PC. I think you need to type correct Web Address to call Web Service. "Http://LocalHost/VirtualDirectoryName/xxxx.asmx" Visual studio Map virtual Directory automatically. Another way you can open IIS and then click Map Virtual Directory. You will see your project. Just right click on ASMX file and select show on browser. it should be working. Thanks

      Ali Zishan London

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

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