Click here to Skip to main content
15,031,495 members
Home / Discussions / C#
   

C#

 
AnswerRe: A better way Pin
lw@zi 23-Jun-09 1:02
professional lw@zi 23-Jun-09 1:02 
AnswerRe: A better way Pin
Vivek Ragunathan23-Jun-09 2:04
MemberVivek Ragunathan23-Jun-09 2:04 
GeneralRe: A better way Pin
Sevententh23-Jun-09 3:57
MemberSevententh23-Jun-09 3:57 
GeneralRe: A better way Pin
S. Senthil Kumar23-Jun-09 6:26
MemberS. Senthil Kumar23-Jun-09 6:26 
GeneralRe: A better way Pin
Sevententh6-Oct-09 0:02
MemberSevententh6-Oct-09 0:02 
QuestionHow to check whether PC is working with UPS power? Pin
sujithkumarsl22-Jun-09 23:37
Membersujithkumarsl22-Jun-09 23:37 
AnswerRe: How to check whether PC is working with UPS power? Pin
himanshu256122-Jun-09 23:52
Memberhimanshu256122-Jun-09 23:52 
QuestionSaving webservice dll Pin
rmedo22-Jun-09 22:58
Memberrmedo22-Jun-09 22:58 
Hi all,
i'm using webservice in my form, i called this service dynamicly according to its URL, i want to save its assemply localy to read it from any application rather than load this service everytime as any c# dll.
i use this code to load webservice but its a vb.net code
Dim Client As System.Net.WebClient = New System.Net.WebClient()

Dim Stream As System.IO.Stream
Dim Provider1 As CodeDomProvider

Dim oops As CompilerError
Dim assemblyReferences As String() = New String(4) {"System.dll", "System.Web.Services.dll", "System.Web.dll", "System.Xml.dll", "System.Data.dll"}
Dim ComPram As CompilerParameters
Stream = Client.OpenRead(URL)
Dim Errors As String = ""
Dim Description As New ServiceDescription
Description = ServiceDescription.Read(Stream)
Dim Importer As ServiceDescriptionImporter = New ServiceDescriptionImporter()
Importer.AddServiceDescription(Description, String.Empty, String.Empty)
Importer.ProtocolName = "Soap"

Importer.Style = ServiceDescriptionImportStyle.Client
Importer.CodeGenerationOptions = Xml.Serialization.CodeGenerationOptions.GenerateProperties
Dim nmspace As CodeNamespace = New CodeNamespace()
Dim Unit1 As CodeCompileUnit = New CodeCompileUnit()
Unit1.Namespaces.Add(nmspace)
Dim Warning As ServiceDescriptionImportWarnings
Warning = Importer.Import(nmspace, Unit1)
If (Warning = 0) Then
    Provider1 = CodeDomProvider.CreateProvider("VisualBasic")
    ComPram = New CompilerParameters(assemblyReferences)
    Result = Provider1.CompileAssemblyFromDom(ComPram, Unit1)


Thanks for help
AnswerRe: Saving webservice dll Pin
DoctorMick23-Jun-09 4:55
MemberDoctorMick23-Jun-09 4:55 
Questionactive directory authentication using C# Pin
rhcp0822-Jun-09 22:54
Memberrhcp0822-Jun-09 22:54 
AnswerRe: active directory authentication using C# Pin
himanshu256122-Jun-09 23:00
Memberhimanshu256122-Jun-09 23:00 
GeneralRe: active directory authentication using C# Pin
rhcp0823-Jun-09 0:52
Memberrhcp0823-Jun-09 0:52 
GeneralRe: active directory authentication using C# Pin
himanshu256123-Jun-09 1:06
Memberhimanshu256123-Jun-09 1:06 
GeneralRe: active directory authentication using C# Pin
rhcp0823-Jun-09 1:24
Memberrhcp0823-Jun-09 1:24 
QuestionDate Time Conversion Pin
papy-boom22-Jun-09 22:45
Memberpapy-boom22-Jun-09 22:45 
AnswerRe: Date Time Conversion Pin
Christian Graus23-Jun-09 1:08
protectorChristian Graus23-Jun-09 1:08 
AnswerRe: Date Time Conversion Pin
PIEBALDconsult23-Jun-09 3:47
professionalPIEBALDconsult23-Jun-09 3:47 
Question[SOLVED] Process ID Pin
CodingLover22-Jun-09 22:36
MemberCodingLover22-Jun-09 22:36 
AnswerRe: Process ID Pin
CodingLover22-Jun-09 22:51
MemberCodingLover22-Jun-09 22:51 
QuestionClosing Child Form using {Escap-Key} Pin
M Riaz Bashir22-Jun-09 22:31
MemberM Riaz Bashir22-Jun-09 22:31 
AnswerRe: Closing Child Form using {Escap-Key} Pin
stancrm22-Jun-09 22:32
Memberstancrm22-Jun-09 22:32 
GeneralRe: Closing Child Form using {Escap-Key} Pin
M Riaz Bashir22-Jun-09 22:55
MemberM Riaz Bashir22-Jun-09 22:55 
GeneralRe: Closing Child Form using {Escap-Key} Pin
stancrm23-Jun-09 4:25
Memberstancrm23-Jun-09 4:25 
GeneralRe: Closing Child Form using {Escap-Key} Pin
Isaac Gordon23-Jun-09 0:36
MemberIsaac Gordon23-Jun-09 0:36 
QuestionDynamically add webpart problem? Pin
Hoang Jang22-Jun-09 21:47
MemberHoang Jang22-Jun-09 21:47 

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.