Configuration :: Would This Affect Process Of Building

Jul 6, 2010

[Code]....

Would this affect process of building?


View 4 Replies


Similar Messages:

Building An Import Process That Checks For Duplicates?

Dec 1, 2010

Using ASP.NET, I'm building an admin tool that requires a function to import a list of email addresses. Upon uploading the file, I want to check for existing records for any of the email addresses supplied. For non-existing email addresses, I would create them using my DAO.

Basically I want to:

Receive list of emails
Retrieve data for existing emails
Create data for new emails in db
Return full data for all emails in list.

Since I want to know which of the emails exist up front, my first thought was to query the table for all records WHERE Email IN ('Email001FromFile', 'Email002FromFile', 'etc...') but the list could potentially contain thousands of email addresses, and I'm not certain supplying that many email addresses to the IN operator would be a good idea.

I also thought about looping through the list and checking for a record for each email, but that would potentially generate far too many queries.

My next thought was to generate a temp table to hold the list and modify the IN clause to use the temp table, rather than an explicit list of items, but that would require I execute SQL or a stored procedure directly, which I'm not inclined to do since I'm using NHibernate to access my DB.

Though I am using ASP.NET (C#) and NHibernate

View 2 Replies

Configuration :: Process.start (System.Diagnostics.Process) - Execute A Batch File

Sep 7, 2010

I've written a aspx.net(C#) page that after the user has done what they do on the page they hit a Submit button. The Submit button

1) takes the work the users was producing on the page and writes it to a file.
2) attempts to execute a batch file.

The call to the batch file is executed via:

