Trying to get a prototype up and running


Author
Message
Marcia G Akins
Marcia G Akins
StrataFrame User (434 reputation)StrataFrame User (434 reputation)StrataFrame User (434 reputation)StrataFrame User (434 reputation)StrataFrame User (434 reputation)StrataFrame User (434 reputation)StrataFrame User (434 reputation)StrataFrame User (434 reputation)StrataFrame User (434 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
Hi All.

I have been doing Winforms apps using Strataframe for over 3 years. Now I have to work on a web app. I created a new solution with a business object library and a SF Web Application Project. I copied the SearchCustomers page from the sample web app, renamed everything appropriately for my prototype and tried to run it. All the controls referenced in the code behind give me the following error:

Error 1 The name 'lstResults' does not exist in the current context C:\StlCI_new\StlCI_new\StlCI_new\SearchProjects.aspx.cs 21 9 StlCI_new


All the labels give me this one:

Error 14 'SearchProjects' does not contain a definition for 'lblResults' and no extension method 'lblResults' accepting a first argument of type 'SearchProjects' could be found (are you missing a using directive or an assembly reference?) C:\StlCI_new\StlCI_new\StlCI_new\SearchProjects.aspx.cs 150 9 StlCI_new

One other bit of information: no intellisense shows up in the code behind for any of the controls on the page.

This has got to be something stupid.

Can anyone help me out here?

TIA.

Marcia
Edited 13 Years Ago by Marcia G Akins
Replies
Govinda Berrio
Govinda Berrio
StrataFrame User (206 reputation)StrataFrame User (206 reputation)StrataFrame User (206 reputation)StrataFrame User (206 reputation)StrataFrame User (206 reputation)StrataFrame User (206 reputation)StrataFrame User (206 reputation)StrataFrame User (206 reputation)StrataFrame User (206 reputation)
Group: StrataFrame Users
Posts: 94, Visits: 481
Marcia,

I just ran into this problem today.
To fix this, I went into the ItemTemplates folder for visual studio (C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp) and modified the template file in the SF_WebForm.zip archive.

The file I edited is: WebForm.vstemplate. At the bottom of that file there is an ExtensionWizard tag and within it there is a reference to the Microsoft.VisualStudio.Web.Application. For VS2008 I made sure that the version is 9.0.0.0. To do this I extracted the file out of the archive, edited it and then added it back to the archive and overwrote the old version.

I also did this in the template cache folder: C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplatesCache\CSharp\SF_WebForm_zip

I'm not using VS2010 yet, but it may be that the version in 2010 should be 10.0.0.0.

This fixed it for me.
Marcia G Akins
Marcia G Akins
StrataFrame User (434 reputation)StrataFrame User (434 reputation)StrataFrame User (434 reputation)StrataFrame User (434 reputation)StrataFrame User (434 reputation)StrataFrame User (434 reputation)StrataFrame User (434 reputation)StrataFrame User (434 reputation)StrataFrame User (434 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
Govinda Berrio (10/26/2011)
Marcia,

I just ran into this problem today.
To fix this, I went into the ItemTemplates folder for visual studio (C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp) and modified the template file in the SF_WebForm.zip archive.

The file I edited is: WebForm.vstemplate. At the bottom of that file there is an ExtensionWizard tag and within it there is a reference to the Microsoft.VisualStudio.Web.Application. For VS2008 I made sure that the version is 9.0.0.0. To do this I extracted the file out of the archive, edited it and then added it back to the archive and overwrote the old version.

I also did this in the template cache folder: C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplatesCache\CSharp\SF_WebForm_zip

I'm not using VS2010 yet, but it may be that the version in 2010 should be 10.0.0.0.

This fixed it for me.


Thanks for the information. I downloaded the most recent supported version of StrataFrame and installed it. That appeared to solve the problem for me. But this will definitely come in handy if I run into this in the future.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search