Asp.net - IIS Application Pool Crashes When Using Context.Server.Execute?

Apr 13, 2012

I am having an issue with an ASP.Net page I am writing and struggling to diagnose why this page is failing.

I am trying to do this:

Dim st As New StringWriter()
Dim strURL As String = "CourseProgramme.aspx?id=3733"
Context.Server.Execute(strURL, st)
txtNotes.Text = st.ToString()

The aim here is to get the HTML back for the page that has been specified in strURL and then display it in a textbox. However when I run this code it crashes the ApplicationPool in IIS and when I look in event viewer I see this error message:

A process serving application pool 'blueprintdev' suffered a fatal communication error with the Windows Process Activation Service. The process id was '5284'. The data field contains the error number.The strange thing here is that in another page I do this code which works fine:

Dim strDutyStartDate As Date
strDutyStartDate = TextboxDutyStartDate.Text
Dim st As New StringWriter()

[code]....

As far as I can see other than the URL I am passing, which does exist, I cannot see a difference between the two.The page I am developing is in ASP.Net with .Net 4.0 however in the website there are some classic ASP pages. IIS is running at version 7.5.7600.16385 on Windows Server 2008 R2 64Bit.So far I have tried setting the application pool to run in 32bit mode but that causes errors in other areas and the site will not load.

View 1 Replies


ADVERTISEMENT

VS2010 Crashes When Selecting Choose Items In Toobox Context Menu

May 26, 2010

VS2010 Professional crashes when I select Choose Items from the toolbox context menu (right click). All has been working well since it was installed in March but just suddenly started with this behaviour. I had an issue with one of my apps which caused a total VS freeze at about the same time this issue started but the app is now working correctly.It had stopped me from using VS2010 and I reverted to vs2008 but that has developed a bug which prevents me from creating / accessing any data connections. A bit stuck now.I have removed and installed VS2010. Initial reinstall attempts failed due to unverified msi file (??). However, I have now successfully installed VS2010 back on the machine. Crash problem still remains.

View 4 Replies

C# - Difference Between Worker Process,application Pool And Application Domain?

Apr 20, 2012

explain what is the difference between worker process,application pool and application domain?or application domain and application pool are same?

View 2 Replies

Programmatically Set An Application Pool To 32 Bit (IIS7)?

May 31, 2011

How can I set an application pool to 32bit in IIS7 when creating it?I'm creating the app pool with the below function

[Code]...

View 1 Replies

Assign Virtual Directory To Application Pool?

Mar 14, 2011

i want to assign a virtual directory to application pool using vb.net.how to do this programatically in vs 2008.

View 11 Replies

Application Crashes After Few Hours?

Mar 27, 2011

I am writing a system that utilizes the Timer to execute a command after an interval of three seconds. The command is to send a trigger to my RFID reader and hence the program will then decode the received data and changed it to information. It runs fine for the first few hours, but it will crash after that and the error given is an "System.NullReferenceExeption - Object reference not set to an instance of an object." error. Initially, i thought that it might be something that relates to my comobobox selected index change event that might be causing the crashes, but yet the application is crashes after i removed the section.

I fail to find the reason of the crash, even after spend fewing days finding the memory leak or some other events that might cause the crash.

I have insert TRY CATCH METHOD, just to catch the exeption error message that might cause by one of the codes, but still it doesnt show me.

View 1 Replies

Application Crashes For Other Users

Jun 8, 2010

I recently finished an application which I spent a long time making, but when I sent it to my friends so they could beta test, everyone single one of them said it stopped responding on start up. I took the .exe out of the project>bin>debug>application.exe and thats what I gave them, and it doesn't crash for me, so i was wondering what might be causing it to crash, or if they would need extra files for it to work properly?

Also, when my friend opened it, he says he got an error that says:
Name: Microsoft .NET Error

View 1 Replies

Application Crashes On Client?

Nov 2, 2009