protected void Execute123EDI()
{
try
{
string File = @"c:80sAdminSendV80s.bat";
lblCancelled.Text = lblCancelled.Text + File;
Process proc = new System.Diagnostics.Process();
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.LoadUserProfile = false;
proc.StartInfo.UserName = "administrator";
proc.StartInfo.RedirectStandardOutput = true;
System.Security.SecureString secPass = new System.Security.SecureString();
string paswd = "123abc";
for (int i = 0; i < paswd.Length; i++)
{
secPass.AppendChar(paswd[i]);
}
proc.StartInfo.Password = secPass;
proc.StartInfo.FileName = File;
proc.Start();
FileStream fs = new FileStream(@"c:80sAdminSendV80sOutput.log", FileMode.Append);
StreamWriter sw = new StreamWriter(fs);
sw.Write(proc.StandardOutput.ReadToEnd());
proc.WaitForExit();
sw.Close();
proc.Close();
}
catch(Exception ex)
{
lblDebug.Text = lblDebug.Text + ex.Message + "<br/>";
}

If I watch the processes tab in Task Manager on the web server I see "cmd.exe" under the context of 'administrator' but it just hangs. For test purposes c:SendV80s.bat: copy c: oot.ini c:zzz.txt

If I logon onto the webserver's console and execute SendV80s.bat it works and exits without issue. But when I execute the same batch file via the Submit button it gets stuck executing in Task Manager/Process. I believe this has something to do with the fact that cmd is not running in a full environment/desktop context. I just noticed this on the actual console of the webserver (not in my RDP console but console 0 instead)

A pop-up box stating: CMD.exe Application error The application failed to initialize properly (0xc0000142). Click OK to terminate the application. And when I click on the OK button my ASPX page's WaitForExit is satisfied and the continues processing normally.

View 2 Replies

Configuration :: Folder Size On Hosting Server Affect Performance?

Dec 14, 2010

we host the web application on a server and the structure is..

Root
Module1
page1.aspx
Module2
page4.aspx
Temp
archivedImages
image1 image2

The temp folder size is increased every month as we manually add images.

Except the Temp folder every page is requested from the browser...

We dont use the Temp folder for any other purpose other than archive.

Does this affect the performance of the web application i.e. constant size increase?

how different would it be if we moved the temp to some other location out of the Root?

View 1 Replies

Configuration :: Trigger IE9 To Render In Compatibility Mode Negatively Affect Performance On The Server?

Mar 17, 2011

Would adding "X-UA-Compatible: IE=EmulateIE7" as an http header to trigger IE9 to render in compatibility mode negatively affect performance on the server? I made the change today, adding it, but now some areas of our site are behaving sluggishly, though we did have a large number of changes come in overnight. I know that we can't single out this as the problem, but my boss seems to think it is.

View 3 Replies

Configuration :: Finding Best Practice For Making Sure That Slow Pages Don't Affect Other Pages?

Aug 31, 2010

Page B - loads slowly and needs to do some CPU-intensive operations on the web server.

I noticed that when someone is loading Page B, then Page A also loads slowly. This is even worse if multiple users are loading Page B at the same time. Page A won't finish loading until Page B is done.

Is there a best practice for making sure that Page A can still load quickly? Maybe a config setting or IIS setting that I need to change from its default? With 2 users loading Page B at the same time, the web server CPU usage only gets to 30% so I suspect it might be something I can tweak with the settings.

View 1 Replies

Configuration :: Lost References While Building Project

Oct 14, 2010

i have a webapplication project which uses some functionailty from class library project, i am Using VS2010 TCP 4.

so the class library is a reference in this webapplication project,

unfortunatelly, when i build the webapplication, the class decleration has been lost!!!, and the message appear "The type or namespace name 'ClassName' could not be found (are you missing a using directive or an assembly reference?)" !!! i must delete the class reference from the webapplication and re-refrence it again !!!

but still when every time i build the project the reference decleration removed !!! does that error in VS or what ?

View 1 Replies

Configuration :: Using C# 4 And Has A SQL 2008 Backend And Then An CMS Custom Building?

Oct 19, 2010

experienced pros on the best way of doing something.First let me give you the broad view of everything.I have a main site (http://www.ffinfo.com/) which is built completely in ASP.Net using C# 4 and has a SQL 2008 backend and then I have an CMS I am custom building to administer the site.At some point I hope to have more people playing the Final Fantasy games and helping me collect data to add to the site so I am using the CMS to both add/modify data in the SQL DB and genereate new pages on the main site as needed.I want to compile the main site so it runs faster as my server has limited resorces and after a reboot or upload of new pages it takes a little bit for the first visit to run.Now here is the problem.

When I use the CMS to make a new page I currently copy over a .asp and .aspx file from a template into the appropreate folder and am good but if I want to compile that page along with any other new pages made I have to scower my FTP for them, download to the local machine,build and publish.This will very quickly become a lot of work,not to mention I can not really take advantage of OOP.

So my question is this, how do I go about doing this better? Have I taken the wrong approce from the start and need to find another road or is the road I am ok I just need to improve my transportation?

View 4 Replies

Configuration :: Worker Process In IIS?

Nov 17, 2010

I have increased the number of worker process of default application pool to 15(IIS->Application Pools->DefaultAppPool->Properties->Performance->webgarden).after increasing the worker process i am facing session timeouts

My application is using a state server session managemnet and a predefined machineKeyCan you please guide me in how to increase the worker process without session loss

View 1 Replies

Configuration :: Start A Process From A 4 App With IIS 7.5?

Jun 18, 2010

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 Replies

Configuration :: Server Process Is Not Available In This Context

Sep 20, 2010

I have a problem when I add the following line at the beginning of my Global.asax.vb

[Code]....

I get a "Server process is not available in this context" error. (System.Web.HttpServerUtility.MapPath(String path) +8660257)

I need the physical path to the Database1.mdb file because I open a Database connection in the Session_Start sub.

View 3 Replies

Configuration :: Read A File Which Is Used By Another Process?

Apr 14, 2010

Is it possible for an asp.net application to read a file which is used by another process?

View 3 Replies

Configuration :: IIS Application Domain, Worker Process?

Dec 7, 2010

What is the difference between IIS Worker process, Application pool and application domain? Do we have more than one application domains in one application pool?Does one application domain means one virtual directory?
If we have 2 virtual directories pointing to same physical folder. Will they share the same memory or different when there instances are opened in the browser? Will they be in 2 different application domains?

View 2 Replies

Configuration :: Trying To Config Application To Use Out-of-process SessionState?

Oct 18, 2010

I am trying to config my application to use out-of-process sessionState.

<sessionstate mode="stateserver" cookieless="false" timeout="20" sqlconnectionstring="data source=127.0.0.1;user id=<user id>;password=<password>" server="127.0.0.1" port="42424" />In my web.config I get errors for the server and port attributes, telling me that server attribute is not allowed and port attribute is not allowed.

View 2 Replies

Configuration :: Application To Read A File Which Is Used By Another Process?

Sep 6, 2010

Is it possible for an asp.net application to read a file which is used by another process?

View 9 Replies

Configuration :: Worker Process Recycle, Every 60 Seconds?

Jul 13, 2010

We recently had to enable Memory Recycling on a 2.0 app pool (IIS6). We checked both boxes, leaving in the default values of 500 MB for virtual memory and 192 MB for used memory. Here's where it gets interesting. Every 60 seconds, on the dot, the worker process is forced to recycle.Our tests were spamming the site with concurrent users trying to get the virtual memory up to 500MB, but we never could (as viewed in task manager). However, that didn't matter. We tested it by simply recycling the pool and hitting one page, once, and seeing around 30MB allocated and then just waiting 60 seconds and watching the process die in task manager (and a new one start up).We've increased the value for maximum virtual memory to 768MB and the issue *appears* to have gone away, but just arbitrarily accepting a fix isn't how we like to do things. I haven't found any officially reported bugs, kb articles, or solutions on blogs that point to what is causing this. To me, this means either it's some crazy environmental issue or the answer is really obvious and we just can't see it.

View 1 Replies

Configuration :: Allow Process Connect Via Ftp To Another System (under Win2008R2 & IIS7.5)

Aug 31, 2010

I have code that runs under IIS6 & ASP.Net 2.0, that won't run under IIS7.5 on Windows Server 2008 R2. I am assuming I have a configuration problem - but I don't know. On a Windows Sever 2008 R2 system: From inside IIS (v7.5), an ASP.NET process will not connect to port 21 (ftp) on the ICS (using System.Net.Sockets.Socket), it fails, logging an error that it cannot connect to the system at nnn.nnn.nnn.nnn. But, from a command prompt on the same server though, I am able to connect via ftp to the system at nnn.nnn.nnn.nnn. I am using the DefaultAppPool.

Here's a code snippet:

[Code]....

And the connect throws an exception - unable to connect I'm firing up wireshark soon and I'll see what if anything is getting across the wire? particularly if you think it's administrative in nature, cause that's a real weak point for me.

View 2 Replies

Configuration :: System.Diagnostics.Process.Start Not Working?

Jan 7, 2011

I have installed VS2008 on my development machine have winxp sp2 OS.i have created one aspx page where i have placed one button. On click of that button i want to open osk.exe(on screen keyboard). i an using following code

System.Diagnostics.Process.Start("osk.exe")i works fine there.Now for testing i deployed that application to testing server having Win7 OS and IIS7.0. It is not working there.

View 2 Replies

Configuration :: .tmp File Created After Process Crash When Application Upgraded To 2.0?

Sep 23, 2010

After upgrading an asp.net application to 2.0 from 1.1 I am receiving a large 100+MB .tmp file in C:Temp on the web server when the w3wp process serving that application crashes. If you open the file it looks like it is some sort of dump file. how to turn this off. I know what is crashing the application and process.

View 2 Replies

Configuration :: Opening A File With Process.Start Outside Root Folder?

Nov 6, 2010

So, I have a webForm that has an ImageButton. This ImageButton has to open a file (said file is uploaded by the user in another web form. The file is saved to \serverNamefiles; it can be a doc file, pdf file, excel file).

So this ImageButton should open said file as you normally would. It works on debug, however when I publish my site, and run it from my localhost, it doesn't open the file. When I click the ImageButton it just does the postback and nothing happens.

The code for the ImageButton is just:

Process.Start(fileName);

fileName has the full path of the file I want to open, in this case it has: \serverNamefilesmyFile.pdf

View 11 Replies

Web Forms :: The WebResource.axd Handler Must Be Registered In The Configuration To Process This Request?

Mar 2, 2011

[Code]....The WebResource.axd handler must be registered in the configuration to process this request?

View 4 Replies

Configuration :: System.diagnostic.process.start Not Working From Client Browser

Jul 15, 2010

I've an application where in am trying to show a slideshow directly on page load.. for that am using the following code

[Code]....

Its perfectly working on the dev environment but when deployed onto iis7.. am not able open the file..

I've given all folder rights for asp.net account and network service..

View 5 Replies

Configuration :: Diagnostics.Process.Start - Works In Development/debug Not Deployed?

Aug 27, 2010

Code]....

for example it just starts notepadn my development pc i'm using Win7 and when i deploy the app onto my local IIS7 it works and i can call notepadWhen i run debug mode with VS2010 it works too!

View 2 Replies

Configuration :: Win32Exception (0x80004005): Access Is Denied On Process.GetCurrentProcess().StartTime

Mar 11, 2010

I'm developing and maintaining an ASP.NET web site.

The site is hosted at the 3rd party company running IIS6.

Recently the hosting service provider has setup an additional IIS server and moved part of the applications to this new server. This moment, my application is installed on both old and new servers.

Although the hosting provider claims that IIS configuration on the both servers is absolutely equal, I get the following exception on the new server, while on the old one everything works like a charm.

[Code]....

[Win32Exception (0x80004005): Access is denied]
System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) +955768
System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) +396
System.Diagnostics.Process.GetProcessTimes() +67
System.Diagnostics.Process.get_StartTime() +31
ASP._1_aspx.Page_Load(Object sender, EventArgs e) in d:hshomeskatrix est4.skatrix.com1.aspx:8
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

According to the service provider in both cases my application runs under Network Service user account.

An additional observation: retrieving the "System.Environment.UserName"

shows "Network Service" on the old server and "IUSR_XXX" on the new one.

I loose my head trying to understand what is different and what I need in order to make the things working.

View 3 Replies

Configuration :: Building DataBase & All DataBase Object With Sample Data?

Jun 28, 2010

Recent we are deploy(Setup and Deploy) our Product which is develop in ASp.Net(C#) using SqlServer Here We Face one Problem i.e.

When we install the porduct there is no issue if we manually run the sqlScript file in sql server(manully we create the DataBase and All DataBase Object i.e. Table,StoreProcedure,Function,Views....& We are enter the Sample Data) But We know that is not the Right Approch.

Any one Can tell me the procedure "How to Building DataBase & All DataBase Object with Sample Data when we click the Install and set up file"

In Setup and Deploy wized it ask for any Dependence file for the application i have attach the Dependence file(.sql) but i am not getting any OutPut .

Is there any Command prompt Utility(SqlServer/VS Commandprompt) ?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved