473,325 Members | 2,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Possible To Run Sample.cs In My Application ?

Hello,

Can my application call a web service ? and web service returns a class file
? Then

May I run this "cs" file in my main application ? without compiling ?

Thanks

Coder @Toronto
Nov 18 '08 #1
4 1690
Coder wrote:
Hello,

Can my application call a web service ? and web service returns a class
file ? Then

May I run this "cs" file in my main application ? without compiling ?

Thanks

Coder @Toronto
No.

Your application can call a web service, and the web service can return
anything that can be serialised as a string (i.e. you can not return a
file, but you can return the contents of a file). You can not run source
code without compiling it.

--
Göran Andersson
_____
http://www.guffa.com
Nov 18 '08 #2
Coder,

Without compiling? No, you can't do that. However, you can use the
CSharpCodeProvider class in the Microsoft.CSharp namespace to compile the
code.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Coder" <So*****@Somewhere.Co.Ukwrote in message
news:OH****************@TK2MSFTNGP04.phx.gbl...
Hello,

Can my application call a web service ? and web service returns a class
file ? Then

May I run this "cs" file in my main application ? without compiling ?

Thanks

Coder @Toronto
Nov 18 '08 #3
on 18-11-2008, Coder supposed :
Hello,

Can my application call a web service ? and web service returns a class file
? Then

May I run this "cs" file in my main application ? without compiling ?

Thanks

Coder @Toronto
As Göran said, it's not possible to run without compiling, but it *is*
possible to compile a source "on the fly" from within your running
application. However, this would be a big security hole if you get
source code from some webservice!

Hans Kesting
Nov 18 '08 #4
Thanks for all,

My purpose is to install (using clickonce) main application to client as MDI
Form, this form will contain a treeview (holding some nodes) and every node
click will go same web service service(username, userpass, DesiredClassLib)
and will get a class library (as file or stream or byte[] or string,
whatever..) and this separate class libraries will have a generic method
ShowAsMDIChild() and will be shown in main application

Everytime a user wants to invoke a node, this cycle will run, and I do not
wanna keep class libraries' dlls on client physically.

and in the spotlight, security is not the issue this time :)

If (Thisispossible())
{
WhatMustBeTheCorrectWay();

Thanks();
}
else
{
Thanks();
}

"Coder" <So*****@Somewhere.Co.Ukwrote in message
news:OH****************@TK2MSFTNGP04.phx.gbl...
Hello,

Can my application call a web service ? and web service returns a class
file ? Then

May I run this "cs" file in my main application ? without compiling ?

Thanks

Coder @Toronto


Nov 18 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ramakant Kasar | last post by:
Hi All, I have come across an application that runs in background and records the communication over the Serial Port. How it works is, the sample application needs to be started and mapped to a...
20
by: CHIN | last post by:
Hi all.. here s my problem ( maybe some of you saw me on other groups, but i cant find the solution !! ) I have to upload a file to an external site, so, i made a .vbs file , that logins to...
0
by: dag | last post by:
Hi! I would like to do an overlap window, over my main window (of my application), with a Progress Bar. Exactly when I push a button of my application I want show a window, with a Progress bar,...
1
by: BuddyWork | last post by:
I think I've found a possible issue with .Net AppDomain.Unload when using attribute LoaderOptimization.MultiDomain. Here you will need ProcessExplorer from SysInternals to see what assemblies...
11
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I know I sound like a one-note Johnny on this but I'm still looking for a solution. I need to display characters coming in from a serial port or a socket. I also need to be able to type...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.