Logging in ASP.NET web application from external library [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have library with log functionality and ASP.NET web application, which uses this library. I need to write logs to web application folder. If I write logs from web app, I use HttpContext.Current.Request.ApplicationPath, but how can I get path of current web application from external lib? Thank you.

You can, for example in your Global.asax's Application_Start method:
protected void Application_Start()
{
YourLogLibrary.StaticLogConfiguration.LogDirectory = Server.MapPath("~/Logs");
}

Related

C++ application and C# application having shared region/memory [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have an issue to create a C++ application and C# application those two must have a shared region between them, so both of them can Read/Write from/to this region. if you have any documents/solution can you share it to me?
thanks in Advance.....
using a named pipe so the two processes can communicate (C# server and C++ Client)
you can also see "Sharing Files and Memory" at MSDN.
You can use memory mapped files to communicate between applications, along with mutexs and events to single between applications.

How to change the port of asp.net page? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a problem which I can't handle. I want to make an intranet asp.net site and there will be 3 account types, one of them is Admin account(it has it's own page). So I want that page to be in another port.

C# ASP.NET display code on page [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I would like to read in a .cs file from my project which contains a code sample for use by clients of my company's API.
What's the best way to read in this file and pretty-print it to the page with indentations etc. The goal is to just have the code on the page automatically change when I update the contents of this file so that the code sample will always be up to date as published on the live site.
An example of what I'm attempting to accomplish is something similar to this: http://msdn.microsoft.com/en-us/library/vstudio/ezwyzy7b.aspx
I'd use this...
http://www.manoli.net/csharpformat/
http://www.manoli.net/csharpformat/CSharpFormat.zip
It transforms C# code into html. You can read the file run it through the CSharpFormat then output the HTML to a panel in the page.

Scheduling a monthly Job for .net code [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I currently have a web application, that has certain filters and on those filters a method from a class library is called and the respective activities are performed like processing records, placing files on certain locations on different servers.
I want to automate this process.
How can I achieve this and what is the best possible way?
I read about various options windows service, Cache Item Call backs, Workflows.
But not able to evaluate.
Please help me.
You can create a console application for the process and then schedule it through Windows Scheduler. Or you may look at Quartz.NET - Enterprise Job Scheduler for .NET Platform

how to use Bingmaps in windowsphone7 with visual studio 2012 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I'm trying to use a bing maps control on a windows phone 7 silverlight application and I've tried follow from this sites: http://www.jeffblankenburg.com/2009/12/30/day-30-bing-maps-in-silverlight/
But it shows this error:
The tag 'Map' does not exist in XML namespace
'clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl'.
am I doing something wrong?
Make sure you have added Microsoft.Phone.Controls.Maps assembly to the project references.
In your PhoneApplicationPage add the following attribute:
xmlns:maps="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps"
And to use the Map control in your page do as following:
<maps:Map />

Categories

Resources