I have a property that I want to be protected writable but public readable. Can anyone let me know how this is done?
Or possible you can tell me the best way to do this:
I have a class that has a property. This property should be ReadOnly to everything except those objects that inherit from it.
Thanks in advance!
Anyone know of any decent FAX software that integrates well with .NET? I'm hoping to find some freeware similar to WINFax Pro. I don't need all the bells and whistles that are part of WinFax Pro.
Any information about Faxing documents via .NET would be greatly appreciated. And I'd like to add, I am not interested in emailing documents to a FAX service, as the faxing system is meant to be a back up to email and FTP functionality should the internet not be available to the users using my app.
Thanks in advance,
Anyone have any idea how I can determine the status of a service? (In particular, SMTP) I would like to know if the service is started, stopped, disabled, etc...
Thanks,
I found the problem and it was permissions. I had to change a setting in the web.config file (<identity impersonate="false" />). When this value was true, the App was trying to impersonate a windows user, and this didn't work with access. I'm not sure if this setting is part of .NET or if it is part of our core dll. Thanks for all your help.
No, the file exist in it's own folder and the lock file (.ldb) doesn't exist. I have connected to this same database with a Windows app written in VB and another in C#, both work. It is only when I try and connect to our the db from my web project. Originally I was trying to use our dll that we use as a core for all our projects. However since then I have tested opening the db with out using the dll (opening straight from the web app) and it fails as well.
I actually moved the database from the web root directory to see if that would help but it didn't. It was only in C:\Temp when I posted but I have since moved it back. I'll try some of your other suggestions and reply again later.
Thanks
Belay my last.
I did get the permissions set for the folder to ASPNET (I had to add the computer name also eg. MyCompNm\ASPNET)
However, this hasn't fixed my problem. Thanks for trying.
When I tried to add ASPNET to the directory permissions I got this:
An object named "ASPNET" cannot be found. Check the selected object types and location for accuracy and ensure that you typed the object name correctly, or remove this object from the selection.
I'm currently running a web app using a SQL server connection. I'm using a core dll that is designed to connect to SQL or Access. When trying to connect to Access I'm getting the following error.
OleDbException (0x80004005): Unspecified error]
System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr)
System.Data.OleDb.OleDbConnection.InitializeProvider()
System.Data.OleDb.OleDbConnection.Open()
I've tested my connection string in a simple VB.NET windows app and it works fine. The connection I'm making above is made in a DLL written in C# and works fine if connecting to SQL Server databases.
Any help would be greatly appreciated.
Thanks
Here is the basic code
Dim cn As IDbConnection = New System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Temp\MyAccessDB.mdb;User ID=;Password=;")
cn.Open()
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the system event log of the web server. Please review this log entry to discover what caused this error to occur.
I'm just getting into ASP .NET at home and bought a book. The book instructs you on how to start IIS, etc...
I've been running ASP and I've had .NET installed so I didn't do anything but attempt to create a Hello World type aspx page. I am running everything locally and I get an error each time I try to open and aspx page. I can open an asp or html page from within the same directory. The warning message also says to check the servers system event log. There is no error listed in the event log to corrospond. I'm on page 21 of a book after 3 hours and it's getting very frustrating. If anyone could offer some advice.
PS - I have tried running the file Microsoft has listing on their site and nothing changed.