Re: Cannot load default.aspx

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



try repairing asp.net using aspregiis -I don’t quote me on the exact syntax

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Download OWC Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $15.00
Need a free copy of VSTS 2008 w/ MSDN Premium?
http://msmvps.com/blogs/alvin/Default.aspx
-------------------------------------------------------


"Lubomir" <Lubomir@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:AAF8E29E-630F-464C-8524-C39B10CCE843@xxxxxxxxxxxxxxxx
Hi,

I am using VS 2008.

I am working on a web site, with the code behind. Everything worked fine,
but from some reason, I started to get error message in a browser while
debugging the application: "Could not load type "MyPartialClassName"

"MyPartialClassName" is the class in the codebehind file in default.aspx.cs
file.

Page directive is :
<%@ Page Language="C#" AutoEventWireup="true CodeBehind="Default.asapx.cs"
Inherits="MyNamespace.MyPartialClassName" %>

When I changed CodeBehind to CodeFile, page was loaded but when conencted to
database I get error that IIS is not configured to communicate on port XX.

Before it all works fine with CodeBehind attribute. All stopped to work when
we changed compiler directive from Any CPU to X86. I think something has
changed in website VS project settings, but I am not sure what.

Do you have any ideas?

Thanks,

Lubomir

.



Relevant Pages

  • Re: Cannot load default.aspx
    ... try repairing asp.net using aspregiis -I don't quote me on the exact syntax ... I started to get error message in a browser while ... "MyPartialClassName" is the class in the codebehind file in default.aspx.cs ... When I changed CodeBehind to CodeFile, page was loaded but when conencted to ...
    (microsoft.public.dotnet.framework.aspnet)
  • Cannot load default.aspx
    ... but from some reason, I started to get error message in a browser while ... "MyPartialClassName" is the class in the codebehind file in default.aspx.cs ... When I changed CodeBehind to CodeFile, page was loaded but when conencted to ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: newbie to creating web controls
    ... when I try to set it in the click event in codebehind. ... >> cant get any properties working from codebehind. ... > Public Sub Emailer does not have correct error ... and see if you get an error message ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Binding Image to Field in Data Grid
    ... The codebehind file for a given ASPX page is normally a C# or VB.NET file ... class inherits from the codebehind class). ... So, if you have a page called WebForm1.aspx, the codebehind file would be ... >> from a databinding statement in the datagrid template column for the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Web Application vs Website Project
    ... generally, the web application builds the codebehind file into one dll, and page inherit from their codebehind class. ... to not have vs create a codebehind file in a web site, when you first create a page, uncheck "place code in seperate file". ... also how to set pages to use inline code always instead of code behind, in a website project VS seems always add code behind pages. ...
    (microsoft.public.dotnet.framework.aspnet)