Click here to Skip to main content
15,913,669 members
Home / Discussions / C#
   

C#

 
AnswerRe: Making Control of Form Pin
Abdul Rahman Hamidy30-Dec-08 9:41
Abdul Rahman Hamidy30-Dec-08 9:41 
Questionhow do we daclare an array in a struct? Pin
dec8229-Dec-08 23:21
dec8229-Dec-08 23:21 
AnswerRe: how do we daclare an array in a struct? Pin
N a v a n e e t h29-Dec-08 23:27
N a v a n e e t h29-Dec-08 23:27 
GeneralRe: how do we daclare an array in a struct? Pin
dec8230-Dec-08 0:01
dec8230-Dec-08 0:01 
GeneralRe: how do we daclare an array in a struct? Pin
User 665830-Dec-08 0:44
User 665830-Dec-08 0:44 
Questiondomain servers list Pin
calanit29-Dec-08 23:17
calanit29-Dec-08 23:17 
QuestionRe: domain servers list [modified] Pin
calanit30-Dec-08 0:08
calanit30-Dec-08 0:08 
Questionproblem with virtual directory : Server Error in '/' Application. Pin
Muruvet Kaplan29-Dec-08 23:03
Muruvet Kaplan29-Dec-08 23:03 
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: 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, XmlAttributes a, RecursionLimiter limiter) +460
System.Xml.Serialization.XmlReflectionImporter.InitializeStructMembers(StructMapping mapping, StructModel model, Boolean openModel, String typeName, RecursionLimiter limiter) +223
System.Xml.Serialization.XmlReflectionImporter.ImportStructLikeMapping(StructModel model, String ns, Boolean openModel, XmlAttributes a, RecursionLimiter limiter) +460
System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(TypeModel model, String ns, ImportContext context, String dataType, XmlAttributes a, Boolean repeats, Boolean openModel, RecursionLimiter limiter) +1415

[InvalidOperationException: There was an error reflecting type 'System.DirectoryServices.DirectoryEntry'.]
System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(TypeModel model, String ns, ImportContext context, String dataType, XmlAttributes a, Boolean repeats, Boolean openModel, RecursionLimiter limiter) +1621
System.Xml.Serialization.XmlReflectionImporter.ImportAccessorMapping(MemberMapping accessor, FieldModel model, XmlAttributes a, String ns, Type choiceIdentifierType, Boolean rpc, Boolean openModel, RecursionLimiter limiter) +10296
System.Xml.Serialization.XmlReflectionImporter.ImportMemberMapping(XmlReflectionMember xmlReflectionMember, String ns, XmlReflectionMember[] xmlReflectionMembers, Boolean rpc, Boolean openModel, RecursionLimiter limiter) +722
System.Xml.Serialization.XmlReflectionImporter.ImportMembersMapping(XmlReflectionMember[] xmlReflectionMembers, String ns, Boolean hasWrapperElement, Boolean rpc, Boolean openModel, RecursionLimiter limiter) +236

[InvalidOperationException: There was an error reflecting 'GetVirtualDirResult'.]
System.Xml.Serialization.XmlReflectionImporter.ImportMembersMapping(XmlReflectionMember[] xmlReflectionMembers, String ns, Boolean hasWrapperElement, Boolean rpc, Boolean openModel, RecursionLimiter limiter) +843
System.Xml.Serialization.XmlReflectionImporter.ImportMembersMapping(String elementName, String ns, XmlReflectionMember[] members, Boolean hasWrapperElement, Boolean rpc, Boolean openModel, XmlMappingAccess access) +130
System.Web.Services.Protocols.SoapReflector.ImportMembersMapping(XmlReflectionImporter xmlImporter, SoapReflectionImporter soapImporter, Boolean serviceDefaultIsEncoded, Boolean rpc, SoapBindingUse use, SoapParameterStyle paramStyle, String elementName, String elementNamespace, Boolean nsIsDefault, XmlReflectionMember[] members, Boolean validate, Boolean openModel, String key, Boolean writeAccess) +223
System.Web.Services.Protocols.SoapReflector.ReflectMethod(LogicalMethodInfo methodInfo, Boolean client, XmlReflectionImporter xmlImporter, SoapReflectionImporter soapImporter, String defaultNs) +2989

