Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a simple asp.net webapplication.I created a virtual directory in IIS7 and mapped it to a physical path having website published code.I followed steps that are specified in code project to deploy a webapp in IIS7 but i am getting following error when i am browsing webapplication.


Server Error in '/' Application.<br />
--------------------------------------------------------------------------------<br />
<br />
The parameter 'frameworkName' cannot be an empty string.<br />
Parameter name: frameworkName <br />
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. <br />
<br />
Exception Details: System.ArgumentException: The parameter 'frameworkName' cannot be an empty string.<br />
Parameter name: frameworkName<br />
<br />
Source Error: <br />
<br />
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.  <br />
<br />
Stack Trace: <br />
<br />
<br />
[ArgumentException: The parameter 'frameworkName' cannot be an empty string.<br />
Parameter name: frameworkName]<br />
   System.Runtime.Versioning.FrameworkName..ctor(String frameworkName) +7656787<br />
   System.Web.Compilation.MultiTargetingUtil.InitializeKnownAndLatestFrameworkNames() +190<br />
   System.Web.Compilation.MultiTargetingUtil.EnsureFrameworkNamesInitialized() +146<br />
   System.Web.Compilation.BuildManager.Initialize() +282<br />
   System.Web.Compilation.BuildManager.InitializeBuildManager() +11434855<br />
   System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +902<br />
<br />
[HttpException (0x80004005): The parameter 'frameworkName' cannot be an empty string.<br />
Parameter name: frameworkName]<br />
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11571552<br />
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141<br />
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4826437<br />
<br />
 <br />
<br />
<br />
--------------------------------------------------------------------------------<br />
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.431 
Posted

1 solution

Dear Friend,

There are assembly references in the xaml which you are failing to resolve.

I think that the project you are deploying is in older version of .Net and you have opened it into the latest .Net. So the assemblies have not been updated. Kindly open the project into the latest .Net and convert it and then make a build and then deploy it into the IIS.

Go through this link for more detail.

http://stackoverflow.com/questions/3283932/asp-net-master-page-frameworkname-value-cannot-be-null-error[^]

Thanks
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900