RC2 failure: [InvalidOperationException: The view 'Index' or its master could not be found. The following locations were searched:

Environment:  Vista Business SP1; vs2008 Pro SP1; .NET Framework 3.5 SP1; ASP.NET MVC R2;
                     (compact frameworks 2.0 SP2, 3.5)

Clean install of vs2008

Project is VB ASP.NET MVC RC2 with Option Strict as Tools, Option pre-set;
execution was immediately after template generated the project; I have not
modified a single line of the ASP.NET MVC RC2 generated code.

 ______below _____ next line from bottom of error page ... 2.0 ???
Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074

Note:  Control Panel shows onle 3.5 SP1

 

 

 

Server Error in '/' Application.

The view 'Index' or its master could not be found. The following locations were searched:
~/Views/Home/Index.aspx
~/Views/Home/Index.ascx
~/Views/Shared/Index.aspx
~/Views/Shared/Index.ascx

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The view 'Index' or its master could not be found. The following locations were searched:
~/Views/Home/Index.aspx
~/Views/Home/Index.ascx
~/Views/Shared/Index.aspx
~/Views/Shared/Index.ascx

Source Error:

Line 10:         HttpContext.Current.RewritePath(Request.ApplicationPath, False)
Line 11:         Dim httpHandler As IHttpHandler = New MvcHttpHandler()
Line 12:         httpHandler.ProcessRequest(HttpContext.Current)
Line 13:         HttpContext.Current.RewritePath(originalPath, False)
Line 14:     End Sub

Source File: C:\Users\gerryLowryLocal\Documents\Visual Studio 2008\Projects\rc2vb\rc2vb\Default.aspx.vb    Line: 12

Stack Trace:

[InvalidOperationException: The view 'Index' or its master could not be found. The following locations were searched:
~/Views/Home/Index.aspx
~/Views/Home/Index.ascx
~/Views/Shared/Index.aspx
~/Views/Shared/Index.ascx]
   System.Web.Mvc.ViewResult.FindView(ControllerContext context) +105521
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +139
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +10
   System.Web.Mvc.<>c__DisplayClass11.<InvokeActionResultWithFilters>b__e() +20
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +251
   System.Web.Mvc.<>c__DisplayClass13.<InvokeActionResultWithFilters>b__10() +19
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +178
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +399
   System.Web.Mvc.Controller.ExecuteCore() +126
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +27
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +7
   System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase httpContext) +151
   System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext) +57
   System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext) +7
   System.Web.Mvc.MvcHttpHandler.VerifyAndProcessRequest(IHttpHandler httpHandler, HttpContextBase httpContext) +61
   System.Web.Routing.UrlRoutingHandler.ProcessRequest(HttpContextBase httpContext) +111
   System.Web.Routing.UrlRoutingHandler.ProcessRequest(HttpContext httpContext) +40
   System.Web.Routing.UrlRoutingHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) +7
   rc2vb._Default.Page_Load(Object sender, EventArgs e) in C:\Users\gerryLowryLocal\Documents\Visual Studio 2008\Projects\rc2vb\rc2vb\Default.aspx.vb:12
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074 <>c__DisplayClass11.b__e() at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass11.<>c__DisplayClass13.b__10() at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) at System.Web.Mvc.Controller.ExecuteCore() at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) at System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) at System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase httpContext) at System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext) at System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext) at System.Web.Mvc.MvcHttpHandler.VerifyAndProcessRequest(IHttpHandler httpHandler, HttpContextBase httpContext) at System.Web.Routing.UrlRoutingHandler.ProcessRequest(HttpContextBase httpContext) at System.Web.Routing.UrlRoutingHandler.ProcessRequest(HttpContext httpContext) at System.Web.Routing.UrlRoutingHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) at rc2vb._Default.Page_Load(Object sender, EventArgs e) in C:\Users\gerryLowryLocal\Documents\Visual Studio 2008\Projects\rc2vb\rc2vb\Default.aspx.vb:line 12 at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) [HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.default_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) -->



 


Gerry Lowry, Principal
Ability Business Computer Services ~~ Because it's your Business, our Experience Counts!
68 John W. Taylor Avenue
Alliston · Ontario · Canada · L9R 0E1 · gerry.lowry@abilitybusinesscomputerservices.com
0
gerrylowry
3/6/2009 12:08:58 PM
asp.net.mvc 4300 articles. 0 followers. Follow

3 Replies
3067 Views

Similar Articles

[PageSpeed] 16

I think you still have an option strict problem with VB ... I turned Option Strict Off in Tools, Options;
created a new vb rc2 project; touched no code; it runs.


Gerry Lowry, Principal
Ability Business Computer Services ~~ Because it's your Business, our Experience Counts!
68 John W. Taylor Avenue
Alliston · Ontario · Canada · L9R 0E1 · gerry.lowry@abilitybusinesscomputerservices.com
0
gerrylowry
3/6/2009 12:16:41 PM

