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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Dynamic compilation of aspx-files stopped working!

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


I recently ran into some strange problems. Changes to files that are not code-behind (and not gets compiled to a DLL) should not require you to recompile the whole website, and this has never been I problem for me. These should actually get compiled dynamically when you first access the resource, e.g. the first time when browsing an updated aspx-page in the browser. 

But yesterday, during development of a website, I noticed that even the smallest changes in html, javascript or anything in the .aspx-files doesn't get reflected when I save and reload the page in my browser. Rebuilding doesn't help either, actually I'll have to do a "Rebuild All" (in Visual Studio 2008) in order to see the changes. This applies to all aspx-files in my project.

I tried with minor changes on files in another web application project on the same server, and there it works as it should. Something must has happened to this particular application, but I cannot figure out what.
Do you have any ideas on how to solve this?

Best regards

View Complete Post

More Related Resource Links

Delete not working on List.aspx - out of box



I'am trying to use Dynamic data web site on my project. I have Visual Studio 2010 enf Framework 4.0. I create the default project with the wizard. I add my own Entity Data Model.

When I try to use the "delete" autogenerated button on List.aspx, on the table ServerSetting (see image below), I receive a null exception.  I have no custom code involved in this operation and cannot seem to determine what is Null.

Any help would be appreciated!



[NullReferenceException: Object reference not set to an instance of an object.]
   System.Data.Objects.Internal.ForeignKeyFactory.CreateConceptualNullKey(EntityKey originalKey) +30
   System.Data.Objects.DataClasses.EntityReference.NullAllForeignKeys() +722
   System.Data.Objects.EntityEntry.NullAllForeignKeys() +235
   System.Data.Objects.EntityEntry.Delete(Boolean doFixup) +77
   System.Data.Objects.EntityEntry.Delete() +9
   System.Data.Objects.ObjectContext.DeleteObject(Object entity, EntitySet expectedEntitySet) +169

MVC2 Music Store - How to get store controller - store.aspx working {genre names displayed}



<p>Select from <%: Model.NumberOfGenres %> genres:</p><ul> <% foreach (string genreName in Model.Genres) { %>

<li> <%: genreName %> </li>

<% } %>


MOST PEOPLE WILL BE USING VISUAL STUDIO 2008 sp1, to get this to work change the <%:, ONLY WITH SEMI COLONS, TO <%=

jqGrid with WebMethods in aspx.cs files



here is my code for jqgrid:

