|
Just compile the C code into a DLL which exports the necessary functions. You can then access it via P/Invoke and the DllImport attribute
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi
I have a simple web page that written in C# and Asp.Net.
In that page i have asimple insert query that work by
Microsoft Accees .
When I run it in my camputer az a project I don't reciev this message but when i placed on my host or on my iis I reciev this massage.
If You Know How Can I solv this problem plz
answer me az soon az possible
Thanks alot.
|
|
|
|
|
Please don't cross post.
You need write access to the database file to update the database. Check out the instructions from your host on where to place the database file in order for it to get the settings needed.
---
b { font-weight: normal; }
-- modified at 8:46 Sunday 11th June, 2006
|
|
|
|
|
I checked my permission and allow to my folder write access but I've recieved this message yet.
-- modified at 4:49 Monday 12th June, 2006
|
|
|
|
|
Hi thanks for your help
How can I solv this problem when I want to publish my web page on my host?
|
|
|
|
|
As I said, check the information from the host. Every host that supports Access databases will have instructions on where you need to place the database file. Usually there is a special folder for the databases.
---
b { font-weight: normal; }
|
|
|
|
|
You answered me patiantly:->Thanks alot
I checked my permission on that especial folder and I sure that I have write access on this folder.
If it is possoble plz help me.
Thank U very much.
|
|
|
|
|
You have to set the file permissions for the user account that is used to run the ASP.NET code. Unless you specified a different account in IIS, it's either the ASPNET account or the IIS_WPG account, depending on the version of IIS.
---
b { font-weight: normal; }
|
|
|
|
|
Hi
I'll check it.
Thanks alot.
|
|
|
|
|
http://support.microsoft.com/kb/q175168
Tamimi - Code
|
|
|
|
|
I've read it befor I ask U;P
Thanks.
|
|
|
|
|
hi
i embedd my exe in vs.net project as resource . now in run time i want to run my exe and don't save it in hard . how to do ?
my idea is load exe (in resource) to stream and run it . byt how to run it ?
my exe is win32 application ..
thanks..
|
|
|
|
|
I've developed a distributed app in C#. The various components of the application are as follows:
- A SQL Server database.
- Data Access Layer - Hosted in COM+ as Library application.
- Business Logic Layer - Hosted in COM+ as Server application.
- User Interface (Windows-based).
- Types - Exposes various typed DataSet objects used by DAL, BLL, and UI.
- ServerHost - A Console app that exposes the BLL objects via remoting.
The application is hosted on a machine running Windows XP SP2. The DAL and BLL are both hosted in COM+ on the same server that hosts the SQL Server database. Both of these projects and the UI project reference the Types library that, among other things, has strongly typed DataSet objects that are used by the other three (DAL, BLL, and UI) projects. The DAL and BLL (hosted in COM+) are made available to remote clients via .NET Remoting. The issue is that data is serialized successfully from DAL to BLL to UI. However, it doesn't work the other way around. When I send updated data back to the server, it fails. The exception thrown is SerializationException. The error message reads "Because of security restrictions, the type CustomerDataSet cannot be accessed." InnerException of the exception thrown (SerializationException) is SecurityException and its error message reads "Request failed."
I've no idea if the same DataSet is serialized from server to the client successfully, why isn't it getting serialized the other way around? Any ideas?
Note: I've created a striped down version of the same project based on the Northwind SQL Server database. This project follows the same architecture (used in the original application) around the Customer table of the Northwind database. So, if any one needs the sample application that is capable of producing the errors just described, please send me an email at ehsanullahjan@gmail.com.
Your help is greatly appreciated.
ejan
|
|
|
|
|
i use about:blank for url , and load text to my web browser in win app vs2003. my application has print button . when my web browser printing my page footer is about:blank .
how can i change it to for example : www.mehrargham.com ?
thanks
|
|
|
|
|
Hello fellows.
I hope all you will be doing fine.
dears i have a problem at hands and have done everything.
I am doing a project for PDA.i want to read a Xml file from drive c.
but when ever i deploy the project it says that the file is not located.check the path.this error is generated on run time.
i am using the following code.
FileStream fs = new FileStream(@"c:\\xmldata.xml", FileMode.Open);
XmlTextReader reader = new XmlTextReader(fs);
kindly help me out.
Its urgent.
Ahsan Ullah
|
|
|
|
|
Ahsan-AhsanS wrote: I am doing a project for PDA.i want to read a Xml file from drive c.
but when ever i deploy the project it says that the file is not located.check the path.this error is generated on run time.
i am using the following code.
That's because your PDA does not have a "Drive C"
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
than how can i give it the path to my c drive.i want it to read the file from my pc's c drive.plzzzzz help me out.
Ahsan Ullah
|
|
|
|
|
Hi,
This is how you give up the path:
"xmldata.xml" Without the 'c' and the '\\'.
|
|
|
|
|
Hello
Can any one give me a hint how to upload excel sheet in database sql/access with C#...
any help will be appreciated.
|
|
|
|
|
hint: use odbc or oledb.
protected internal static readonly ... and I wish the list could continue ...
|
|
|
|
|
Dear all, i am designing a testing tool, which will test the teststeps that is being implemented as functions in a dll.
User has options to pause/resume/abort the test execution. for pause i know i have to stop the execution after executing current teststep(function). i don't know how to implement abort functionality. if we kill the thread that is handling the execution then the state would be unstable.(coz it might read/write to some files). Is there any way to abort the test execution without having instability?
If you come across these kinda of situations plz share ur thoughts
Thanks
srini
|
|
|
|
|
I can give you some thoughts based on my experience. A thread can be terminated in three ways:
1) The thread functio returns. (Recommended)
2) The thread kills itself. (Avoid)
3) Somebody else kills this thread. (Avoid)
You should always design your thread functions so that they returns when you want the thread to terminate. This way, you can clean up things, e.g., closing read/write files. In practice, use some thread synchronization objects, such as event, mutex or semaphore. When the calling thread wants your testing thread to terminate/abort, send a signal through one of these sychronization objects. This design is pretty mature and should resolve your stability issue.
Hope this answers your questions.
- It's easier to make than to correct a mistake.
|
|
|
|
|
Hello,
How do I specify what DialogResult value my dialog box is supposed to return to the caller? This assumes the caller called ShowDialog() to show my dialog box.
Thank you
|
|
|
|
|
what about:
this.DialogResult = DialogResult.Cancel ?
hard, hey?!
|
|
|
|
|
Thanks, Mr. Lloyd! It's hard when you don't know it!
|
|
|
|