I have created a program in Visual Basic 2008 Express Edition, and it runs fine on my computer, but on client computers (which do have the .NET |Framework installed), it crashes. I have ran Win dbg, and it says the program encountered a break instruction exception. I have googled a lot, but can't make the program work on client computers.

View 6 Replies

Console Application Crashes?

Apr 24, 2012

i have created a very simple console application in vb.net that emails me some info from the db daily. everythign works in my dev environment, however when i move it out to production and try to run the executable, i get the following error message:"A problem caused the program to stop working correctly. please close the program"i have put in some exception checks in the code:

Dim output As String
Try
output = FormatIndividualRecords(False)

[code].....

View 1 Replies

Application Crashes When Use MSFlexgrid In 64 Mode?

May 21, 2010

In my application (VB2008),I am using MS flex grid and it was workingfine on 32bit mode. When I tried to compile the same code base in 64 bit ,it crashes the application.

View 2 Replies

Application Crashes Without Specific Error

Oct 16, 2010

I developed one application in VB.Net 2010. It worked fine on my laptop.[code]...

View 1 Replies

VB Application Crashes When Trying To Show The Next Form

May 21, 2009

I have a VB application in .NET Framework 2.0 and I'm using VS 2008 Professional for development. The application is running without any problem on some PCs and it's not running on one of the PCs. To make sure that nothing is wrong with the that specific PC, I tried to reproduce the issue on my machine. So I formatted my PC and reinstalled everything. After installing .NET Framework and required drivers, the ran the application i got the same error. Then I installed VS 2008 and open the project to debug my code and then I realized that the exception is being thrown on this line:

********************************
Private Sub btnEnterRecords_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEnterRecords.Click
' Dim frmNext As New frmIncident()

[Code].....

View 1 Replies

32 Bit Application Crashes When Exiting On Windows 2008 64 Bit

Jan 4, 2011

We have an application that works well on XP/Pro, Vista, Windows 7, Windows 2003 Server, Windows 2008 Server (32 bit) but is problematic on Windows 2008 Server (64 bit). The application uses an unsigned activeX control which may or may not be related to the problem. To install we need to add the program name and regsvr32 as DEP exceptions. Once that is done the application installs correctly and operates normally except when the application closes.

If a user clicks the 'exit' button our code basically says 'unload me' (where me = the main form of the application) and there is no code in the form_unload section of the program.

Everything works well on every Windows platform except Win 2008 64 bit where we get

APPCRASH
Application Name: PDFPrint.exe
Application Version: 10.10.0.18
Application Timestamp: 4d238253

[Code].....

After we continue to close the program we see a message box with run time error 216 at 00002B24 message.

View 2 Replies

Application Crashes At Run Laptop, But Works On Netbook?

Jul 2, 2010

I seem to have a problem with an application i made. I hope you can help me with this as it has puzzled me for awhile now.

[Code]...

View 7 Replies

Application Crashes When Calling Embedded Resources?

Jul 3, 2009

I'm writing a console application in Visual Basic 2008 Express. I added several text files to my project as resources. Specifically... I went to my project's "Properties" page and selected the "Resources" tab. I clicked the "Add Resource" dropdown and chose "Add New Text File". I entered some simple text and saved the file as "Welcome.txt". I built the entire solution.n my code, I use console.writeline(My.Resources.Welcome) to display the text

View 1 Replies

Application Crashes While Using GetKeyboardState Win32 API In 64 Bit Mode?

May 20, 2010

Iam using GetKeyboardState API in my application for getting keyboard state . it was working fine for win32 applicati9on. When I moved to 64 bit application gets crahes without popping any exception message.my sample code is as given below:

Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Integer, ByVal dwExtraInfo As Integer)
Private Declare Function GetKeyboardState Lib "user32" (ByRef pbKeyState As Byte) As Integer

[code].....

View 2 Replies

Application Stopped Working And Just Crashes On Startup?

Sep 12, 2009

Application stopped working and just crashes on startup?

View 11 Replies