/// <reference path="jquery-1.3.2.js" />
/// <reference path="json2.js" />
/// <reference path="jquery.simplemodal.js" />
$(document).ready(function() {

Executing a job from a stored procedure stopped working

I've got a stored procedure in database A that calls the sp_start_job stored procedure in msdb as follows:   CREATE PROCEDURE xxxxx WITH EXECUTE AS 'domain\username'   AS   EXEC msdb.dbo.sp_start_job B'jobname' ;   RETURN   The domain\username is the in the database sysadmin role and the owner of the job.  To make this work originally, I had to change the msdb database to be trusted.   This worked for the past several months.   Now it doesn't work (perhaps after a reboot but not sure).  The error I get is "The EXECUTE permission was denied on the object 'sp_start_job', database 'msdb', schema 'dbo'   I looked to make sure that the account had grant execute rights and it does.  I tried setting it via GRANT statement and it was granted successfully yet the error still occurs.  I've tried changing accounts and anything else I can think of to no avail.   Any ideas how to troubleshoot this issue.  I've tried all the tricks I can think of.   Thanks - SM

jpg files will not display in gridview on aspx page

I have an image object in a template of a gridview The datasource of the image object evaluates to the path of the jpg file. However, the aspx page displays a little red x instead of the picture. How do I get the image to display/Frank learning vs 2005

Javascript at the end of aspx files. What is the benefit?

Hello,In one of the examples I saw a call to a JS function at the end of the aspx file.Like the following:<script language="javascript" type="text/javascript">   <!--    SetExternal();   // --></script>I was under the impression that the JS functions are either called on onlclick of button events or in the HTML Body tag with Onload.So when an aspx page loads then do you thin the following function which is at the end of the page will be called? and why do we put these functions at the end of the page?Thanks.

ASP.NET Dynamic Data Filtering not working

 Hello. I am trying to use this DLL to make searches on dynamic data pageshttp://www.codeplex.com/DynamicDataFilteringI pasted the following code, but nothing happens    <cc1:DynamicFilterForm ID="DynamicFilterForm1" DataSourceID="GridDataSource" runat="server">             <FilterTemplate>                                             <table>                <tr>                    <td>                        Nombre activo</td>                    <td>                          <cc1:DynamicFilterControl ID="DynamicFilterControl3

Breakpoints stopped working during debugging in vs.net 2005

I had the strangest bug yesterday while trying to debug in vs.net 2005.... I had an '05 web application.  I clicked the "Run" button to start debugging, and the webpage popped up fine.  I could run through the pages fine.  Everything seemed fine....UNTIL!   Until I tried to start inserting breakpoints into my code.  The application ignored them.  In addition, I noticed my little green visual studio "Start Debugging" arrow (which is normally greyed out while in debug mode) was green.  It was as if visual studio completely detached itself from my website I was trying to debug. After playing around with it for a while, I realized I also had a vs.net 2008 solution open as well.  My '08 solution wasn't in debug mode or anything, it was just sitting there open.  I just happened to close it, not thinking anything of it, and presto!  My 2005 debugger started working again! So basically, I can't debug an '05 solution (or at least a web solution, as that's all I tried) while I also have an '08 solution open.  Anyone know why?  Is there anything I can do to prevent this?   Thanks.  

how to make working WPF 2010 program make changes to SQL Server 2008 Express files

(1) I have a working WPF 2010 program that manipulates a table in SQL Server 2008 Express (2) the program does delete, update, select and insert correctly however in its own project file folder logbooklmk.mdf   logbooklmk_log.ldf (3) I want the actual SQL Server 2008 express files to be changed yes I know the issue is sharing and the copy option only applies to the local project files. I found this out by trying always copy, never copy and copy if newer. I probably have to change the .xsd folder to refer to the actual SQL Server 2008 Express file. Tried that once and it failed. Something about sharing not allowed.

WPF TreeView working with Image Files

Hi, I'm working with a TreeView in my WPF App to control images files in my disk. The ItemsSource of TreeView is binding with a dynamic List<T> like these: <TreeView ItemsSource="{Binding Path=Thumbnail,ElementName=Tree}" x:Name="treeViewDocument" Width="230" Height="500" Margin="0,0,0,10"> <TreeView.ItemTemplate> <HierarchicalDataTemplate ItemsSource="{Binding Path=MoreThumbnail}"> <DockPanel HorizontalAlignment="Center" VerticalAlignment="Center"> <Image Source="{Binding Path=MyImage}" Width="{Binding Path=MySize}"/> </DockPanel> </HierarchicalDataTemplate> </TreeView.ItemTemplate> </TreeView> in the code behind I have: private List<MeusItens> _MyImages; public Window4() { InitializeComponent(); } public List<MyImages> Thumbnail { get { if (_MyImages == null) { MyImages obj = new MyImages("C:\\Temp\\1.tif", "70"); _MyImages = new List<MyImages>(); _MyImages.Add(obj); } return _MyImages; } } public class MyImages { public MyImages(string strImg, string strSize) { MyImage = strImg; MySize = strSize; }

Suite Integration Toolkit executable has stopped working On Windows 2008 R2

I am not sure what else I can say about this except I seem to run into this error each time I attempt to install any .NET Related tool above 1.1. I have tried clean out all .NET installs to reinstall but I run up against this and at this point, I have a machine that is clean of .NET 2.0 through 4.0. I am unable to reinstall because I keep running up against this problem. I am not certain where to go from here Problem signature:   Problem Event Name: APPCRASH   Application Name: setup.exe_Microsoft® Visual Studio® 2008   Application Version: 9.0.30729.1   Application Timestamp: 488f1f5c   Fault Module Name: urlmon.dll   Fault Module Version: 8.0.7600.16385   Fault Module Timestamp: 4a5bdf64   Exception Code: 80000003   Exception Offset: 0008b5df   OS Version: 6.1.7600.   Locale ID: 1033   Additional Information 1: 3da0   Additional Information 2: 3da0da3513034f247aa571ff6433c6a8   Additional Information 3: efee   Additional Information 4: efee7faa0523fea9d1582687f878296e Read our privacy statement online:   http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409 If the online privacy statement is not available, please read our privacy statement offline:   C:\Windows\system32\en-US\erofflps.txtN

webserver40.exe has stopped working

I've just upgraded a visual studio.net 2003 project (asp.net 1.1) to visual studio.net 2010 (asp.net 4.0). I'm encountering a problem with viewing Crystal reports. I'm using Visual Studio Development Server as a Web Server. When I try to create a new report (via code that worked fine previously) the line below causes the webserver40.exe to crash. Protected WithEvents MyRep As New CrystalDecisions.CrystalReports.Engine.ReportDocument I've got Crystal Reports 11 installed. Thanks in advance for your help with this matter. Lee    

Create dynamic div not working in mozilla but it working in ie brower

Hi Friend,I am create dynamic div in javascript innerHTML It working in ie browser but it is not working Mozilla FF. It create the innerHTML body in FF.. but not showing dynamic controls.Any body have idea about this..Thank in advance..RegardsDeeptech

MS Filter pack for Zip files content search not working

I am facing a problem related to Zip files content search. Searching of content inside zip files doesn't return in search results. But searching for zip file name returns filename in search results. I look into Crawler log, all it says is:   Steps I followed to install MS Filter pack: Installed MS Filter Pack 1.0 (x64) http://support.microsoft.com/kb/946336/en-gb In Search Administration page added "zip" in File types Add Reg subkey under : "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Setup\ContentIndexCommon\Filters\Extension\" for ".zip" with value ={20E823C2-62F3-4638-96BD-90F4F6784EBC} Stop and Start oSearch Run full crawl of content sources Can you please advise or have any tips you got to resolve this. Thanks http://portal/testzip.zip Crawled (The filtering process could not load the item. This is possibly caused by an unrecognized item format or item corruption. )

Katmai SSMS - Intellisense stopped working

HiI was wondering if anyone has had a similar problem. I have been happily using the Intellisense features of Katmai without any problems for a month now. However, a couple of days ago, it stopped working. I have tried numerous things to revive it including deleting everything under: -%appdata%\Microsoft\Microsoft SQL Server%userprofile%\Local Settings\Application Data\Microsoft\Microsoft SQL ServerHKCU\Software\Microsoft\Microsoft SQL Serverand restarting SMSS but I had no success. Tbh, I am not even sure where Intellisense cache is kept?Anyone have any suggestions?Thanks in advance.Blair
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