Quantcast
Channel: Configuration and Deployment
Viewing all 3561 articles
Browse latest View live

Please help me How to host web site on IIS with all Asp.net forms along with the Database for it.

$
0
0

Hi All,

Please Help me to find information regarding How to Host Asp.net web site on Local IIS server along with Database which is in MS SQL server with .bak file extension.

Thanks,

Regards,

Jayesh(From India,Mumbai)


Testing a custom IHttpHandler using IIS Express *without* installing into GAC

$
0
0

Hi forum,

I wrote a Hello World HttpHandler class that I would like to try with IIS Express 10. However, try as I might, I can't get IIS to use my handler. Here is my applicationHost.config:

<?xml version="1.0" encoding="UTF-8"?><configuration><configSections><sectionGroup name="system.applicationHost"><section name="applicationPools"/><section name="sites"/></sectionGroup><sectionGroup name="system.webServer"><section name="globalModules"/><section name="handlers"/><section name="caching"/><section name="modules"/><!-- The following section elements are not specified in this file, but without these
			     declarations, IIS will 500 requests --><sectionGroup name="security"><!--<section name="isapiCgiRestriction"/>--><section name="access"/><sectionGroup name="authentication"><section name="anonymousAuthentication"/></sectionGroup></sectionGroup><section name="serverRuntime"/><sectionGroup name="tracing"><section name="traceFailedRequests" overrideModeDefault="Allow" /><section name="traceProviderDefinitions" overrideModeDefault="Deny" /></sectionGroup></sectionGroup></configSections><system.applicationHost><applicationPools><add name="DefaultAppPool" startMode="AlwaysRunning" managedRuntimeVersion="v4.0"/></applicationPools><sites><site name="Default Web Site" id="1" serverAutoStart="true"><application path="/" applicationPool="DefaultAppPool"><virtualDirectory path="/" physicalPath="%IIS_USER_HOME%\blog" /></application><bindings><binding protocol="http" bindingInformation=":8080:localhost" /></bindings></site><siteDefaults><logFile logFormat="W3C" directory="%IIS_USER_HOME%\Logs" /><traceFailedRequestsLogging directory="%IIS_USER_HOME%\TraceLogFiles" enabled="true" maxLogFileSizeKB="1024" /></siteDefaults></sites></system.applicationHost><system.webServer><!--By default, the ISAPI module won't load anything. The directive below permits any DLL
            to be run by IIS. In a real enviornment, you would list the specific DLLs that are allowed. --><!--<security><isapiCgiRestriction notListedIsapisAllowed="true"/></security>--><globalModules><add name="AnonymousAuthenticationModule" image="%IIS_BIN%\authanon.dll" /><add name="FailedRequestsTracingModule" image="%IIS_BIN%\iisfreb.dll" /><!--<add name="IsapiModule" image="%IIS_BIN%\isapi.dll" />--></globalModules><modules><add name="AnonymousAuthenticationModule"/><add name="FailedRequestsTracingModule" /><!--<add name="IsapiModule"/>--></modules><handlers accessPolicy="Read, Execute"><!-- The source for a minimal ISAPI extension can be found in the Windows 7 SDK sample repo:
                 https://github.com/Microsoft/Windows-classic-samples/tree/master/Samples/Win7Samples/web/iis/extensions/simple --><!--<add name="ISAPI-dll" path="*.dll" verb="*" modules="IsapiModule" resourceType="File" requireAccess="Execute" allowPathInfo="true" />--><add name="HelloWorld" path="*.html" verb="GET" type="HelloWorldIISModule.HelloWorldIISModule, HelloWorldIISModule"/></handlers><tracing><traceProviderDefinitions><add name="ASPNET" guid="{AFF081FE-0247-4275-9C4E-021F3DC1DA35}"><areas><add name="Infrastructure" value="1" /><add name="Module" value="2" /><add name="Page" value="4" /><add name="AppServices" value="8" /></areas></add><add name="WWW Server" guid="{3a2a4e84-4c21-4981-ae10-3fda0d9b0f83}"><areas><clear /><add name="Authentication" value="2" /><add name="Security" value="4" /><add name="Filter" value="8" /><add name="StaticFile" value="16" /><add name="CGI" value="32" /><add name="Compression" value="64" /><add name="Cache" value="128" /><add name="RequestNotifications" value="256" /><add name="Module" value="512" /><add name="Rewrite" value="1024" /><add name="FastCGI" value="4096" /><add name="WebSocket" value="16384" /></areas></add></traceProviderDefinitions><traceFailedRequests><add path="*"><traceAreas><add provider="ASPNET" areas="Infrastructure,Module,Page,AppServices" verbosity="Verbose" /><add provider="WWW Server" areas="Authentication,Security,Filter,StaticFile,CGI,Compression,Cache,RequestNotifications,Module,Rewrite,WebSocket" verbosity="Verbose" /></traceAreas><failureDefinitions statusCodes="200-999" /></add></traceFailedRequests></tracing></system.webServer></configuration>

 

