i want to develop a custom scheduler using asp.net C# to invoke the Task scheduler in windows. I want to create a windows form application to simulate windows scheduler.What should i know before i start this project. I have enough experience on asp.net, C# but not on the web service, scheduling side.
I have one excel file into my C drive, I wanted to read that excel file and wanted to insert those rows into sql server database.For this I want to create one scheduler.
I am creating a feature which will allow users to import data of excel sheet to database.First, data will be imported from excel sheet and will be displayed in a tabular format.User performs a mapping porcess for database fields and click Submit button.Then a stored procedure inserts all the data of each row into more than 15 tables.
Above mentioned process might cause an issue if users import more than 1000 records (they are definitely going to do that. Thats why this entire functionality is intended for).Basically, what I would like to do is, Insert all the rows to a single table (Temp table), have a cloumn in a table which will be a flag and initially, will be set to "Pending".Create a page which will be executed when there are less users accessing the system (Specific time),
This page will see if there are records in a temp table with FLAG "Pending". If yes then it will fetch one record from the table and will insert data of first row into all the necessary tables. After first transaction it will wait for some time and will fetch the second record....This will last until the final row of temp table is reached.
I am trying to use schedule task on the server from the web application hosted in IIS. I have written the code to create Task and passing the valid username/password under which this task needs to run on server. But I get an error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access. The same code works well with console and windows service and able to create task. I understand that this is security issue. My sample app is attached at: [URL]
Coming to my task, I have to schedule a process which will delete all the files in the paticular table with particular key.I have the stored procedure for the deletion. What all I need is, How to schedule this process in the application server.?
I am into shared hosting and they do not allow me to use windows scheduler... So what are the ways of achieving scheduled tasks ie(timed mail) in asp.net... I just saw background process by Jeff Atwood blog... Is it relaible? Or any other ways of doing scheduled tasks...
Then i found quartz.net but i can't find a simple example that embeds quartz.net into an asp.net(without installing a Quartz.Net server as a standalone windows service)...
i bought a hosting plan that allows me to send about 500email/per hour but my client wish to send about 2000 or 3000 email at a time. is there a way to split them and 500 email per a time automaticly without the need of reloging again every hour. my hosting plan doesn't allow me to create a sql jop or send mails via Sql Server.
I have a windows shared hosting and i need to run some scheduled c# executable every day for create sitemap, send newsletter,etc...The provider tell me that i can't run executable for security reason.Whay can i do?The provider suggest me to buy a VPS, but do not think it makes sense to spend more money just to run some scheduled task.
Anyone know of a skinnable audio player (or something similar to Windows Vista audio control in task bar) that i can embed in my website?
A player that can be customized to use a 'speaker' icon instead of a 'play' icon. When the speaker is clicked, the volume can be adjusted or turned off. The option of being able to autoplay and set the default volume level.
I have a asp.net web site, I would like a page on that site to be able to invoke a Windows Scheduled task or a batch file on a server different to the IIS server?
I wanna embed the windows service in the web application. I have seen few posts in the web. where they generate separate exe for the windows service and use it as an installable.
The same process i tried doing it but it threw an OS error in my server which is windows 2000 and didnt supported the executable.
However the website of mine runs fine in the same server. Thus i was thinking if i cd embed the same code in the web application.
Also, in my case the website of mine takes job for simulation. These jobs are taken for simulation execution and nearly takes 12hrs for completion and if they are not completed within twelve hours then they are supplied extra twelve hours to complete the simulation jobs.
The simulation executables are a series of executable and bat files.
The results of the simulation gets updated in the tables of MySql and hence are displayed to the user.
We, at our company, are developing a file sharing application which will allow users to upload/download files. This application will be part of the suite of other applications. We will be adding a desktop client (windows app) which is an upload/download manager which will assist users to queue in multiple large files for upload/download. There are a couple of questions related to design for these applications:
1. We would like to implement Single Sign-On for all these applications (including desktop client). We would like users to login to web and once they do that, they can browse through applications without logging in again. We will be implementing a authetication service using WCF. The requirement is that we do not want to add authentication functionality to desktop client. So users will need to login to our web application. We can write cookie to user's machines and will work for web applications. Can the desktop client use the same cookie to autheticate itself? Or there are other ways we can achieve it? 2. We also do not want that when desktop client is uploading/downloading multiple files that its session is expired and the user need to re-authenticate through web. How can we achieve it? How does other Upload/Download Managers (like MS File Trasnfer Manager) work?
Actually i dont know whther this is the correct forum or not? but i didnt found any other section to post a question like this.Actually i am in . I need to document the service i developed so when my absence or something the other developer can understand my way and code.The aim is to specify the module descriptions, needs and business logic i used to implement. So the next developer can understandCan anyone tell me the name of this document. Developer Document ? Please tell the correct name of this and any link to download any template to undertand. Please dont take it as simple question
I want to access membership and profile objects and wants to access profile properties that I have defined in my web app web.config file, from a windows service. I have used this code
foreach (MembershipUser user in Membership.GetAllUsers()) { ProfileCommon userProfile = profile.GetProfile(user.UserName); }
But its giving the followin errors The type or namespace name "ProfileCommon" could not found (are you missing a using directive or an assembly reference?) The type or namespace name "MembershipUser" Could not found (are you missing a using directive or an assembly reference?)
I need to extract meta-data of different files, as uploaded by the user.
For this I found out dsofile.dll from MS. Now the problem is that the version I've downloaded from
[URL] is working fine with Windows XP but giving run-time error in Windows 7 64-bit system. Finding more on the error I was getting I came to know that the dll would not work for 64 bit OS. I also downloaded 64-bit from [URL] but still am getting below run-time error:
Retrieving the COM class factory for component with CLSID {58968145-CF05-4341-995F-2EE093F6ABA3} failed due to the following error: 80040154.
I've two questions:
How can I solve this run-time error and from where will I get dll working in VS2008 Website on Windows 7 64-bit?
Is there any other way I can extract meta-data (all the attributes/properties other than exposed by System.IO.FileAttributes) of any file (could be doc, docx, xls, xlsx, jpg, pdf, txt, etc.) uploaded by the user?
Our solutions requires validating users against a custom database. This also includes roles which dictates what he user can do in the system. What is the best way to implement implement security, is it to use Windows Identity Foundation or the default Membership Provider and Role Provider that comes with .net?
I am using ASP.NET with C# and I am new in those. I need to write code which will read a webpage every minutes. I tried to do this with timer class of c#. When I run that code just after few seconds it says server stop running. What is the best way to write such code?
I don't know if this is the correct forum for this...I'm trying to in a C# console application, send an email using System.Net.Mail. The send command executes successfully (no error thrown in the try catch) however the email does not get sent.If i execute the program directly from the console, it works fine and the email is sent.The event viewer shows no errors for security permissions or otherwise.