asp.net mvc 4 - Server Error in '/' Application. Access is Denied -


i've got error when try run program in localhost in pc when deployed in server, works fine. here error in localhost in pc.

enter image description here

i wondering why have problem in fact in our last project, works in localhost i'm not 1 set everything. copy , paste implementation active directory in web config. here web config codes:

<?xml version="1.0" encoding="utf-8"?> <!--   more information on how configure asp.net application, please visit   http://go.microsoft.com/fwlink/?linkid=169433   --> <configuration>   <configsections>     <!-- more information on entity framework configuration, visit http://go.microsoft.com/fwlink/?linkid=237468 -->     <section name="entityframework" type="system.data.entity.internal.configfile.entityframeworksection, entityframework, version=5.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089" requirepermission="false" />   </configsections>   <connectionstrings>     <add name="defaultconnection" connectionstring="data source=(localdb)\v11.0;initial catalog=aspnet-insys-20141208093655;integrated security=sspi;attachdbfilename=|datadirectory|\aspnet-insys-20141208093655.mdf" providername="system.data.sqlclient" />     <add name="petc_insysentities" connectionstring="metadata=res://*/models.insys_model.csdl|res://*/models.insys_model.ssdl|res://*/models.insys_model.msl;provider=system.data.sqlclient;provider connection string=&quot;data source=phpet-sql01;initial catalog=petc_insys;integrated security=true;multipleactiveresultsets=true;app=entityframework&quot;" providername="system.data.entityclient" />   </connectionstrings>   <appsettings>     <add key="webpages:version" value="2.0.0.0" />     <add key="webpages:enabled" value="false" />     <add key="preserveloginurl" value="true" />     <add key="clientvalidationenabled" value="true" />     <add key="unobtrusivejavascriptenabled" value="true" />     <add key="autoformsauthentication" value="false" />     <add key="enablesimplemembership" value="false" />   </appsettings>   <system.web>     <compilation debug="true" targetframework="4.5">       <assemblies>         <add assembly="system.data.entity, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089" />       </assemblies>     </compilation>     <httpruntime targetframework="4.5" />     <authentication mode="windows" />     <identity impersonate="false" />     <rolemanager enabled="true" defaultprovider="aspnetwindowstokenroleprovider">       <providers>         <clear />         <add name="aspnetwindowstokenroleprovider" type="system.web.security.windowstokenroleprovider" applicationname="/" />       </providers>     </rolemanager>     <authorization>       <deny users="?" />     </authorization>     <sessionstate mode="inproc" />     <pages>       <namespaces>         <add namespace="system.web.helpers" />         <add namespace="system.web.mvc" />         <add namespace="system.web.mvc.ajax" />         <add namespace="system.web.mvc.html" />         <add namespace="system.web.optimization" />         <add namespace="system.web.routing" />         <add namespace="system.web.webpages" />       </namespaces>     </pages>   </system.web>   <system.webserver>     <validation validateintegratedmodeconfiguration="false" />     <handlers>       <remove name="extensionlessurlhandler-isapi-4.0_32bit" />       <remove name="extensionlessurlhandler-isapi-4.0_64bit" />       <remove name="extensionlessurlhandler-integrated-4.0" />       <add name="extensionlessurlhandler-isapi-4.0_32bit" path="*." verb="get,head,post,debug,put,delete,patch,options" modules="isapimodule" scriptprocessor="%windir%\microsoft.net\framework\v4.0.30319\aspnet_isapi.dll" precondition="classicmode,runtimeversionv4.0,bitness32" responsebufferlimit="0" />       <add name="extensionlessurlhandler-isapi-4.0_64bit" path="*." verb="get,head,post,debug,put,delete,patch,options" modules="isapimodule" scriptprocessor="%windir%\microsoft.net\framework64\v4.0.30319\aspnet_isapi.dll" precondition="classicmode,runtimeversionv4.0,bitness64" responsebufferlimit="0" />       <add name="extensionlessurlhandler-integrated-4.0" path="*." verb="get,head,post,debug,put,delete,patch,options" type="system.web.handlers.transferrequesthandler" precondition="integratedmode,runtimeversionv4.0" />     </handlers>   </system.webserver>   <runtime>     <assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1">       <dependentassembly>         <assemblyidentity name="dotnetopenauth.core" publickeytoken="2780ccd10d57b246" />         <bindingredirect oldversion="0.0.0.0-4.1.0.0" newversion="4.1.0.0" />       </dependentassembly>       <dependentassembly>         <assemblyidentity name="dotnetopenauth.aspnet" publickeytoken="2780ccd10d57b246" />         <bindingredirect oldversion="0.0.0.0-4.1.0.0" newversion="4.1.0.0" />       </dependentassembly>       <dependentassembly>         <assemblyidentity name="system.web.helpers" publickeytoken="31bf3856ad364e35" />         <bindingredirect oldversion="1.0.0.0-2.0.0.0" newversion="2.0.0.0" />       </dependentassembly>       <dependentassembly>         <assemblyidentity name="system.web.mvc" publickeytoken="31bf3856ad364e35" />         <bindingredirect oldversion="0.0.0.0-4.0.0.0" newversion="4.0.0.0" />       </dependentassembly>       <dependentassembly>         <assemblyidentity name="system.web.webpages" publickeytoken="31bf3856ad364e35" />         <bindingredirect oldversion="1.0.0.0-2.0.0.0" newversion="2.0.0.0" />       </dependentassembly>       <dependentassembly>         <assemblyidentity name="webgrease" publickeytoken="31bf3856ad364e35" />         <bindingredirect oldversion="0.0.0.0-1.3.0.0" newversion="1.3.0.0" />       </dependentassembly>       <dependentassembly>         <assemblyidentity name="itextsharp" publickeytoken="8354ae6d2174ddca" culture="neutral" />         <bindingredirect oldversion="0.0.0.0-5.5.4.0" newversion="5.5.4.0" />       </dependentassembly>       <dependentassembly>         <assemblyidentity name="itextsharp.xmlworker" publickeytoken="8354ae6d2174ddca" culture="neutral" />         <bindingredirect oldversion="0.0.0.0-5.5.4.0" newversion="5.5.4.0" />       </dependentassembly>     </assemblybinding>   </runtime>   <entityframework>     <defaultconnectionfactory type="system.data.entity.infrastructure.localdbconnectionfactory, entityframework"></defaultconnectionfactory>   </entityframework>   <system.net>     <mailsettings>       <smtp>         <network host="ap.smtp.lear.com" port="25" />       </smtp>     </mailsettings>   </system.net> </configuration> 

can tell me else need resolve problem? i've been searching 2 days unfortunately still not resolve.

the error says it's server configuration issue related permissions. may want open iis manager control panel , check virtual directory settings.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -