C# - Start Using Redis DB With Asp.net ?
Feb 15, 2011Can any one tell me how to start using Redis DB with asp.net .What I should install and what I should download.I'm using VS2008 with C#.
View 2 RepliesCan any one tell me how to start using Redis DB with asp.net .What I should install and what I should download.I'm using VS2008 with C#.
View 2 RepliesWhat is the right approach when users (authenticated domain admins) should be able to start batch jobs (usually exe files) from an IIS (7.x) aspx (c#) page? This is an intranet site. The batch jobs have to run on the web server as Domain Admins. The website pool is executed by network service or some similar restricted account in AD.
Approaches I can think of (and their disadvantages):
1. Start exe file with System.Diagnostics.Process.Start with another account. This feature is disabled in IIS 7.x, how do I allow it?
2. Create a sheduled task and call scheduled task-api. This unmanaged dll is giving VS compiler warnings because it's unsafe to call from managed code.
3. I suppose there's a better approach, because the previous suggestions doesn't appear safe or robust.
I am trying to register the route collection in .net based on each session. The code I have works fine, you goto website/username and it loads the correct sub pages, but you have to restart the application to goto website/username2 to load those sub pages. But when the application is restarted the second one works, but then not the first one. Is there some way to create a different route collection per session not per application using system.web.routing.
View 3 RepliesI would like to start a System.Threading.Timer in my application when it launches (maybe deploy is the correct word). I have seen that you can use Application_Start() but this is only fired once the first request comes to the application. I need the timer to start as soon as the application is running so that it can check for work to process even if a user is not interacting with the site. How can I get the application to start the timer once it is up and running?
View 4 RepliesI am running Visual Studio 2010 (as Admin), IIS 7 on Windows 7 x64. I am able to run the ASP.NET web site in IIS 7 without debugging just fine, but when I press F5 to debug it, I get: Unable to start debugging on the web server. Could not start ASP.NET debugging. More information may be available by starting the project without debugging. Unfortunately the help link is not helping me much and leads down a heck of a large tree of things. I checked the following:
Security requirements — I don't recall having to do anything special before. The worker process in IIS7 is w3wp.exe. It says that if it's running as ASPNET or NETWORK SERVICE I must have Administrator privileges to debug it. How do I find out if I need to change something here? Web site Property Pages > Start Options > Debuggers > ASP.NET is checked. Use custom server is set to the URL of the site (which works fine without debugging). Debugging is enabled in web.config. Application is using ASP.NET 3.5 (I want to move to 4.0 eventually but I have some migration to deal with). Application pool: Classing .NET AppPool (also tried DefaultAppPool). Surely it shouldn't be that hard to install IIS, VS, create a web site, and start testing it?
In our ASP.NET application we perform some initializations upon the Application Start event.When the application is started in visual Studio 2010 with 'Debug->Start new instance' the ASP.NET Development server does not start new, and my Application's Start event is not fired.My workaround is to manually stop the development server - is there a setting to force this automatically?
View 1 RepliesI've done quite some research on which ASP .NET Facebook SDK to use. Acording to this post [URL] old FacebookToolkit should not be used for new projects but instead we should use the all new and shiny Facebook C# SDK.
But he problem is that it lacks documentation, especially beginners examples for creating Facebook applications with Facebook SDK and WebForms:
How to start Basic authentication examples More examples... Where did Facebook.Web.CanvasIFrameMasterPage go from Toolkit ?
I've got a solution consisting of two projects: an ASP.NET Web Application project and a WCF Service Application project.
When running the solution from within the VS 2010 IDE, two browser windows are started. One browser displays the ASP.NET form page, and the other browser showing a directory listing very much like this:
Directory Listing -- /
Saturday, December 18, 2010 10:40 PM <dir> App_Data
Monday, December 20, 2010 10:10 PM <dir> bin
Saturday, December 18, 2010 10:53 PM 111 ChatService.svc
Thursday, December 30, 2010 10:41 PM 455 ChatService.svc.cs
Friday, December 31, 2010 03:27 PM <dir> DataLayer
Monday, December 20, 2010 11:32 PM 265 IChatService.cs
Saturday, December 18, 2010 10:40 PM <dir> obj
Saturday, December 18, 2010 10:40 PM <dir> Properties
Friday, December 31, 2010 03:33 PM 4,609 Services.csproj
Friday, December 31, 2010 03:33 PM 1,086 Services.csproj.user
Sunday, December 19, 2010 08:35 AM 58 Services.Publish.xml
Monday, December 20, 2010 02:09 PM 959 Web.config
Saturday, December 18, 2010 10:40 PM 247 Web.Debug.config
Saturday, December 18, 2010 10:40 PM 343 Web.Release.config
Version Information: ASP.NET Development Server 10.0.0.0
The second browser window (with the directory listing) is obviously the WCF service. Now, is there a way to suppress the WCF service browser window, or is this the expected behavior since the WCF Service Application project is self-hosted?
Also, I've got the solution properties set to multiple startup projects.
When I run my project and I'm looking at a View, the project runs that start-up page specified in my HomeController class, which is great. But if I'm looking at a class or a model, and I run the app, then it tries to make that class the start-up page and gives me the error "A project with and Output Type of Class cannot be started directly". So I have to close the error box, open up a random view, and then run the app. Is there a way around this? It shouldn't matter that I'm working on a class file when I run my app.
View 3 RepliesI have a brand new computer installed with .net Framework 4. I have a 80004005 error that says something like "aspnet_wp.net can't be started because you have the wrong credentials" (sorry, the error message is in another language than english).I tried adding userName="SYSTEM" in the section of the machine.config but it didn't work.I'm desperate, I don't know what to try and I'm normally a Linux
View 2 Repliesi am getting "start index cannot be less than zero".
email = email.Remove(email.IndexOf(EmployeeDataset.Tables[0].Rows[i][
"EmailId"].ToString()),
Convert.ToInt32(EmployeeDataset.Tables[0].Rows[i]["EmailId"
].ToString().Length + 1));
in this line i am getting error.
I'm going to precompile an asp.net application in my custom c# form. How do i retrieve the process logs and check whether it is a successful process or not?
Here's my code
string msPath = "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\";
string msCompiler = "aspnet_compiler.exe";
string fullCompilerPath = Path.Combine(msPath, msCompiler);
msPath.ThrowIfDirectoryMissing();
fullCompilerPath.ThrowIfFileIsMissing();
ProcessStartInfo process = new ProcessStartInfo
{
CreateNoWindow = false,
UseShellExecute = false,
WorkingDirectory = msPath,
FileName = msCompiler,
Arguments = "-p {0} -v / {1}"
.StrFormat(
CurrentSetting.CodeSource,
CurrentSetting.CompileTarget)
};
Process.Start(process);
How to get the last time the current ASP.NET app was initiated?
View 2 RepliesI want to start creating ajax enabled websites.When i used .Net framework 2.0;then i used to install the "Microsoft ASP.NET 2.0 AJAX Extensions 1.0" after installing the Visual Studio 2005.Then i used to download the AjaxControlToolkit.zip.But now i am using the .Net Framework 3.5;hence i cant understand what should i download(instead of "Microsoft ASP.NET 2.0 AJAX Extensions 1.0") and install to get started with creating ajax enabled websites after installing the Visual Studio 2008?I gave a google search but in vain.Also i dont know which is the version to use here.Please give me a link wherefrom i can download so that i can start creating ajax enabled websites in Visual Studio 2008.
View 6 Repliesif anyhow my session have ended then how can i start the session again in the code.
View 3 RepliesI m making an application in asp.net 3.5. I have added .edmx file in my appliaction and create all the instances of datatable in the edmx file. now i want to know how to start querying with this edm like inserting updating and selecting etc. from database.
View 7 Repliesstart learning ASP.NET Help getting started in programming? I am new to programming.How can I best start to learn?
View 6 RepliesI am trying to have a time clock on my page, I want it to start from 0:00 and then start going up, my plan was to have an AJAX timer and a updatepanel with a label inside of it which would refresh every minute and update the time, how can I get the code in VB.NET to start from 0:00 and increase by 1 minute?
View 6 Repliesi have 1 master page with 5 pages that call it. now on the master page, I have few dropdowns and textboxes, and the calling pages only have a small article in the corner. I want to start a session on page_load event, so that if the user chooses to select a dropdown or put data in textbox, even if he clicks on the other 4 links of other pages, the data should stay.
View 1 RepliesI'd like to write some code and then just write the unit tests for the important stuff.
I know the tools. I know how to write a unit test.
I wrote some code (couple off classes) and I don't know where to start. I'm missing the semantic.
How to pick up what to unit test ?
Should I unit test every class extra ?
Should I try to simulate every possible variation of method's parameters ?
bump on this WebForms MVP and i was able to download the DLL files but i don't know how to start. how to integrate it in VS, etc..
View 5 RepliesThere is a Web Service installed on Amazon Server. Exposed WebMethod should start an executable. But, it seems that process (executable) started by WebMethod has not permissions to finish its job. If a WebMethod is called locally (using IE on Amazon VM) I can trace some events into log file placed on the path: C:\LogFiles. But, if it is called from remote machine, there is no even log files. Locally, on my machine all works fine.The question: is there any way or settings in IIS7 to allow to my WebService to create process that can do everything I want to do? In web.config file I added a line:
<identity impersonate="true" userName="USERNAME" password="password"/>
(userName and password are, of course, written correctly in the file).
Also, I tried to use impersonization as it is explained here, but there is no result. My process can't do its job, it cannot even trace actions into log file. Locally, on my machine, everything works fine.
how to change settings or whatever into IIS7?
EDIT: In addition to the main question: my WebService is not able even to create log files on the path: C:\LogFiles - although it is able if it started locally, but remotely there is no simple log file that contains some string. How to allow it to create simple text files?
I have a web app that needs to start an application. It works great when using the debug server from VS2010 but once I deploy the web app and use the local IIS 7.5 server the application process starts in the background (no UI just a process visible in the task manager). The process is owned by DefaultAppPool. I Added DefaultAppPool user & IIS_IUSRS group to the program folder permissions but still no luck.I've found this old link on this problem but the solution doesn't apply to IIS 7.5.
View 4 RepliesI have a record with primary key 'ID'.
the records start at ID=78 and then continue up with 79, 80, etc. (I have IsIdentity=true).
I want to make all the existing records start at ID=0. Anyone knows how to do that?
notice that "DBCC CHECKIDENT('Customer', RESEED, 0)" for example, doesn't help, because it would change the records to be inserted, but I want to change the existing records.
I have a web site in Default Web Site that has been working fine.
Recently I have installed Sharepoint. Now the default web site is not working. I type in http://localhost to even test to see whether asp.net is working fine but all I can see after typing that in is HTTP 404 NOT FOUND error.