.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Kaviya Balasubramanian
Imran Ghani
Post New Web Links

application start

Posted By:      Posted Date: September 24, 2010    Points: 0   Category :ASP.Net
 

Hi


If I create a dataset in Application_Start - is that dataset available for the length of  application run time? if so how do I access it?


or do I have to store it in an application session (Application["SessionName"])



Thanks in advance




View Complete Post


More Related Resource Links

how run my C# console application when i start the computer ?

  
hi i have build a console application (any listener) and i need that when i open the computer - this application will run. i don't have installation for hem (it a simple little .exe file) is there any way to do it through my C# code ? thank's in advance

dllimport("mapi32.dll") changes the path context of application (i.e. relative paths start pointing

  
I have a WPF desktop application. We use mapi32.dll to show a new outlook mail window to allow user to send an email. After user sends email / just closes the new mail window without sending email, relative path starts pointing to C:\Program Files\Microsoft Office\Office12. I have office 2007 installed.  How can I restore this relative path ?   Thanks & Regards, Nadeem Ullah

"System.ArgumentException: Font '?' cannot be found" during application start up. Any ideas?

  
We have couple of users that get this error when they run our application.  I have never seen this problem before. Client says fonts are installed and Microsoft Sans Serif font is there as well. Also he states that user has Read permissions to %SytemRoot%Fonts folder. Any suggestions or ideas how to fix this problem will be appreciated. Thank you.  Here is the stack:   Exception: System.ArgumentException: Font '?' cannot be found.   at System.Drawing.FontFamily.GetGdipGenericSansSerif()    at System.Drawing.FontFamily.get_GenericSansSerif()    at System.Drawing.SystemFonts.get_DefaultFont()    at System.Windows.Forms.Control.get_DefaultFont()    at System.Windows.Forms.Control.get_Font()    at System.Windows.Forms.Control.AssignParent(Control value)    at System.Windows.Forms.Control.ControlCollection.Add(Control value)    at Bloomberg.SmartClient.Hosting.ErrorControl.InitializeComponent() in C:\Projects\Source\Client\ApplicationHosting\ErrorControl.cs:line 218    at Bloomberg.SmartClient.Hosting.ErrorControl..ctor(String appTitle, Boolean inPanel, Exception exception) in C:\Projects\Source\Client\ApplicationHosting\ErrorControl.cs:line 119    at Bloomberg.SmartClient.Hosting.ApplicationHost.OnDisplayError(ApplicationDescription appDescription, Excepti

"System.ArgumentException: Font '?' cannot be found" during application start up. Any ideas?

  
We have couple of users that get this error when they run our application.  I have never seen this problem before. Client says fonts are installed and Microsoft Sans Serif font is there as well. Also he states that user has Read permissions to %SytemRoot%Fonts folder. Any suggestions or ideas how to fix this problem will be appreciated. Thank you.  Here is the stack: Exception: System.ArgumentException: Font '?' cannot be found.   at System.Drawing.FontFamily.GetGdipGenericSansSerif()    at System.Drawing.FontFamily.get_GenericSansSerif()    at System.Drawing.SystemFonts.get_DefaultFont()    at System.Windows.Forms.Control.get_DefaultFont()    at System.Windows.Forms.Control.get_Font()    at System.Windows.Forms.Control.AssignParent(Control value)    at System.Windows.Forms.Control.ControlCollection.Add(Control value)    at Bloomberg.SmartClient.Hosting.ErrorControl.InitializeComponent() in C:\Projects\Source\Client\ApplicationHosting\ErrorControl.cs:line 218    at Bloomberg.SmartClient.Hosting.ErrorControl..ctor(String appTitle, Boolean inPanel, Exception exception) in C:\Projects\Source\Client\ApplicationHosting\ErrorControl.cs:line 119    at Bloomberg.SmartClient.Hosting.ApplicationHost.OnDisplayError(ApplicationDescription appDescription, Exception err

Getting error when trying to start acroRd32.exe "Not a valid Win32 Application"

  

I am writing a .pdf file to a folder then attempting to silent print using acroRd32.exe. When I run the program I get the error 

"Not a valid win32 application"

The program is creating the pdf file correctly.


Thanks



 string pathToExecutable = @"c:\Program Files\Adobe\Reader 9.0\AcroRd32.exe";

     RunExecutable(pathToExecutable, @"/t ""C:\WR014v2_.pdf""     ""//ussnadprt/USNPA039""");




 private static void RunExecutable(string executable, string arguments)
        {
            ProcessStartInfo starter = new ProcessStartInfo(executable, arguments);
            starter.CreateNoWindow = true;
            starter.RedirectStandardOutput = true;
            starter.UseShellExecute = false;

            Process process = new Process();
            process.StartInfo = starter;
            process.Start();

            StringBuilder buffer = new StringBuilder();

            using (StreamReader reader = process.StandardOutput)
            {
                string line = reader.ReadLine();
                while (line != null)
                {
                    buffer.Append(line);
                    buffer.Append(Environment.NewLine);
                    line = reader.ReadLine();
                  

MVC application won't start: code -2147023895

  

I started trying to refactor my code, and made some changes to the repositories of my application. The solution still builds successfully, but when I try to run it in debug mode, the app hangs for a time, then shuts down without starting completely. The error message I get is:

The program '[3256] WebDev.WebServer40.EXE: Managed (v4.0.30319)' has exited with code -2147023895 (0x800703e9).

Since I'm not getting an exception, and Googling the error didn't yield any useful results, I'm stuck at the moment. The exit code looks somewhat like the min value for an integer, but that doesn't really mean anything to me in this context.


How to get start facebook application development with asp.net c #

  

Hi friends

I want to make a simple application in facebook with asp.net c #, i have Visual Studio 2010

i dont have idea ! how to start with Visual studio 2010


- a facebook user can add my application in page & see some buttons & video over there & post somthing on application


Please help me !!


Thanks in advance


WPF application start up.

  

I created a little sample to demonstrate my problem. Here is the code, and it doesn't work as expected:

<Application x:Class="WpfApplication1.App"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  Startup="Application_Startup">
  <Application.Resources>
     
  </Application

Project server 2007 "Project Application Service " can not start

  

Hi, all

I have a sharepoint 2007 installed on server 2008,it works ok

,today I tried to installed project server 2007 (sp2)on it , it also is ok

but when I try to to start the "Project Application Service " to start project server

It also return back to stop.

I found the article from the web

but My server is windows 2008, the document and setting  can not access

Microsoft Project Server Frequently Asked Questions (FAQs): Overview

FAQ Title: Unable to start project application service after installation

Applies To: Server 2007
Group: Common Errors

Microsoft Project Server Frequently Asked Questions (FAQs): Details
 
 
Background Description

When you install Project Server 2007 the installation appears successful, but you are unable to start tgeProject Application Service from the "Services on Server" page.  Clicking the Start link causes the "Operation in Progress" page to display temporarily and then returns with the status unchanged.  

Resolution

This may be related to permissions

.NET Application does not start - crashes at launch

  

Hi,

On a customer machine our .NET application does not start. It crashes at launch. I got a full DrWatson dump and analyzed it, but I can't figure out anything.

Any ideas would be highly appreciated, I can't find much on the Internet about these errors. Since it only happens on one machine, I suspect it is an environment issue, but I'd like to pinpoint it, before telling the customer to get a new machine...

CONTEXT:  0012f728 -- (.cxr 0x12f728)
eax=00000000 ebx=00000000 ecx=00000000 edx=0000000e esi=001a2fdc edi=001a40d0
eip=79f286f4 esp=0012f9f4 ebp=0012fa20 iopl=0         nv up ei pl zr na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010246
mscorwks!PEDecoder::HasManagedEntryPoint+0x8:
79f286f4 f6401010        test    byte ptr [eax+10h],10h     ds:0023:00000010=??
Resetting default scope

READ_ADDRESS:  00000010

FOLLOWUP_IP:
mscorwks!PEDecoder::HasManagedEntryPoint+8
79f286f4 f6401010        test    byte ptr [eax+10h],10h

FAULTING_THREAD:  ffffffff

DEFAULT_BUCKET_ID:  NULL_CLASS_PTR_DEREFERENCE

PRIMARY_PROBLEM_CLASS:  NULL_CLASS_PTR_DEREFERENCE

BUGCHECK_STR:  APPLICATION_FAULT_NULL_CLASS_PTR_DEREFERENCE

LAST_CONTROL_TRANSFER:  from 79f28738 to 79f286f4

STACK_TEXT: 
79f286f4 mscorwks!PEDecoder::HasManagedEntryPoint+0x8

Can I some how get application absolute url in application start event

  

Suppose my website address is like http://localhost/MyWebsite

I wanted to access this url in Application_start event in global.asax, Can i some how get it?

[I know i can get it via application_beginrequest or other event]


Project application Services can't start

  

 

First,I use windows server 2008 RC0  Enterprise, then I setup sharepoint server 2007 ,finally ,i setup project server 2007,After Run the SharePoint Products and Technologies Configuration Wizard, when I Configure the farm services for Project Server application servers,In the Service list, find Project Application Service. In the same row under the Action column, click Start. but i can't start it.

 

i think it's because I use windows server 2008 RC0  Enterprise,when i 'm having some trouble starting Excel Calculation Services from the Central Administration page > Operations,i can't start it also. but 

I can start Excel Services on Longhorn (Windows Server 2008) through the following command line:

 

STSADM.EXE -o provisionservice -action start -servicetype "Microsoft.Office.Excel.Server.ExcelServerSharedWebService, Microsoft.Office.Excel.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"

 

how can i use the same way to start Project Application Service<

Microsoft's Collaborative Application Markup Language (CAML) Loop

  
discovered an interesting error recently while working with Microsoft's Collaborative Application Markup Language (CAML) that, surprisingly, had received no ink. Partly what surprises me about this is that the error may require you to rewrite large sections of your code if you haven't previously considered this SharePoint limitation. I'll start with some context, but first of all the error is:

Integrating a Legacy Web Application in SharePoint

  
This month we will continue with the theme of deploying Microsoft's SharePoint as a company intranet by describing a method for integrating a legacy Web application inside a SharePoint site.

In many companies the intranet site is not just a home page with announcements. It houses Web applications used by many different departments. In last month's article, I built a page to search the employee table in Northwind (the sample database included in Microsoft's SQL Server). This month, I will move the Web pages used to add/remove records from the table into the SharePoint intranet.

MVC architecture in ASP.Net using C# and Microsoft Data Access Application block

  
The Model-View-Controller (MVC) pattern separates the modeling of the domain, the presentation, and the actions based on user input into three separate classes [Burbeck92]:

Model. The model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller).

View. The view manages the display of information.

Controller. The controller interprets the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate.

High-Performance .NET Application Development & Architecture

  
It has always been a goal of project architects to plan an effective strategy from the ground up in regards to an new application. All relevant factors are taken into consideration with respect to the application, from its design and layout to a functional website infrastructure. Pre-.NET strategies and design guidelines still effective now were developed with Microsoft's DNA (Distributed interNet Application) platform. This model successfully served the purpose of architecting N(any number of)-Tier (levels) applications. In its basic sense, as in most robust, distributed applications, you'll architect 3 main layers or Tiers: presentation, business rules and data access.

Application architecture in asp .net

  
Application Architecture is the most important process of developing a good application. Some people tends to jump into coding without any architecture laid. Later we see those people changing the architecture and finally the application had to be developed from the scratch with the correct architecture.

In this article I will describe some details about how you can improve the architecture of you application. This article is targeted to the beginner's audience.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend