Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 12, 2010 07:31 PM by Meridius
Dec 31, 2009 12:09 PM|LINK
I have transfered a VS2008 Web application project from a Vista PC to a Windows 7 PC (both 32 bit) by getting it from VSS - I do this frequently beftween XP and Vista PC's for all my VS projects. The application compiles on the Win7 PC, and I can publish
it to a server (running Windows 2003) and then run it on that server, but I can't run it in the development environment on the Win7 PC. The web site displays "The Specified module could not be found.", but doesn't say what module.
In the development environment, intellisense shows the same error on every aspx file in the @ Page line, i.e.
I suspect I've missed a step in configuring something, but I can't figure out what. I'd appreciate some suggestions.
Dec 31, 2009 01:37 PM|LINK
Are you able to run the application through IIS on your Windows 7 machine?
Dec 31, 2009 02:03 PM|LINK
IIS isn't installed on the PC. Most of our development PC's do not have IIS installed (since VS2005). I will set it up and and try it and let you know on Monday.
Dec 31, 2009 08:14 PM|LINK
If IIS is not installed, then there's a chance that ASP.NET is completely configured to run as well.
Jan 04, 2010 06:24 AM|LINK
I installed IIS on the Win7 PC, and published the site from VS2008 to the same PC, and got the same problem. The first time I published it it said I needed to install the IIS 6 Metabase and IIS 6 Configuration Compatibility, ASP.NET and Windows Authentication
components of IIS. I did this and was then able to publish, but I get the same problem. Is it possible that Win7 is missing components needed by VS2008? Does it need the dot net framework 1.0 or 1.1 installed? The web application has some assemblies that might
need 1.1, but these aren't used when the app starts.
The web app uses forms authentication. The startup page is default.aspx, and this forces it to load the login.aspx page first. Neither of these pages has any 3rd party components or anything special that I can think of.
Jan 04, 2010 07:57 AM|LINK
I didn't notice this before: I am getting errors on some unmanaged (c++) modules:
Error 208 Unable to load referenced library 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\9d14922d\_shadow\f8f95988\3316044598\30032737\CVS Mac.dll': System Error &H8007000b& C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\root\9d14922d\_shadow\f8f95988\3316044598\30032737\CVS Mac.dll
This dll is part of the project, and is in the bin folder. Does Win7 prevent the app from using unmanged code?
Jan 05, 2010 02:53 AM|LINK
Did this dll have any dependence that was not copied from your old machine? ASP.NET cannot load the library without its dependences.
I look forward to hearing from you.
Jan 05, 2010 06:33 AM|LINK
I removed the unmanaged code, but I still have the original problem: I can compile the web application with no errors, and I can publish it to a Windows 2003 server, and it runs on the server, but not on the local Win7 PC, even after installing IIS (which
isn't necessary on XP or Vista). I suspect that the problem could be that a component requires the dotnet 1.1 framework. Is it safe to load this on Win7? Will I need to repair ASP.Net after loading it? Or am I on the wrong track, and the problem is something
Why do I get the same error message in Intellisense when I put the mouse over the @Page line in the aspx file? It says the specified module can't be found. The codebehind file is there and the class is defined, and there are no compiler errors with the module,
so I can't understand why it says it can't find it.
I created a simple web app, and this does run. The only difference I noticed in the test app is that the @ Page line didn't include the "MyWebApp." prefix in the Inherits part. I tried this - I changed:
but it made no difference.
There is probably something simple I'm overlooking, but I just can't see it.
Jan 05, 2010 08:53 AM|LINK
Thanks for your response.
"MyWebApp" is the root Namespace of your ASP.NET web application.
Please try to rebuild your ASP.NET web application and make sure the application dll is in your ASP.NET web application's Bin folder.
Jan 05, 2010 09:37 AM|LINK
I do a Rebuild Solution every time I make a change. It creates MyWebApp.dll in the bin folder each time. If I publish to IIS on the local PC, this assembly gets copied to the bin folder in inetpub\wwwroot\mywebapp\bin. Whether I run it in Visual studio (e.g.
http://localhost:64120/Default.aspx) or from IIS (http://localhost/MyWebApp/Default.aspx), I get the same error.
If I publish from the Win7 PC to a different PC, i.e. a server running Windows 2003 (http://TestServer/MyWebApp/Default.aspx), it works. Windows 7 is missing something that Windows XP, Vista and Windows
2003 all have. I am guessing Framework 1.0 or 1.1, but I don't want to install it unless I know that is the case, and I can do this without corrupting the .Net configuration on this PC.