473,399 Members | 3,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Switching to ASP.NET 2 cased exception

I just switch my asp application to .net 2 and got this error. Any reasons
why?
Thank you.

Server Error in '/RAFEmployee' Application.
--------------------------------------------------------------------------------

The specified module could not be found. (Exception from HRESULT:
0x8007007E)
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.IO.FileNotFoundException: The specified module
could not be found. (Exception from HRESULT: 0x8007007E)

Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[FileNotFoundException: The specified module could not be found. (Exception
from HRESULT: 0x8007007E)]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase,
Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark,
Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence
assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String
assemblyName, Boolean starDirective) +32

[ConfigurationErrorsException: The specified module could not be found.
(Exception from HRESULT: 0x8007007E)]
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String
assemblyName, Boolean starDirective) +596
System.Web.Configuration.CompilationSection.LoadAl lAssembliesFromAppDomainBinDirectory()
+3479065
System.Web.Configuration.CompilationSection.LoadAs sembly(AssemblyInfo ai)
+46
System.Web.Compilation.BuildManager.GetReferencedA ssemblies(CompilationSection
compConfig) +177
System.Web.Compilation.BuildProvidersCompiler..cto r(VirtualPath
configPath, Boolean supportLocalization, String outputAssemblyName) +180
System.Web.Compilation.ApplicationBuildProvider.Ge tGlobalAsaxBuildResult(Boolean
isPrecompiledApp) +3446645
System.Web.Compilation.BuildManager.CompileGlobalA sax() +51
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +462

[HttpException (0x80004005): The specified module could not be found.
(Exception from HRESULT: 0x8007007E)]
System.Web.Compilation.BuildManager.ReportTopLevel CompilationException()
+57
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +612
System.Web.Hosting.HostingEnvironment.Initialize(A pplicationManager
appManager, IApplicationHost appHost, IConfigMapPathFactory
configMapPathFactory, HostingEnvironmentParameters hostingParameters) +456

[HttpException (0x80004005): The specified module could not be found.
(Exception from HRESULT: 0x8007007E)]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +3426871
System.Web.HttpRuntime.EnsureFirstRequestInit(Http Context context) +88
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +149

--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42
May 1 '06 #1
4 1748
Hi Shimon,

Welcome to the ASP.NET newsgroup.

From your description, I understand you've converted an ASP.NET 1.x project
to ASP.NET 2.0, after that, when you try running the converted application,
it report FileNotFound runtime exception, correct?

Based on the review of the error message and call stack you provided, the
problem seems occur at the Application's initialize time and the runtime is
looking for the global.asax file. So I think you can check the global.asax
file in your application, check whether it is still in the application root
dir, and if you've used codebehind for it, check the App_Code dir to see
whether the codebehind class is there.

Please feel free to post here if there is any other finding or particular
problem.

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

May 1 '06 #2
Thanks Steven
I found that problem was with config file.
Thanks
Shimon.
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:Z3**************@TK2MSFTNGXA01.phx.gbl...
Hi Shimon,

Welcome to the ASP.NET newsgroup.

From your description, I understand you've converted an ASP.NET 1.x
project
to ASP.NET 2.0, after that, when you try running the converted
application,
it report FileNotFound runtime exception, correct?

Based on the review of the error message and call stack you provided, the
problem seems occur at the Application's initialize time and the runtime
is
looking for the global.asax file. So I think you can check the global.asax
file in your application, check whether it is still in the application
root
dir, and if you've used codebehind for it, check the App_Code dir to see
whether the codebehind class is there.

Please feel free to post here if there is any other finding or particular
problem.

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

May 1 '06 #3
I was too fast to post that problem was in config file.
What I did was following.
I just switched IIS setting for asp.net framework from 1.1 to 2.0. I didn't
recompile any code. That is a production server and I didn't want to touch
anything.
I am planning to use new Web Application Project in order to migrate from
1.1 to 2.0 as it most recommended way to go. As far as I understand I won't
need app_code folder and don't need to publish aspx.cs files.
I do have global.asax but no code in app_code folder ( don't even have the
folder as I explained.)
Thank you,
Shimon.
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:Z3**************@TK2MSFTNGXA01.phx.gbl...
Hi Shimon,

Welcome to the ASP.NET newsgroup.

From your description, I understand you've converted an ASP.NET 1.x
project
to ASP.NET 2.0, after that, when you try running the converted
application,
it report FileNotFound runtime exception, correct?

Based on the review of the error message and call stack you provided, the
problem seems occur at the Application's initialize time and the runtime
is
looking for the global.asax file. So I think you can check the global.asax
file in your application, check whether it is still in the application
root
dir, and if you've used codebehind for it, check the App_Code dir to see
whether the codebehind class is there.

Please feel free to post here if there is any other finding or particular
problem.

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

May 1 '06 #4
Thanks for your followup Shimon,

As for web application project, it is still under beta preview, also it is
mainly designed for vs 2003/asp.net 1.x developers to continue developing
2.0 application as original model. If you feel convenient, I'd still
suggest you consider use the default projectless model of ASP.NET 2.0
application. VS 2005 ide will help you convert it to that model
automatically though we may still manually perform some further adjust on
them after the converting.

And for deployment, the Web Deployment Project is just designed for the new
2.0 application model:

http://msdn.microsoft.com/asp.net/re...structure/wdp/

Hope also helps.

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

May 2 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Dennis Wheeler | last post by:
I'm trying to find a commandline solution for switching projects. Currently I have to modify the IIS virtual directory path to the source files, and then open the solution file in .Net to be...
0
by: Tom Warren | last post by:
Does anyone have, or know where to download a list of properly cased patronymic last names? Included below is what I have so far (about 2000, mostly Arabic, Italian, Irish, French, and Dutch)...
0
by: gauthier | last post by:
Hi, I'm developing a web application available in multiple languages. When we switch language (via a drop down list), we switch the culture of the current thread: ...
4
by: Jeremy Holt | last post by:
Hi, In a windows.forms application I would BeginInvoke a delegate on the UI thread to collect data from a database. When the call returns to the AsyncCallback, if the Control.InvokeRequired =...
0
by: denz | last post by:
Hi, Basically, in the client proxy that is refering to a web service, i want to be able to switch automatically and transparently, from one URL to another (location of the mirrored service) when...
3
by: jobs | last post by:
I've got a gridview that does not have a datasourceid assigned in the markup. I'd like to switch between two datasources in the codebehind. when I do switch, I first reset the the...
2
by: Frank Swarbrick | last post by:
I had asked a question a few weeks ago about having problems at times accessing DB2 Express-C 9.1, and getting "SQL1032N No start database manager command was issued. SQLSTATE=57019" even when the...
1
by: Dave Rado | last post by:
Hi A while ago I discovered a way of creating css pseudo-frames, that offer users the important benefits of real frames (i.e. the navigation remains visible when you scroll down the page), but...
4
by: adlloyd | last post by:
Hi all, I've got an application that's written in C++ making use of MFC (VS6). Its purpose is to process SMS messages received from a GSM modem connected via a serial port (USB connection). The...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.