Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi Guys,

when I create a new ASP.NET Project, VS copy all Files to the IIS Folder but following error comes:

 

The class "WebForm1.aspx.cs" specified as the codebehind for "WebForm1.aspx" could not be loaded. Make sure that the codebehind attribute in the page or control directive properly references an existing code behind file.

 

Hope you can help me, all thinks work but not this :( He creates me WebForm1.aspx but not WebForm1.aspx.cs.

 

:mad:

  • Moderators
Posted

You said "when I create a new ASP.NET Project, VS copy all Files to the IIS Folder"

 

I don't understand why does it Copy? Have you tried to create a new project and point directly to the IIS folder?

Visit...Bassic Software
Posted

That's not a problem, when you create a new Web Project VS creates it in the IIS and saves a local copy of it in

C:\Documents and Settings\<user logged in>\VSWebCache\<server name>\<project name>\<page name>.aspx

 

When I started using .NET I tried to keep the project on my computer, but there are no options for it, so if you're working on a remote server this is the place to find your project

Fat kids are harder to kidnap

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...