I developed an ASP.NET web application that reads an MS Access database with ADO.NET. This application will have to be run on Linux with Mono. Unfortunately, I am having problems getting Mono to work with the ADO.NET database connection.
With the connection string enabled on an onLoad event, the web app will not render; however, when I delete the onLoad event, the web app renders in the browser. I verified that it wasn't just the onLoad event as the problem by pressing a button that has an onClick event that reads the Access database, as well. The problem then persists, which is the following error: System.DllNotFoundException: gda-2...
I did some research on this error and downloaded the library libgda, but this did not fix the problem. Now I am seeing posts that Mono doesn't work with MS Access driven ASP.NET web applications.
Has anyone been able to get an MS Access driven ASP.NET web Application to work with Mono? If so, what steps did you take to get it to work?
I really appreciate everyones feedback, and if anyone has any suggestions, I would really be greatfull.
Thank you,
DFM
I do not think that MS Access will work with mono, because it depends on the MS JET database engine which is not a part of the .NET framework itself, but a windows component.
That said, developing a web application that accesses an Access database is not a very good idea. Access is a desktop application, and not scalable for web application usage.
I would recommend that you find an alternative database engine, such as MySQL (since the application should run on Linux)
Related
I have an ASP.NET application where I need to push data from the ASP.NET application into the client's Timberline Office database at the users request. I need to do this by connecting to the client's Pervasive ODBC Driver to insert data into the Timberline data structures.
I would like to build a component (ActiveX, or something like that) that would work in IE at a minimum, and also the Firefox and Chrome browsers if possible. I would like to build this component using VB.NET and Visual Studio 2008 if possible.
Can anyone provide any resources (web sites, code examples) to help me with this?
Thanks
i have a asp.net web application written about 2 years ago .It does not have any logging mechanism in it. Ideally I would like to log any errors that happen especially at the database level. I cannot afford to break the application however, and I have limited time.
I have heard about ELMAH. Is it possible to have something that doesn't talk to my code directly and just does its own thing by monitoring the server?
It was made in ASP.NET 3.5.
It has AJAX as well as heavy use of ViewState.
The application also communicates with Excel.
It is built in Visual Studio 2008 w/ SQL Server 2005 on the backend.
How do I go about deploying this website with above requirements?
Yes.
Added ELAMH to your application - it will log the errors. It's non-invasive.
Once ELMAH is added to your application it hooks into the OnError Event and captures all errors throw by your application. This is assuming that your application does not swallow the errors.
The documentation around ELMAH is through and easy to follow.
There is also log4net -
http://logging.apache.org/log4net/
I'm trying to write a client app using monotorrent library with asp.net.
there is a clientapp sample provided by monotorrent but since I'm using asp.net I need to know how to keep the engine running all the time and get feedback, like download rate and ..
I tried to use the Task class provided in .NET 4, but the thread keeps shutting down randomly ( I think of course ).
Is there a way that I can keep the thread which engine is running in, always working?
or any idea on where to look for implementing the client in web app?
Thats impossible, as the ASP.NET worker process is recycled from time to time. What do you need is a desktop application or a windows service. And then build an WCF service to communicate with you ASP.net application.
I have a c# windows application that can successfully record audio using user's desktop mic.
Now i want this facility to run from ASP.NET website. (Note: user would not have this application installed on his machine).
Is there a way that i can run this application from a web page and record and save sound file on user's desktop? I searched on google and found that it is achievable using ActiveX. But i am not sure how to do this.... :((
Any Clue...??
Thanks...
You are not going to be able to do this using standard HTML / web browser functionality.
You will need to use a richer, client-side platform like Silverlight or Flash. ActiveX could also support this, but it's a pretty dated technology. Better to go with Silverlight or Flash.
I am building a very small temprorary website that needs a small backing store. I have built this in ASP.NET MVC 2, and wanted to host with DiscountASP - although this isn't essential.
I would like an backing store that will work with ASP.NET MVC 2, VS2010 Express, enabled LINQ (or EF) and work without further charges on a shared host.
From my investigation, SQLCE 3.5 doesn't work in .NET 4
SQLCE 4, is only CTP and doesn't work in VS2010
SQlite doesn't have any .NET 4.0 drivers.
HAve I got this right? Any good tutorials or blogs that show how to get this working step by step?
Thanks,
Mark
SQLite does work on .Net 4.0. Here are some other very similar questions about embedded databases in .NET:
Good embedded database solution (like SQLite) for .Net
Embedded database for .net
Open Source Embedded Database Options for .Net Applications
I'm not an ASP expert but have you heard about Firebird SQL? Database engine which has client/server or embeded versions, fully featured with transactions etc. and with ADO.NET provider
http://firebirdsql.org/dotnetfirebird/
http://firebirdsql.org/index.php?op=devel&sub=netprovider
No, Dont even think about using firebird embedded in ASP.NET.
It is strictly forbidden.
here's a reference on Firbird website tell you to avoid:
Is it possible to use the embedded Firebird in my ASP.NET application?
Yes. But Firebird ADO.NET looks for the fbembed.dll file in the application working directory. For ASP.NET application the working directory is the system folder (e.g. C:\WINDOWS\System32). But it's not without problems
link text
On Another page from the same website:
ASP.NET uses a feature that help against poorly written ASP.NET application to block the entire server - it recycles the ASP.NET working process both regularly. By default, IIS6 uses overlapped recycling where there is a new process started before the old is stopped to ensure uninterrupted operation. The problem is that the fbembed.dll exclusively locks the database for the owner process so if you run another process simultaneously the database won't be accessible before the first process stops. You might want to accept this but it really is not an optimal solution.
The solution is to turn off the overlapped recycle (by setting the DisallowOverlappingRotation metabase property to true). However, this might cause outages of your application during recycle.
Conclusion
Don't do tha**t ;-). Really, fbembed.dll **was not built to handle such use. You can make it work but it is just a hack.