[InvalidOperationException: Method Directory.GetVirtualDir can not be reflected.]
System.Web.Services.Protocols.SoapReflector.ReflectMethod(LogicalMethodInfo methodInfo, Boolean client, XmlReflectionImporter xmlImporter, SoapReflectionImporter soapImporter, String defaultNs) +6527
System.Web.Services.Description.SoapProtocolReflector.ReflectMethod() +91
System.Web.Services.Description.ProtocolReflector.ReflectBinding(ReflectedBinding reflectedBinding) +1798
System.Web.Services.Description.ProtocolReflector.Reflect() +703
System.Web.Services.Description.ServiceDescriptionReflector.ReflectInternal(ProtocolReflector[] reflectors) +394
System.Web.Services.Description.ServiceDescriptionReflector.Reflect(Type type, String url) +109
System.Web.Services.Protocols.DocumentationServerType..ctor(Type type, String uri) +156
System.Web.Services.Protocols.DocumentationServerProtocol.Initialize() +284
System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response) +50
System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) +77

[InvalidOperationException: Unable to handle request.]
System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) +285
System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response) +183

[InvalidOperationException: Failed to handle request.]
System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response) +354
System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath) +212
System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated) +47
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +193
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +93
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

mkn

AnswerRe: problem with virtual directory : Server Error in '/' Application. Pin
PC Player30-Dec-08 0:59
PC Player30-Dec-08 0:59 
QuestionIn 2nd form how i get (1st form userid) userid for lable using C# with Sql Server. Pin
prabumps29-Dec-08 22:57
prabumps29-Dec-08 22:57 
AnswerRe: In 2nd form how i get (1st form userid) userid for lable using C# with Sql Server. Pin
Tom Deketelaere29-Dec-08 23:15
professionalTom Deketelaere29-Dec-08 23:15 
GeneralRe: In 2nd form how i get (1st form userid) userid for lable using C# with Sql Server. Pin
prabumps29-Dec-08 23:59
prabumps29-Dec-08 23:59 
GeneralRe: In 2nd form how i get (1st form userid) userid for lable using C# with Sql Server. Pin
Tom Deketelaere30-Dec-08 0:15
professionalTom Deketelaere30-Dec-08 0:15 
QuestionHow to print large images(jpeg) in C# Pin
sivasankar anumula29-Dec-08 22:34
sivasankar anumula29-Dec-08 22:34 
AnswerRe: How to print large images(jpeg) in C# Pin
#realJSOP29-Dec-08 23:36
professional#realJSOP29-Dec-08 23:36 
QuestionProblem with Timer Pin
vnr29-Dec-08 22:24
vnr29-Dec-08 22:24 
AnswerRe: Problem with Timer Pin
rah_sin29-Dec-08 22:30
professionalrah_sin29-Dec-08 22:30 
AnswerRe: Problem with Timer Pin
PC Player30-Dec-08 1:00
PC Player30-Dec-08 1:00 
AnswerRe: Problem with Timer Pin
PIEBALDconsult30-Dec-08 6:53
mvePIEBALDconsult30-Dec-08 6:53 
QuestionHow to draw a area of image? Pin
Hoang Jang29-Dec-08 21:27
Hoang Jang29-Dec-08 21:27 
AnswerRe: How to draw a area of image? Pin
Rob Philpott29-Dec-08 21:46
Rob Philpott29-Dec-08 21:46 
GeneralRe: How to draw a area of image? Pin
Hoang Jang29-Dec-08 21:54
Hoang Jang29-Dec-08 21:54 
GeneralRe: How to draw a area of image? Pin
Rob Philpott29-Dec-08 22:39
Rob Philpott29-Dec-08 22:39 
GeneralRe: How to draw a area of image? Pin
Hoang Jang29-Dec-08 22:53
Hoang Jang29-Dec-08 22:53 
QuestionApplication Security Pin
LogiSmith29-Dec-08 20:33
LogiSmith29-Dec-08 20:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.