I have seen some software made on .Net framework but when i checked installed programs i could not locate .net framework. My question to all experts is how to make an C# application run without .Net framework installed.
Any Tablet running Windows 8.1 or 8.1 Pro should be fine, just remember to keep away from Windows RT.
All the big name Tablets, Surface Pro, Yoga, what have you, all run 64-Bit Processors and should have no problem running VS2008, or higher even. And there are TONS of programs (I still refuse to use the term "app") for accessing and modifying SQL Databases.
System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at DALG6.saveg6.InsertCompany(saveg activeAnbiyam1) in D:\WindowsFormsApplication1\DALG6\saveg6.cs:line 58
at WindowsFormsApplication1.Form1.SAVEG() in D:\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs:line 33
at WindowsFormsApplication1.Form1.button1_Click(Object sender, EventArgs e) in D:\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs:line 23
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
The answer is in the first line of your post:
"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.)"
I want to write a small code in c# using Fuzzy Logic framework where user will give input number between 0 to 10 and that numbers needs to be classified as Low, Moderate and High. Low is 0 to 3, Moderate is 3 to 7 and High is between 6 to 10. Using triangular membership function. Any guess how to do it I read some tutorials on Fuzzy Framework but couldn't get my problem fit in those. Following is code I wrote,
staticvoid Main(string args)
ContinuousDimension score = new ContinuousDimension("score", "score of word", "unit", 0, 10);
//Definition of basic fuzzy sets with which we will work
// input sets:
ContinuousSet low = new RightQuadraticSet(score, "Low Score", 0, 3, 4);
ContinuousSet high = new LeftQuadraticSet(score, "High Score", 6, 7, 10);
ContinuousSet mod = new BellSet(score, "Moderate Score", 5, 1, 2);
How should I proceed further now. I have assigned manually some score to opinion words(about 7000) on scale of 0 to 10 and I want to classify intensity of this opinion words as low, moderate or high using triangular function. Using fuzzy category of each word I have to further implement rules like if word1 is low and word2 is high then orientation is moderate .
C# and the .NET framework are not separate things, they overlap each other. You need the CLR to JIT and manage the execution of the code. Really not a good idea.
That said, I believe there is a product which can read in assemblies and pre-compile them to native code by bundling in its own version of the CLR. Can't remember what its called but Google around. I'd expect it to be expensive, and probably not very reliable.
OK, so scrap your code and rewrite it in C++. Oh, there's a runtime for that too. Well, depending on which version of C++ you use, you might find that the runtime for that is already installed, saving you the trouble. But, that's only IF it's already installed.
Hi, I have a small app that exposes a volatile singleton class in a class library. It is consumed by 2 applications that depend on it. Here is my intent: when I add an item to the collection in 1 program, I need the other program to see it. The other methods in this class that aren't included here are Save and Delete operations to the database that are called when I add or remove an item from the collection. My problem is that eventhough I stated the keyword volatile, the added item in the collection isn't shown in the collection in the other application.
Each viewmodel has a reference to the list it is contained in. When I want to save it, I add it to my list and the list saves it to my database.
So the way my app works:
- start app 1 that shows a list of viewmodels exposed by a "thread-safe" singleton class.
- start app 2 that adds a viewmodel to the list exposed by that same singleton class.
- list in app 1 is autmatically updated as it should be the same reference.
That last part apparantly isn't true when I test my code. Can you help me out ?
publicclass CursistDepository : ObservableCollection<CursistViewModel>, IPersonDepository<CursistViewModel>
privatestaticvolatile CursistDepository instance;
privatestaticreadonlyobject padlock = newobject();
publicstatic CursistDepository Instance
if (instance == null)
instance = new CursistDepository();
IEnumerable<ICursist> persons = Cursist.Select();
foreach (ICursist person in persons)
CursistViewModel model = new CursistViewModel(person);
After your post, I went to search on how to do it cross apdomain and came up with marshalbyrefobject. However the documentation I came across was limited. Here is what I tried: I made a wrapper class that inherits from marshalbyrefobject and has variables linking to my depository classes. That didn't really do the trick sadly. Does anyone have a reliable way to do this?
Last Visit: 31-Dec-99 18:00 Last Update: 30-Jul-14 9:49