Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

The file '/Default.aspx' has not been pre-compiled, and cannot be requested.

Posted on 2008-11-06
7
Medium Priority
?
4,802 Views
Last Modified: 2013-11-08
Trying to do a patch release.

Site built with Web deployment projects.  It is set to be not updatable (which I believe means it will compile everything into a DLLs right?).

 I am trying to update a 3rd party dll.  I go into every bin folder that has it and copy the newest version into each folder.

I checked my web.config file to ensure that my 3rd party dll does not have version specified in it, which it doesn't.  We are not using multilpe version of the dlll.  One version only.

When I try to run the site I get

The file '/Default.aspx' has not been pre-compiled, and cannot be requested.

What does this mean and how can I resolve it?


Thanks,


Angela
0
Comment
Question by:angelalaw
  • 3
  • 3
7 Comments
 
LVL 20

Expert Comment

by:Juan_Barrera
ID: 22898988
You need to first recompile, and then redeploy, the site with the new .dll. You can't just copy and paste it.
You get that error because the site was compiled against the older version of your 3rd party dll.
0
 

Author Comment

by:angelalaw
ID: 22903648
Thanks so much for your response :)

Is there anyway to release patched versions of it?

Ie windows constantly updates there DLLS... Many pieces of software use those DLLs.  When windows updates your machine, you are not required to recompile every piece of software that is installed inorder to get it to work.

This is the scenario I want to do?
0
 
LVL 20

Expert Comment

by:Juan_Barrera
ID: 22909346
I know what you mean, but if the application is precompiled, it used a specific version of the 3rd party library while compiling. It's like the 3rd party dll becames part of your dll.
A way to "patch" it, would be to have separate projects, thus separate .dlls, instead of one big application. Then, you can deploy smaller projects.
Another way, NOT recommended, would be to just copy your site, uncompiled. ASP.NET compiles files on the fly if needed, so that why you can do it this way.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:angelalaw
ID: 22918082
Hi Juan,

Right now we have 6 different projects in one solution.  Each having this DLL in its bin directories.

When I look at the output for the release folder for the entire site.  I see it still has the third party dll in its bin directory.  So, it doesn't appear to be merign the thrid party dll in with the overal projects.

Again I really appreciate your help,

Angela
0
 
LVL 20

Accepted Solution

by:
Juan_Barrera earned 2000 total points
ID: 22918141
Angela,
It's not merging "per se", meaning that is not integrating the dll into yours, as in one file.
What is happening is that the code in your project that references (uses) that 3rd party .dll "knows" which assembly version of it was compiled against, so, if you just change the dll without updating those "references" (meaning: recompile), it will fail.
That's what I wanted to explain before, maybe the part "3rd party dll becames part of your dll" wasn't the best way to explain it, but you see what I meant now.
0
 

Author Closing Comment

by:angelalaw
ID: 31513903
Thank you
0
 

Expert Comment

by:reacharum
ID: 26284631
remove your asp.net templorary files and runit in prod.
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…

580 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