I have installed the assembly into the bin subdirectory of the blog web app, but I still get this error when trying to request a page from the handler (from the failed request trace);

ModuleName="IIS Web Core", Notification="EXECUTE_REQUEST_HANDLER", HttpStatus="404", HttpReason="Not Found", HttpSubStatus="4", ErrorCode="The operation completed successfully.
(0x0)", ConfigExceptionInfo=""

Do I *have* to install my assembly into the GAC in order to use it with IIS Express? It seems that kind of defeats the purpose of a development server, since I have to be privileged to test my assembly.

Issue occur while dumping data into Database from web service

$
0
0

On my IIS service .net framework 3.5 is missing. when i tried to add .net framework 3.5 role and feature then this error occurred "Do you need to specify an alternate source path? One or more installation selections are missing source files on the destination server. The server will try to get missing source files from Windows Update, or from a location that is specified by Group Policy. You can also click the “Specify an alternate source path” link to provide a valid location for the source files". 

WebService is successfully deployed in server and it's consuming perfectly but not dumping data in database. And my web service developed   under 4.5 framework. Please tell me how to fix this issue?

application hosting in iis but not connected sql server database

$
0
0

Hi,

pls help me

I have developed application in mvc and sql server .application is hosting in iis but not connected sql server.

 

Make IIS return a 404 status code instead of 403

$
0
0

Following a security report it was stated that it was possible for an attacker to discover our folder structures by searching for error 403 (Forbidden).  It was suggested that whenever a 403 would be issued a 404 should be sent to the client instead.

How do I achieve this in IIS?

Robot.txt file help

$
0
0

I wish to disallow all Bing robots.txt only crawling my site, allow all others.

Is it like this

#Stop MScroft bots
User-agent: bingbot
User-agent: msnbot
User-agent: msnbot-media
User-agent: adi dxbot
Disallow: /

#Allow all other bots
User-agent: *
Disallow: /folder1/
Disallow: /folder2/
Disallow: /folder3/
Disallow: /folder4/
Disallow: /myfile.aspx


Front end and back end

$
0
0
Is it possible to use Microsoft access for UI and SQL for the backend

How to secure the connection string in web.config file after deployment

$
0
0

Hi,

Is there any way to secure the connection string in web.config file after deployment. 

Thanks


How to protect Asp .Net applications - After deployment

$
0
0

Hi Forum users,

I want to protect my Asp .net application after deployment of application in IIS at customer location. I.e., How to protect the application when re-use / copy the application source files and reproduce in other location.

Kindly suggest.

Thanks.

There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined IIS8

$
0
0

When i opening the web config file.Error has bees displayed version (3.5.0.0) by changing the version (4.0.0.0) in the web config error msg has been not displayed. But Reports has not been Working..

<configSections><sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"><sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"><section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/><sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"><section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/><section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/><section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/><section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/></sectionGroup></sectionGroup></sectionGroup></configSections>