wierd?????????  .... I turned Option Strict back ON in Tools, Options,
created a new VB project, ran it untouched, it works ????????????


Gerry Lowry, Principal
Ability Business Computer Services ~~ Because it's your Business, our Experience Counts!
68 John W. Taylor Avenue
Alliston · Ontario · Canada · L9R 0E1 · gerry.lowry@abilitybusinesscomputerservices.com
0
gerrylowry
3/6/2009 12:24:05 PM

minor correction:  I thought I was using vs2008 SP1 but was not; I've upgraded to SP1; still get the same error:
     Line 12:         httpHandler.ProcessRequest(HttpContext.Current)

WinDiff
shows both   ... \Default.aspx.vb  files to be identical.

WinDiff found a minor difference in .vbproj.user:
          <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">                 failing file
          <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}" xmlns=""> second file
Making the failing .vbproj.user == second file .vbproj.user did not resolve the problem.

 first.vbproj and second.vbproj have some interesting differences:

    In   <ItemGroup> :

    <Content Include="Shared\MicrosoftMvcAjax.js" />
    <Content Include="Scripts\MicrosoftMvcAjax.js" />

    <Content Include="Shared\Error.aspx" />
    <Content Include="Views\Shared\Error.aspx" />

    <Content Include="Shared\LogOnUserControl.ascx" />
    <Content Include="Views\Shared\LogOnUserControl.ascx" />

    <Content Include="Shared\Site.Master" />
    <Content Include="Views\Shared\Site.Master" />

This may be the problem ... "Shared" is in the wrong part of the solution tree.

Dragging the "Shared" folder inside of the "Views" folder caused the RC2 ASP.NET MVC
VB Option Strict version to succeed.

MORE  INFORMATION
Prior to the above fix, the tests in the failed version refused to build
although each time "Rebuild ALL" reported success.  After the above
fix, the 27 out of the box unit tests ran and passed.

CONCLUSION
This is a RANDOM bug, that nastiest form of BUG that drives many programmers
to radical alternative careers, for example, management.

There are TWO approaches to RANDOM bugs.  One is to hope they'll never come back.
The second is to forsake all other activity until the random bug has been exterminated.
Sadly, I suspect in this case, we will see the first approach applied to ASP.NET MVC.

 

Regards,
Gerry (Lowry)






Gerry Lowry, Principal
Ability Business Computer Services ~~ Because it's your Business, our Experience Counts!
68 John W. Taylor Avenue
Alliston · Ontario · Canada · L9R 0E1 · gerry.lowry@abilitybusinesscomputerservices.com
0
gerrylowry
3/6/2009 5:07:54 PM
Reply:

Similar Artilces:

Help with error: The view 'Index' or its master could not be found
I have an ASP.NET MVC app which runs fine on my dev machine, but when deployed, I get a "The view 'Index' or its master could not be found" error. Full details are: Server Error in '/XXXXX' Application. The view 'Index' or its master could not be found. The following locations were searched:~/Views/home/Index.aspx~/Views/home/Index.ascx~/Views/Shared/Index.aspx~/Views/Shared/Index.ascx Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and ...

''''''''''''''''''''
Name: haznen Email: haznenatyahoodotcom Product: Gran Paradiso Alpha 8 Summary: '''''''''''''''''''' Comments: '''''''''''''''''''''''''''''''''''' Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20061204 UGES/1.7.2.0 GranParadiso/3.0a1 From URL: http://www.mozilla.org/projects/granparadiso/ Note to readers: Hendrix gives...

'''''
Name: mario Email: ramar17atfastwebnetdotit Product: Gran Paradiso Alpha 2 Summary: ''''' Comments: K: Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2) Gecko/20070206 GranParadiso/3.0a2 ...

System.InvalidOperationException: The contract name '' could not be found in the list of contracts implemented by the service ''
I've created a svc wcf service and it all works fine.  I then created some a unit test proj and now i'm trying to test my service calls.  I found some helpful code that automates some of this.  However I keep receiving the following error:-  Failed DoSearch OTAUnitTests Class Initialization method UnitTests.ResourcingServiceTests.ClassInitialize threw exception. System.InvalidOperationException:  System.InvalidOperationException: The contract name 'IService1' could not be found in the list of contracts implemented by the serv...

'do' won't 'do' if '/'
Greetings to All from Au, Have a NetWare Perl 5.8.4 and wanted to tweak File\Spec\NW.pm to try and standardise on '/' separators. If I run a test script (t/uni/lower.t) with an unmodified NW.pm, it calls t/uni/case.pl, that, in case.pl, (when the path separators are '\'), the $file is '..\lib\unicore\To\Lower.pl' and the following code portion works, with $simple getting a returned table: sub casetest { my ($base, $spec, $func) = @_; my $file = File::Spec->catfile(File::Spec->catdir(File::Spec->updir, "lib", &qu...

SELECT failed because the following SET options have incorrect settings: 'ANSI_NULLS, QUOTED_IDENTIFIER'. Verify that SET options are correct for use with indexed views and/or indexes on computed colu
Hi, I am using Sql server 2005 as database server. I got this error. "SELECT failed because the following SET options have incorrect settings: 'ANSI_NULLS, QUOTED_IDENTIFIER'. Verify that SET options are correct for use with indexed views and/or indexes on computed columns." so can you help me. Thanks in advance Nirav Nayak...

'''
Name: L Lachowsky Email: e2brutus_10atyahoodotcom Product: Firefox Summary: ''' Comments: why duddn this surprise me... I change default server from IE to Mozilla, and then i get error messages. well, shud I decide to not get on my computer with Mozilla..or shud I risk security breeches with IE....hmmm at least i can get on the internet with IE Browser Details: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 From URL: http://hendrix.mozilla.org/ Note to readers: Hendrix gives no expectation of a response to this fee...

WSE: InvalidOperationException: Client found response content type of '', but expected 'text/xml'
Hello all,We have web service (v1.1 & WSE 2 sp 3) that is called by a web site. Everything works fine on dev and uat however on live the following error message appears: [InvalidOperationException: Client found response content type of '', but expected 'text/xml'.] System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +1486 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +217 MediationWeb.RegistrationSvc.RegistrationSvcWse.L...

Cannot search
I have multiple protals, on different servers and many of them have problems searching. I always get the following error...BTW this is a brand new install of DNN 3.2 and i am having the same problems. This is the exception i always get...I tried to re-index the search, it does succeed but i still can never perform a search :(Any help on this would be appreciated.TIA,Ahmed-----------------------------------------------------AssemblyVersion: -1Method: FileName: FileLineNumber: -1FileColumnNumber: -1PortalID: -1PortalName: UserID: -1UserName: ActiveTabID: -1ActiveTabName: AbsoluteURL: AbsoluteU...

Again with the 'reset' and 'can't be found' stuff...
Name: William Jones Email: jbillyjonesatyahoodotcom Product: Firefox Summary: Again with the 'reset' and 'can't be found' stuff... Comments: Hello Again FireFox, Listen...I'm just a simple guy, a 'dial-up baby boomer' who's had to learn the hard way all the way through. I recently sent a similar e-mail requesting assistance with this ridiculous and incessant 'pop up' that informs me that 'my connection has been reset', and/or, 'a problem locating page'....huh? I was just on the damn thing and even switching from one ...

Cast from type ''''DBNull'''' to type ''''String'''' is not valid.
How do I avoid getting this error: Cast from type ''''DBNull'''' to type ''''String'''' is not valid. I am trying to get values from the database into a form for updating using a Datareader, SQL is set to allow nulls for certain fields as they are not required but the only way I can get the form to display is by adding a space in SQL. Is there another way around this? Check if it is equal to DBNull.Value first and if it is, don't do the cast.Stanley Tan theSpoke Blog Where in the code does it need to go? I am using the following and it's the profile that isn't always requi...

table_info('','','','%') cannot return any types
I was recently confirming table_info special cases and discovered the case for getting table_types cannot work. table_info('','','','%') should return a list of table types but it returns a list of empty strings instead: my @types = $h->tables('', '', '', '%'); print "all types:\n", join("xxx\n", @types), "\n"; # should output something like: # "dbo" # "INFORMATION_SCHEMA" # "sys" # and actually outputs: xxx xxx It seems to be down to the following ...

The type '<class>' exists in both '<dll location>' and '<dll location 2>'
Hi. Has anyone come across this problem upgrading VS2003 to VS2005:The type '<class>' exists in both '<dll location>' and '<dll location 2>' Thanks! Hi TinaFMills,   Did you finish the process of migrate project form 2003 to 2005?   The error message means duplicate class name in different locations. Such as aspx pages, user controls, custom controls and so on. Please load the solution in Visual Studio IDE try to find the duplicate class. Edit->File and Replace->Find In Files (look in entire solution)    Sincerely,Benson YuMicrosoft Online...

The type '<class>' exists in both '<dll location>' and '<dll location 2>'
For some reason though it appears that one of my class files (_common.cs - in the App_Code directory) is being included in the WAP .dll file as well as when it compiles the App_Code at runtime.error CS0433: The type 'inlinehockey._common' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\25321638\9b5c4b00\assembly\dl3\3657f4e6\cd91aef5_4d5cc601\inlinehockey.DLL' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\25321638\9b5c4b00\App_Code.xad_ajc1.dll'  The error was not knowing what dll to use for the type w...

Web resources about - RC2 failure: [InvalidOperationException: The view 'Index' or its master could not be found. The following locations were searched: - asp.net.mvc

Resources last updated: 12/18/2015 3:36:13 AM