Solved

ASP.NET program stopped working mysteriously

Posted on 2014-09-15
2
559 Views
Last Modified: 2014-09-15
I hired a programmer to write code in ASP.NET. The code was working last week. Now when I run the code, I get an error:
The directory '/App_Code/' is not allowed because the application is precompiled.

The code is to process payments with SAGE PAY on a website. The server is now running Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1025

I removed the /app_code folder and received a different error:
The file '/payment.aspx' has not been pre-compiled, and cannot be requested.
 
I have tried to get in touch with the programmer, but he has not yet responded (he might still respond...)

WE are dealing with a program that used to work.

I understand bits of ASP.NET, but not a lot. I do not know if the programmer delivered to me a compiled program or not. I do see a program payment.aspx.cs which contains regular code.

Any suggestions to get this work would be most appreciated.
0
Comment
Question by:Lev Seltzer
2 Comments
 
LVL 12

Accepted Solution

by:
Ramkisan Jagtap earned 500 total points
ID: 40322910
Restore/create  the app_code back to the location.  Make a backup and delete the precompiled.config file.
Check if it works then.
0
 

Author Closing Comment

by:Lev Seltzer
ID: 40322931
I have deleted the file "PrecompiledApp.config" and put back the app_code folder and I no longer get this error.

Thank you.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This video discusses moving either the default database or any database to a new volume.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now