Below Attached error Message image ..

Error Message

In this web config version (4.0.0.0) it's working good But Reports has not been Working..

<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"><sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"><section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/><sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions,  Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"><section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/><section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/><section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/><section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/></sectionGroup></sectionGroup></sectionGroup>





<?xml version="1.0"?><!--Note:As an alternative to hand editing this file you can use the
    web admin tool to configure settings for your application.Use
    the Website->Asp.NetConfiguration option inVisualStudio.
    A full list of settings and comments can be found in
    machine.config.comments usually located in
    \Windows\Microsoft.Net\Framework\v2.x\Config--><configuration><configSections><sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"><sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"><section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/><sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"><section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/><section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/><section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/><section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/></sectionGroup></sectionGroup></sectionGroup></configSections><!--<section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler,  Intelligencia.UrlRewriter"/>--><!--</configSections>--><!--<configSections><sectionGroup name="businessObjects"><sectionGroup name="crystalReports"><section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler"/></sectionGroup></sectionGroup></configSections><businessObjects><crystalReports><crystalReportViewer><add key="UseBrowserLocale" value="true"/><add key="resourceURI" value="~/aspnet_client/system_web/4_0_30319/crystalreportviewers13"/></crystalReportViewer></crystalReports></businessObjects>--><appSettings file="seeker/seeker.config"><add key="URL" value="http://localhost:3695"/><add key="SiteUrl" value="http://www.Consultancy.Winrecruit.com"/><add key="bcc" value="info@winrecruit.com"/><add key="from" value="info@winrecruit.com"/><add key="fromPwd" value="welcomeINFO1"/><add key="to" value="info@winrecruit.com"/><!--<add key="QuizQuestionCount" value="10"/>--><add key="JobsPageSize" value="10"/><add key="MetaKeyword" value="recipe, recipes, easy recipe, quick recipe, easy recipes, fast and easy recipes, cheap food recipes,dinner recipe ideas, easy cooking recipes, new recipes "/><add key="MetaDescription" value="eGlanzer recipes provides variety of recipes regional, seasonal, festival, both vegitarien and non-vegitariens which prepare very short time with taste."/><add key="CrystalImageCleaner-AutoStart" value="true"/><add key="CrystalImageCleaner-Sleep" value="60000"/><add key="CrystalImageCleaner-Age" value="120000"/><add key="FolderPath" value="Resumes"/><add key="FolderPathLogo" value="Logo"/><add key="MessageSender" value="9750504569"/><add key="MessagePwd" value="53384"/></appSettings><connectionStrings><add name="ConnectionString" connectionString="Data Source=server; database=datbase; user id=sa; password=IIT;"/></connectionStrings><system.web><!--Set compilation debug="true" to insert debugging
            symbols into the compiled page.Becausethis
            affects performance,setthis value to true only
            during development.--><!--/* cereted by rajesh--><!--<pages enableEventValidation="false">--><pages><controls><add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></controls></pages><compilation debug="true"><assemblies><add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/><add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/><add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/><add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/><add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/><add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><!--<add assembly="System.Web.Routing, Version = 3.5.0.0, Culture=neutral, PublicKeyToken =31BF3856AD364E35 "/>--><add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/><add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/><add assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/><add assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/><add assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/><add assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/><add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add assembly="Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/><add assembly="Microsoft.Office.Interop.Word, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/><add assembly="Microsoft.Office.Interop.Outlook, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/><add assembly="Microsoft.Office.Interop.OutlookViewCtl, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/><add assembly="Accessibility, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/><add assembly="Microsoft.Office.Interop.Word, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/></assemblies><buildProviders><add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/></buildProviders></compilation><httpHandlers><remove path="*.asmx" verb="*"/><add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/><add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/><add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/><add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/><add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></httpHandlers><httpModules><add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><!--<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule,  Intelligencia.UrlRewriter" />--><!--<add type="eGlanzer.Controls.UrlRewriter" name="UrlRewriter" />--></httpModules><!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        --><customErrors mode="Off"/><authentication mode="Windows"/><!--
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"><error statusCode="403" redirect="NoAccess.htm" /><error statusCode="404" redirect="FileNotFound.htm" /></customErrors>
        --></system.web><system.net><mailSettings><smtp from="info@eGlanzer.com"><network host="smtp.mail.eglanzer.com" port="25" userName="info@eglanzer.com" password="InfO@123"/></smtp></mailSettings></system.net><system.webServer><validation validateIntegratedModeConfiguration="false"/><handlers><add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode"/></handlers></system.webServer><system.codedom><compilers><compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4"><providerOption name="CompilerVersion" value="v3.5"/><providerOption name="WarnAsError" value="false"/></compiler><compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4"><providerOption name="CompilerVersion" value="v3.5"/><providerOption name="OptionInfer" value="true"/><providerOption name="WarnAsError" value="false"/></compiler></compilers></system.codedom><runtime><assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/><bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly><dependentAssembly><assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/><bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly></assemblyBinding></runtime><!--<rewriter><rewrite url="~/recipes/search-(.*)-(.*)-(.*).aspx" to="~/recipes/recipes.SearchRecipes.aspx?c=$1&amp;p=$2" /><rewrite url="~/recipes/searchWord-(.*).aspx" to="~/recipes/recipes.SearchRecipes.aspx?c=$1&amp;p=0"></rewrite><rewrite url="~/recipes/details-(.*)-(.*)-(.*).aspx" to="~/recipes/recipes.DetailView.aspx?Key=$1&amp;p=$2"></rewrite><rewrite url="~/recipes/rating-(.*)-(.*)-(.*)-(.*).aspx" to ="~/recipes/recipes.Rating.aspx?rid=$1&amp;p=$2&amp;r=$3"></rewrite>--><!--<rewrite url="~/Answers/Comments/(.+)/AnswersComments.aspx" to="~/Answers/AnswerComments.aspx?Qid=$1"></rewrite><rewrite url="~/Answers/TopicWise/(.+)/(.+).aspx" to="~/Answers/TopicWise.aspx?catid=$1"></rewrite><rewrite url="~/Answers/Questions/keywords/(.+).aspx" to ="~/Answers/Questions.aspx?keywords=$1"></rewrite>--><!--</rewriter>--></configuration>

struggling with parameters.xml and wpp trying to parameterise ACL user

$
0
0

this is really bugging me how difficult it is to work with parametes.xml...currently  trying to parameterize the aclUSER - I thought it would be easy!

anyway we want webdeploy to setup our permissions on deployment for a sevice account that is used instead of the default apppool user.

we want to be able to do ALMOST exactly this: http://sedodream.com/2011/11/08/SettingFolderPermissionsOnWebPublish.aspx 

However in various environments we have different accounts that need these permissions set for... sigh... so can you extend or modify this example to make SOMETHING LIKE THIS work?

<
setAclUser
>$(environmentAclUserName)</
setAclUser
>

(every permutation of .wpp.targets from various (ie: hardly any) exmamples of parameters and so on always ends up with [setAclUser=""] in "archive.xml"  (but not in 
"SourceManifest.xml" and even if we manually modify the archive.xml) 
the installer (projectdeploy.cmd) complains with:
Error: A value for the 'setAclUser' setting must be specified when the 'setAcl' provider is used with a physical path.

for all custom paths (but oddly not for the "write permission on "App_Data"...)

(aside: why is MSBuild/xml project syntax and features and functions so hard to figure out and/or find out documentation of... is there a hidden documentation repository or course or knowledge base that we just haven't found yet...?!-makes writing the .wpp.targets file really hit and miss...)

suggestion has been that since the error message is similar it might be a side effect of simply HAVING the wpp file doing acl stuff...?

https://social.msdn.microsoft.com/Forums/vstudio/en-US/64006ded-8ea2-4577-914d-48eb3c630108/extend-wpptargets-example-to-make-setacluser-configurable?forum=msbuild

directed me here but - so far no luck but still fiddling with this approach/info: https://stackoverflow.com/questions/6861990/can-web-deploys-setacl-provider-be-used-on-a-sub-directory

thoughts and suggestions welcome

httphandler 40

$
0
0

developed a httphandler on .net 4.5, workstation win10 pro

tested everything good

deployed to server, i believe the server iis is 8.5

getting error 404

they both running apppool with integrated mode

so the config is within <system.webServer>

i can c the httphandler mapping in the server iis

tried googled, putting in whatever additional attributes suggested, none working

anyone has good way to troubleshoot/fix?

Error parsing the web configuration file at line 1

$
0
0

Hello

I just want to open an html css site with visual studio

I go through the following route:

file>open>website (or shift+alt+o)

and after selecting my theme folder I click on Firefox for a run

When I choose "Add a new web.config file with debugging enabled", the following error occurs:

I'll be grateful for your help thanks

Bizarre issue with ASP.Net web site migrating to new web server

$
0
0

We have an ASP.Net web site (v3.5 framework) that is running on IIS 7.5/Server2008R2. I'm testing this site on a new web server running IIS 8.5/Server2012R2.

Randomly, it seems to just lose connectivity to our SQL server, message is this:

Connection not valid. A network-related or instance-specific error occurred while establishing a connection to
SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that
SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt
failed because the connected party did not properly respond after a period of time, or established connection
failed because connected host has failed to respond.)

Occasionally, we also get the standard "SQL Server does not exist or access is denied" message like the SQL server is disconnected or down. Also, occasionally, the message about "...could not obtain a connection from the pool." The SQL server is definitely NOT down or disconnected as it's the same server and database as the current site running on 2008R2, which experiences no issues.

The weird thing is, once I get that message, my session appears to be "ruined" and all pages return this error for my session only, while others can still browse the site OK. If I close out all my browser windows and pull the site back up, everything works fine until (randomly, again) the message appears, then it's broken again. Recycling the app pool also fixes it until, again, I get the message once, then all subsequent attempts fail.

Things I've tried so far:

  • Changed all connection strings to use IP address and port number instead of machine name to rule out DNS or other name resolution issues
  • Disabled Windows firewall on both SQL server and web server
  • Added "Pooling=False" to connection strings to disable pooling
  • Added "Max Pool Size=10000" to make sure the connection pool was ridiculously large
  • Checked and double-checked every application pool and web site setting in IIS that I can think of to make sure they are the same between old and new server

Any other ideas? I'm totally at a loss. I have managed to identify a sequence of events that I can repeat to get the error to happen every time. This exact same code base is running on the existing 2008R2 server just fine, checked all the app pool settings and they are the same.

Any differences between IIS 7.5 and 8.5 that might be causing this?

Operation Timed Out error in IIS 8.5

$
0
0

Hi There;

I have a basic MVC web application. I have a personel computer and I have installed Windows Server 2012 and IIS 8.5 on it. When I write the IP address of the computer to my browser, I can see the IIS wellcome screen. I create a sample web site and deploy it to server. When I reach the server,  I am getting 

500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

error. When I log in to server and browse it locally, I am getting "Operation timed out" error. How can I resolve the issue? Thanks in advance.


ASP.Net Web Site Administration Tool Issue

$
0
0

Greetings all.

I hope I am posting this issue to the correct forum.  I had a tough time determining where it belonged, but this seemed reasonable.

I am absolutely stuck with a strange issue concerning the ASP.Net Web Site Administration Tool.  First let me detail the provider installation.

I created a provider data store via aspnet_regsql.  I then editted web.config for my test web application to reference that database.

Next, under IIS, I have created a web application for the tool (.Net 4.0 version) so that I can access via a URL: http://localhost/webadmin/default.aspx?applicationPhysicalPath=C:\Inetpub\wwwroot\Test&applicationUrl=/Test

When I browse to the URL, the admistration tool does indeed load.  I can then navigate to all tabs EXCEPT the Security tab.  When I click on that tab, I am meet with an error: There is a problem with your selected data store...  Value cannot be null.  Parameter name: Path

If I go to the Provider tab, I can sucessfully test the membership and role providers.  If I run my test application, I can sucessfully register a new user and see that user in the data store.  It just baffles me that I cannot open the Security tab to assign roles.  The really weird thing is that I can configure/run this app on my dev laptop (Windows 7, SQL Server 2008), and the Security tab is not an issue.  But on the web server...

Here are a few details about server.  The server is running Windows Server 2003 Enterprise.  ASP.NET version 4.0.30319.0 is installed.  The database server is SQL Server 2005.

The provider related sections of the web.config are as follows:

 <connectionStrings><add name="ApplicationServices" connectionString="server=localhost\Test; database=ProviderStore; trusted_connection=false; user id=USER; password=PW; connection timeout=20" providerName="System.Data.SqlClient" /></connectionStrings>

<membership><providers><clear /><add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" applicationName="/"              enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"              maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" /></providers>     </membership>

<profile><providers><clear /><add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" /></providers></profile>

<roleManager enabled="true"><providers><clear /><add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />         <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" /> </providers></roleManager>

The event log entry for the issue is as follows:

Event Type: Error Event Source: ASP.NET 4.0.30319.0 Event Category: None Event ID: 1325 Date:  9/27/2012 Time:  1:47:02 PM User:  N/A Computer: BASTIAN-TS Description: Failed to initialize the AppDomain:5465800b

Exception: System.Web.HttpException

Message: Value cannot be null. Parameter name: path

StackTrace:    at System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()    at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()    at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)    at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel)    at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel)    at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)   at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)

InnerException: System.ArgumentNullException

Message: Value cannot be null. Parameter name: path

StackTrace:    at System.IO.Path.GetFullPath(String path)    at System.Web.Util.FileEnumerator..ctor(String path)    at System.Web.Hosting.MapPathBasedVirtualPathEnumerator..ctor(VirtualPath virtualPath, RequestedEntryType requestedEntryType)    at System.Web.Hosting.MapPathBasedVirtualPathCollection.System.Collections.IEnumerable.GetEnumerator()   at System.Web.Compilation.CodeDirectoryCompiler.ProcessDirectoryRecursive(VirtualDirectory vdir, Boolean topLevel)    at System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed)    at System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories)    at System.Web.Compilation.BuildManager.CompileCodeDirectories()   at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()

I have been working to resolve this issue for many hours, and I am at wits end.  Any help in resolving this problem would be greatly appreciated.

Thanks in advance.

Walt

 

 

 

Membership provider issue after deployment

$
0
0

Hi'

Just deployed my mvc app to a server, I have 4 services running on the server with a Connection to the DB - works fine. when I try to login ( using the Membership.ValidateUser I always get false, same goes for trying to register a user ( Does not work). In the DB I have ApplicationName ="/". My relevant configs are:

<membership>
<providers>
<clear />
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="LargainDb"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="false"
requiresUniqueEmail="false"
maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="6"
minRequiredNonalphanumericCharacters="0"
passwordAttemptWindow="10"
applicationName="/" />
</providers>
</membership>
<profile>
<providers>
<clear />
<add name="AspNetSqlProfileProvider"
type="System.Web.Profile.SqlProfileProvider"
connectionStringName="LargainDb"
applicationName="/" />
</providers>
</profile>
<roleManager enabled="true">
<providers>
<clear />
<add connectionStringName="LargainDb"
applicationName="/"
name="AspNetSqlRoleProvider"
type="System.Web.Security.SqlRoleProvider" />
<add applicationName="/"
name="AspNetWindowsTokenRoleProvider"
type="System.Web.Security.WindowsTokenRoleProvider" />
</providers>
</roleManager>

I tried practically everything, nothing works, Can anyone help? Im desprerate. 

Event ID : 1309

$
0
0

Hi, i facing this issue few times. Kindly check below log

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 7/24/2017 1:41:36 PM
Event time (UTC): 7/24/2017 5:41:36 AM
Event ID: 6a63a337b8d04abe9b5a762df7e44258
Event sequence: 17
Event occurrence: 2
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1/ROOT-1-131453484819691698
Trust level: Full
Application Virtual Path: /
Application Path: D:\Webs\xxxx\
Machine name: xxxx

Process information:
Process ID: 5552
Process name: w3wp.exe
Account name: IIS APPPOOL\xxxx

Exception information:
Exception type: EntityException
Exception message: The underlying provider failed on Open.
at System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure)
at System.Data.EntityClient.EntityConnection.Open()
at System.Data.Objects.ObjectContext.EnsureConnection()
at System.Data.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
at System.Data.Objects.ObjectQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator()
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
at System.Data.Objects.ELinq.ObjectQueryProvider.<>c__11`1.<GetElementFunction>b__11_1(IEnumerable`1 sequence)
at System.Data.Objects.ELinq.ObjectQueryProvider.ExecuteSingle[TResult](IEnumerable`1 query, Expression queryRoot)
at System.Data.Objects.ELinq.ObjectQueryProvider.System.Linq.IQueryProvider.Execute[S](Expression expression)
at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable`1 source)
at ASP.adminlogin_default_aspx.btnLogin_Click(Object o, EventArgs e) in D:\Webs\airasiajobs\adminlogin\Default.aspx:line 8
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure)

The system cannot find the file specified



Request information:
Request URL: http://localhost/adminlogin/default.aspx
Request path: /adminlogin/default.aspx
User host address: ::1
User:
Is authenticated: False
Authentication Type:
Thread account name: IIS APPPOOL\xxxx

Thread information:
Thread ID: 7
Thread account name: IIS APPPOOL\xxxx
Is impersonating: False
Stack trace: at System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure)
at System.Data.EntityClient.EntityConnection.Open()
at System.Data.Objects.ObjectContext.EnsureConnection()
at System.Data.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
at System.Data.Objects.ObjectQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator()
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
at System.Data.Objects.ELinq.ObjectQueryProvider.<>c__11`1.<GetElementFunction>b__11_1(IEnumerable`1 sequence)
at System.Data.Objects.ELinq.ObjectQueryProvider.ExecuteSingle[TResult](IEnumerable`1 query, Expression queryRoot)
at System.Data.Objects.ELinq.ObjectQueryProvider.System.Linq.IQueryProvider.Execute[S](Expression expression)
at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable`1 source)
at ASP.adminlogin_default_aspx.btnLogin_Click(Object o, EventArgs e) in D:\Webs\airasiajobs\adminlogin\Default.aspx:line 8
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Custom event details:

***

Remarks : "xxxx" replace to original folder name.

i am getting the following error - The referenced project DataAccessLayer is targeting a higher framework version(4,6.1)

$
0
0

Dear all,

Earlier I was used Visual Studio 2010 in my office. I am trying to open this project now in visual Studio 2017. I am getting the following error.

The referenced project 'DataAccessLayer' is targeting a higher framework version (4.6.1) than this project’s current target framework version (4.0). This may lead to build failures if types from assemblies outside this project’s target framework are used by any project in the dependency chain.

can somebody throw light to correct the issue?

Warm Regards,

Sathya

Please help me How to host web site on IIS with all Asp.net forms along with the Database for it.

$
0
0

Hi All,

Please Help me to find information regarding How to Host Asp.net web site on Local IIS server along with Database which is in MS SQL server with .bak file extension.

Thanks,

Regards,

Jayesh(From India,Mumbai)

Viewing all 3561 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>