Loaded PDF In AxAcroPDF Crashes When Closing My Application

Jan 14, 2009

I have a small application (in VB.NET 2008) which gives the user the option to open a PDF document. This document is stored on a mapped network drive and is loaded in to the AxAcroPDF Control.

When closing my application I get the following message

The instruction at "0x0700609c" referenced memory at "0x00000014". The memory could not be read.

I've been google-ing this error message, but seen only a lot of problems, but no solutions.

I also tried using the WebBrowser Control, but this gives the same error.

View 2 Replies

Serialport Datareceived Crashes Closing Application?

Jul 8, 2011

I have an application with serial port datareceived event. My instrument sends me aprox.00bytes every 1 second. Which I then process and update few textboxes on the main formRecently my application started crashing if I press close button.I am guessing form_closing closes serialport at the same time datareceived event triggers in which the sp1.bytestoread causes the crash.1. I added synclock in datareceived and in form_closing.Within synclock in form_closing I removed datareceived handler.

View 8 Replies

Access Database Engine 2010 Crashes Application

Apr 8, 2011

I have a vb.net 2005 application that connects to an access database. I use Access Database Engine 2007 to connect to to this database.

Everything worked fine until i install MS Office 2010. After this, the application started to crash, returning the error 'application has stopped working'.

I've a Windows Seven Enterprise SP1 32bits.

When i debug the application, visual studio also crashes. I get the following error, closing an OleDbConnection: 'vshost.exe stopped working'.

I decided to run some tests. I installed my application on 2 virtual machines: a windows xp sp3 and a windows 7. When i installed ACE 2007 everything worked fine, but when i installed ACE 2010, thats when the problems began. This behavior ocurred on both machines.

View 5 Replies

Application Crashes For Some (but Not All) Customers When Clicking A Listbox After Printing?

Feb 3, 2011

We have a rather large VB.NET accounting application that crashes occasionally for some customers. I have now been able to reproduce this particular almost 100% in my test nvironment using certain data. The crash happens when clicking a list box after printing a report. The form involved has a list box listing available reports. You select one or more reports from the list box and click the print button. After printing, if you click the list box again, the program crashes, with an exception that does not seem like one VB.NET should even be able to produce.The exception message is: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."The call stack is:

1. System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
2. System.Windows.Forms.NativeWindow.DefWndProc(Message& m) [IL offset: 0x3e]

[code]....

View 12 Replies

"Application Pool Exceeded Its Job Limit Settings"?

Apr 27, 2009

my code caused "Application pool exceeded its job limit settings"when doing bulk update.My hosting provider told me that my code caused memory exceeded its limit.

[Code]...

View 1 Replies

.net - Why Does A Large Amount Of AppSettings Calls To A None Existent Key Cause Application Crashes

May 23, 2012

There is a very strange problem with a Windows Service I am working on that I would like to understand why it occurs. The service loops every 5 minutes and then within that loop it loops through keys containing webservice URLs that are numbered such as:

<add key="URL.1" value="http://dummy1.com/Service.asmx"/>
<add key="URL.2" value="http://dummy2.com/Service.asmx"/>
<add key="URL.3" value="http://dummy3.com/Service.asmx"/>

The code that does this check is:

If String.IsNullOrEmpty(AppSettings("OM." & intCount & ".Name").ToString) Then

When it hits a key that doesn't exist an exception is thrown and the service stops and waits for 5 minutes until the next loop.This usually works great but every week or two the Windows service will crash on that line without any Exception. The application log has a line from before that line but nothing after, none of the Try Catches are hit (the main one is catching the base "Exception" class).In the Event Log for Windows is the following:

Faulting application name: MyService.exe, version: 1.1.2.0, time stamp: 0x4fa22a24
Faulting module name: KERNELBASE.dll, version: 6.1.7601.17651, time stamp: 0x4e211319
Exception code: 0xe053534f

[code]....

The weird part is that this line of code is executing fine 300 times a day for at least a week which is around 2000 times before that one time it causes a full crash of the application. why this is occurring? I have changed that line of code to not rely on Exceptions and it has been working fine for a week now with no crash so could be something to do with too many Exceptions - maybe causing a stack overflow?

View 1 Replies

VS 2008 : Random Application Crashes: Exception Code: E053534f

Jul 26, 2011

the error code points to a Stack-Overflow I can not pin the offending code down because the software works faultlessly on some computers after deployment but on others the crash occurs when a Gantt chart gets redrawn after changing activity dates. All the computers are situated on the same LAN and connect to the same SQL server 2008 database.The application has been developed with Visual Studio 2008.

I used the same install disk on all the computers and they are all using the same date/time format. The crashes occur on both 32 - and 64 bit machines.

The error message:
Stopped working
Problem signature:
Problem Event Name: APPCRASH
Application Name: Pfisterer Project Manager.exe

[code]....

View 2 Replies

Execute A String To Server?

Dec 11, 2010

The string is all correct (minus the RID and pin I x'd out) but the USER would need to add the WEBSITE as show where I have the textbox1.text below

I realize its in Parathesis, so that is not going to work, but not sure how to send this entire string with a new website entered from each user .[url]....

View 1 Replies

Visual Studio 2010 - .net Application Works With Files Dragged Onto The Exe But Crashes If There's A Space In The File's Path?

Jun 15, 2011

I'm developing an application in vb.net. You drag any type of file onto the exe, and a window pops up with some options for the file, then it saves the file to a different location, works some SQL magic, etc. It works great for the most part. The only issue I've found is that if the path of the file contains any spaces, the application will crash immediately with the error window:[URl]..I'm using: Private filename as String = Command$ This is located right inside my form's class declaration, not within a sub/function.Without this line, my program runs fine (although useless, without accessing the file).I've also tried (I think this was it, I don't have the code with me at the moment): Private filename as String = Environment.CommandLine So, in vb.net, is there a way to drag a file onto an exe and use that path name, even if there are spaces in the path name?

View 2 Replies

SQL Server Stored Procedure And Execute

Apr 29, 2012

This is a bit old-contents to be discussed but I need someone who can explain me how to create stored procedure in SQL Server for returning a value from procedure, example:[code]Then I need the name of its customer and the address instead.I need to make it as a stored procedure and show me how to execute it on VB.NET. Perhaps we assume that the name will be prompted to LABEL1.TEXT and the address will be prompted to LABEL2.TEXT. I've improved this SQL-Server Stored Procedure Using return but I have nothing to return after I execute it.[code]

View 1 Replies

Communications :: Execute Command Remotely On Server

Mar 16, 2010

I have been searching for a good code example that will place a small server program on my server and then allow me to use a client on my pc that will tell the server program to run a batch file on the server.

I thought this would be simple... I am finding it not that easy.

We have a server that users need to execute a command on however we do not want them to have login rights to the server so this will allow them to execute the batch file without having to log in.

View 1 Replies

Execute WinForm App Server Side From Program?

Oct 28, 2009

Im trying to execute a winform app from my website (asp .net), this winforms app its execute in the server side for processing information and send email, but i need to pass some arguments, from the webpage i know how to do it, but im asking how to catch the arguments in the winform app?[code]...

View 4 Replies

Sql Server - Why Can Only Execute A Stored Procedures Two Times

Nov 24, 2009

In my VB.NET code I construct a ODBC.COMMAND to call a stored procedure that eliminates a record from table in SQLSERVER 2008, I use this code in a FOR NEXT loop, it may contain 1 to 20 records_ID to pass to stored procedures to delete the records.

This code work well for several months, but since the last compilation it only deletes the first 2 records.

In debug mode in VS 2008 IDE works fine.

VB.NET CODE
''' <summary>
''' DELETE CANCELED CUSTOMER ORDERS
''' </summary>

[Code]....

View 2 Replies







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