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

Security Exception - File Upload

$
0
0

Hello,

I have migrated an ASP+ASP.NET project (having a common web.config, with code in separate subfolders.) to BigRock.

There is a file upload module in the ASP.NET component. I'm getting Security Exception when trying to upload file to server.

After referring to FAQ, I have set the CAS level to full in Bigrock Plesk Panel

and have also added <trust level = full> as mentioned in FAQ https://forums.asp.net/t/1544792.aspx#_How_do_I7

However, <trust level = full> causes following error on all pages.

Following is the web.config

<?xml version="1.0" encoding="utf-8"?><configuration><appSettings>    <add key="ConnectionString" value="server=**.**.**.**;database=dbname;user id=********;password=********" /><add key="ConfirmationEmailId" value="*****@*****.com" /><add key="fromEmail" value="admin@*******.com" /> <add key="keyname1" value="http://subdomain.domain.com/subfolder" /></appSettings>  <system.web>    <!--OLD <compilation defaultLanguage="vb" debug="false" /> --><compilation debug="true" /><customErrors mode="Off" />    <authentication mode="None" /> <authorization><allow users="*" /> <!-- Allow all users --></authorization><trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" /><sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=intranetserver;user id=****;password=*******" cookieless="false" timeout="20" /><globalization requestEncoding="utf-8" responseEncoding="utf-8" /><!-- Trust level FULL as Issue uploading file --><!-- <securityPolicy><trustLevel name="Full"/></securityPolicy> --><!-- <trust level="Full"/> -->   </system.web><system.webServer><tracing><traceFailedRequests><add path="*"><traceAreas><add provider="ASP" areas="" verbosity="Verbose" /><add provider="ASPNET" areas="AppServices,Infrastructure,Module,Page" verbosity="Verbose" /><add provider="ISAPI Extension" areas="" verbosity="Verbose" /><add provider="WWW Server" areas="Authentication,Cache,CGI,Compression,FastCGI,Filter,Module,RequestNotifications,RequestRouting,Rewrite,Security,StaticFile,WebSocket" verbosity="Verbose" /></traceAreas><failureDefinitions statusCodes="500" /></add></traceFailedRequests></tracing><!-- 20180803 --><httpErrors errorMode="Detailed" /></system.webServer><!-- <location path="***.*****.com" allowOverride="true"><system.web><trust level="Full" originUrl=""/></system.web></location> --></configuration>


Restrict Auto Formatting of web.config file

$
0
0

I have some headers added under my web.config file which needs be in a single line. The headers are in XML format and are XML values, hence it is getting formatted.

This line break is causing issue with my service call, as the end service requires the xml in a line only. There are some line break values which are getting appended during the calls.

How can I resolve this issue ?

  1. Is there a way to not format the web.config file ?
  2. Is there a way to not format only a particular section under the web.config file ?
  3. Is there a way to replace the header section after auto-formatting is done ?

Can I containerize an asp.net framework web application?

$
0
0

I know such questions have already been asked many times, but I am here with my scenario.

I have an asp.net web application with .net framework and SQL as backend

  1. Using N-Layered architectured
  2. No web services used.
  3. Each instance has a separate database.

I want to know:

  1. Can I containerize an asp.net framework web application into a windows container?
  2. Do I need to change entire application to Azure Web Application?
  3. If not, is it possible to deploy it directly over the cloud, on MS or any other, as we normally do in IIS?
  4. If not, Is there any third party migration tool available to make my plain old web application cloud-compatible, without affecting existing codes?

Thanks in advance.

Capturing the UserName works perfect on localhost, but fails when published to IIS

$
0
0

I have a web forms application using windows authentication. I need to show or hide some items on the form depending on who is logged in. I have tried using Environment.Username, HttpContext.Current.User.Identity.Name, and My.User.name – all work fine within Visual Studio on localhost but once I publish them to the server, it returns an empty string.

I assume it is some setup-related issue on my server. Any ideas?

URL rewrite rules not working

$
0
0

Hello,

I need to rewrite everything to https://www.goldnroll.ro/{whatever url}

But https://www.goldnroll.ro/ should be rewritten to https://www.goldnroll.ro/acasa 

I tried various solutions that I found on the internet. Currently I have:

<rewrite><rules><rule name="Root Hit Redirect" stopProcessing="false"><match url="^$" /><action type="Redirect" url="/acasa" /></rule><rule name="Redirect to www" stopProcessing="true"><match url="(.*)" /><conditions trackAllCaptures="false"><add input="{HTTP_HOST}" pattern="^goldnroll.ro$" /></conditions><action type="Redirect" url="{MapProtocol:{HTTPS}}://www.goldnroll.ro/{R:1}" /></rule><rule name="Redirect canonical to www" stopProcessing="true"><match url=".*" /><conditions><add input="{HTTP_HOST}" pattern="^goldnroll.ro$" /></conditions><action type="Redirect" url="https://www.goldnroll.ro/{R:0}" redirectType="Permanent" /></rule><rule name="Redirect http to https and everything to www" patternSyntax="Wildcard" stopProcessing="true"><match url="*" negate="false" /><conditions logicalGrouping="MatchAny"><add input="{HTTPS}" pattern="off" /></conditions><action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" /></rule></rules><rewriteMaps><rewriteMap name="MapProtocol"><add key="on" value="https" /><add key="off" value="http" /></rewriteMap></rewriteMaps></rewrite>

But the only rule that works is the first one.

Any solution would be much appreciated.

Thank you,

Alexandru

error 1083 the executable program that this service is configured to run in does not implement the service

$
0
0

Hi,

I have a windows service which basically send email every midnight. Now i try to make deployment package to install the service at production server.

I add the deployment project and add did the configuration for the deployment. Build the service and after that build the deployment project. everything fine.

I get setup.exe file. I try to install on my local machine and installation going fine., there is not error during wizard of installation.

However i checked the directory where the install files should i did not seen my application there. I seen new service added in the services. 

Once i tried to start the service i got the following error.

"error 1083 the executable program that this service is configured to run in does not implement the service".

No idea what to do. I am using windows 7 and visual studio profession 2013.

I am creating deployment package whenever i update the service. But recently i am getting this error message.

Please help me. Thanks in advance.

/Shahid

Deployment of .net 4.5 app different to 3.5

$
0
0

I have a web project written in .NET 3.5, on Visual Studio, which I have been supporting for a number of years.

I always deploy this myself using FTP. The project compiles to a single DLL file, which I put in the bin folder on web server. I then put the .aspx pages in the appropriate folders. I do NOT put the source code across. I am happy with this way of doing things. I find that there is little start up time on the app, and if I replace an aspx page on the fly, nothing is affected eg page lag.

I have a new web app built with .NET 4.5. 

In the bin folder, I now find other files along with my DLL.,

eg folder called Rosyln, files called  Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll, Microsoft.CodeDom.Providers.DotNetCompilerPlatform.xml

The app is running OK but..

One thing I find is that if I FTP up a replacement .aspx file, any request to a different page then takes a few seconds.

OK.. to my question... I would ideally like my 4.5 project to be deployed identically to my 3.5 project.  That is, a single DLL file to FTP, plus the .aspx pages as needed, and hopefully get round the 'initial request lag' which I don't get on 3.5

Is there some setting I need to make it behave the same, and do away with the other stuff in the bin folder? Thanks

Error 500, ASP.net, Thank you page not working

$
0
0

Hello, I need some help!! I am not very familiar with ASP code and was hoping someone could help guide me on this. 

We have a form on our website, where after you click submit on the form you should be redirected to a thank you page. For some reason, after you submit the form you get an error 500 message. 

I am using an FPT to update code. On Internet Explorer, I have already disabled the "show friendly HTTP error message" and get the same code details. 

We have a CMS that is capturing the error, this is what it says: 

at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.default_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 

I'm not sure if this is helpful. If anyone can help me locate the problem it would be greatly appreciated! Any assistance will be helpful. 

I know I did not provide a lot of information. Just let me know what info you need. I am happy to share. 

THANK YOU!!! 

Admin


XML, JSON Configuration Transform

$
0
0

Hi All,

Any suggestion for Configuration transforms for xml, json files in the console application.

I tried SlowCheetah but it not working, any other transformation available in the market?

Thanks

Error in web.config file

$
0
0
<?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.Net Configuration option in Visual Studio.
    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.Extenssions, 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><appSettings><add key="Telerik.Skin" value="Windows7"/></appSettings><connectionStrings><remove name="LocalSqlServer"/><add name="muharramConnectionString" connectionString="Data Source=db100.my-hosting-panel.com;Network Library=dbmssocn;Connection Timeout=15;Packet Size=4096;Integrated Security=no;User ID=almed786_muharram; Password=******;Encrypt=no;Initial Catalog=almed786_muharram;" providerName="System.Data.SqlClient"/><add name="LocalSqlServer" connectionString="Data Source=db100.my-hosting-panel.com;Network Library=dbmssocn;Connection Timeout=15;Packet Size=4096;Integrated Security=no;User ID=almed786_muharram; Password=******;Encrypt=no;Initial Catalog=almed786_muharram;" providerName="System.Data.SqlClient"/><!--<add name="LocalSqlServer" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True"
         providerName="System.Data.SqlClient" />--></connectionStrings><!-- ****************** SMTP SETIINGS ********************* --><system.net><mailSettings><smtp from="webmaster@muharram.com"><network host="mail.muharram.com" password="****" userName="webmaster@muharram.com"/></smtp></mailSettings></system.net><!-- ****************** SMTP SETIINGS END ********************* --><system.web><!-- 
            Set compilation debug="true" to insert debugging 
            symbols into the compiled page. Because this 
            affects performance, set this value to true only 
            during development.

            Visual Basic options:
            Set strict="true" to disallow all data type conversions 
            where data loss can occur. 
            Set explicit="true" to force declaration of all variables.
        --><roleManager enabled="true"/><authorization><allow users="*"/></authorization><!-- 
      Set compilation debug="true" to insert debugging 
      symbols into the compiled page. Because this 
      affects performance, set this value to true only 
      during development.
    --><compilation debug="true" strict="false" explicit="true"><assemblies><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.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><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.Speech, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies></compilation><pages theme="Black" styleSheetTheme="Black"><namespaces><clear/><add namespace="System"/><add namespace="System.Collections"/><add namespace="System.Collections.Generic"/><add namespace="System.Collections.Specialized"/><add namespace="System.Configuration"/><add namespace="System.Text"/><add namespace="System.Text.RegularExpressions"/><add namespace="System.Linq"/><add namespace="System.Xml.Linq"/><add namespace="System.Web"/><add namespace="System.Web.Caching"/><add namespace="System.Web.SessionState"/><add namespace="System.Web.Security"/><add namespace="System.Web.Profile"/><add namespace="System.Web.UI"/><add namespace="System.Web.UI.WebControls"/><add namespace="System.Web.UI.WebControls.WebParts"/><add namespace="System.Web.UI.HtmlControls"/></namespaces><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"/><add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/></controls></pages><!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        --><!--
      The <authentication> section enables configuration 
      of the security authentication mode used by 
      ASP.NET to identify an incoming user. 
    --><authentication mode="Forms"/><!--
            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>
        --><!--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="ErrorPages/DefaultErrorPage.aspx"><error statusCode="403" redirect="ErrorPages/DefaultErrorPage.aspx" /><error statusCode="404" redirect="ErrorPages/missingPage.aspx" /></customErrors>--><httpHandlers><remove verb="*" path="*.asmx"/><add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/><add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/><add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/><add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/><add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/><add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/></httpHandlers><httpModules><add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/><add name="RadCompression" type="Telerik.Web.UI.RadCompression"/></httpModules><!--FILE UPLOAD LIMIT INCREASESD--><httpRuntime maxRequestLength="102400" executionTimeout="3600"/><!--THEMES--><!--<profile enabled="true"><properties><add name="Theme"/></properties></profile>--><!--END OF THEMES--><!--CUSTOM ERROR PAGES--><!--<customErrors mode="RemoteOnly" defaultRedirect="ErrorPages/DefaultErrorPage.aspx"><error statusCode="404" redirect="ErrorPages/missingPage.aspx" /></customErrors>--><!--END OF CUSTOM ERROR PAGES--><!--MULTIPLE SITEMAP--><siteMap defaultProvider="AspNetXmlSiteMapProvider"><providers><add name="QuizMenuProvider" siteMapFile="quizmenu.sitemap" type="System.Web.XmlSiteMapProvider"/><add name="AdminMenuProvider" siteMapFile="Web.sitemap" type="System.Web.XmlSiteMapProvider"/><add name="NauhaMenuProvider" siteMapFile="nauha/nauhamenu.sitemap" type="System.Web.XmlSiteMapProvider"/><add name="mainSiteMapProvider" siteMapFile="mainSiteMap.sitemap" type="System.Web.XmlSiteMapProvider"/><add name="videoSiteMapProvider" siteMapFile="video/videoSitemap.sitemap" type="System.Web.XmlSiteMapProvider"/><add name="GallerySiteMapProvider" siteMapFile="images1/gallery/gallerySiteMap.sitemap" type="System.Web.XmlSiteMapProvider"/></providers></siteMap><!--MULTIPLE SITEMAP ENDS--></system.web><system.codedom><compilers><compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"><providerOption name="CompilerVersion" value="v3.5"/><providerOption name="WarnAsError" value="false"/></compiler><compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"><providerOption name="CompilerVersion" value="v3.5"/><providerOption name="OptionInfer" value="true"/><providerOption name="WarnAsError" value="false"/></compiler></compilers></system.codedom><!-- 
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    --><system.webServer><validation validateIntegratedModeConfiguration="false"/><modules><remove name="ScriptModule"/><remove name="RadUploadModule"/><remove name="RadCompression"/><add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode,runtimeVersionv2.0"/><add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode,runtimeVersionv2.0"/></modules><handlers><remove name="WebServiceHandlerFactory-Integrated"/><remove name="ScriptHandlerFactory"/><remove name="ScriptHandlerFactoryAppServices"/><remove name="ScriptResource"/><remove name="ChartImage_axd"/><remove name="Telerik_Web_UI_SpellCheckHandler_axd"/><remove name="Telerik_Web_UI_DialogHandler_aspx"/><remove name="Telerik_RadUploadProgressHandler_ashx"/><remove name="Telerik_Web_UI_WebResource_axd"/><add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/><add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/><add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/><add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/><add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/></handlers><security><requestFiltering><requestLimits maxAllowedContentLength="104857600"/></requestFiltering></security></system.webServer><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></configuration>


There seems to be some error in web.config file. I am told that the issue is caused by duplicated entries in your web.config file.

website is not displaying anything. Nor even any error. Chrome browser "

This site can’t be reached

www.muharraminkashmir.com’s server IP address could not be found.

<div id="suggestions-list" jsdisplay="(suggestionsSummaryList && suggestionsSummaryList.length)" jstcache="6">"</div>

Legacy App-"3.5"- Setup error-allowDefinition='MachineToApplication'

$
0
0

Hi Team,

In our we company we have a legacy website which is in Dotnet 3.5. I am trying to setup locally in Win 10.

I am getting below error:

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

1.I have installed "Microsoft Visual Web Developer 2008 Express Edition".

2.To install 3.5 framework , i used the command prompt installation "DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:d:\sources\sxs"

because when i try install "dotNetFx35setup.exe" it is not installing.

3.In the app pool i have .NET Clr 2.0, 4.0

Screen shots:

https://ibb.co/gL9N5K

https://ibb.co/iVYRXz

Legacy App-"3.5"- Setup error-allowDefinition='MachineToApplication'

$
0
0

Hi Team,

In our we company we have a legacy website which is in Dotnet 3.5. I am trying to setup locally in Win 10.

I am getting below error:

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

1.I have installed "Microsoft Visual Web Developer 2008 Express Edition".

2.To install 3.5 framework , i used the command prompt installation "DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:d:\sources\sxs"

because when i try install "dotNetFx35setup.exe" it is not installing.

3.In the app pool i have .NET Clr 2.0, 4.0

Screen shots:

https://ibb.co/gL9N5K

https://ibb.co/iVYRXz

How to use VS 2012 with IIS 8.5 for debugging asp.net webform application?

$
0
0

We developed "employeeInfo" application which is based on .net framework 4.5 asp.net webform application and it runs well and able to debug on default asp.net development server. Our team has decided to develop further features for that application from IIS 8.5. For that, we enabled IIS 8.5 at our local machine. After that we hosted the "employeeInfo" Application at our local IIS 8.5. Configured Application pool with version 4.0. Opened that application in VS 2012 in administrator mode , enabled debugging, changed project setting to run at local IIS web server.
Break point is not hit, Based on "Attach to Process", I was not able to debug "employeeInfo" application at IIS 8.5.
After "Attach to Process" done, I checked Debug->Windows-> modules in VS2012, No symbols were loaded 
Please help us regarding this. Your valuable answer would be greatly appreciated.

Directory Browsing

$
0
0

How to browse directory from Local Machine to Server ?

Sending many emails by asp.net

$
0
0

i have 2 questions about sending many emails by asp.net

The emails are delivered by iis to Exchange server.

  1. Possible to track the email status - deliver to recipient mail server successfully.  it is not efficient to rely on return error email.
  2. Possible to have a mail queue in IIS in case of our sender mail server breakdown

Grateful for any advice.  thx.


web.config file showing error while hosting in godaddy server

$
0
0

i have an web application which has to be hosted on godaddy server.

custom errors mode should be off.. error keeps coming..

the following is web config file

<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
<httpRuntime/>
<httpModules>
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"/>
</httpModules>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701"/>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+"/>
</compilers>
</system.codedom>
<appSettings/>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<remove name="ApplicationInsightsWebTracking"/>
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler"/>
</modules>
</system.webServer>

</configuration>

The following is my connection. cs file

public class Connection
{

public SqlConnection getConnection()
{
SqlConnection con = null;
String conString = "server=148.72.232.167;user id=student_db_uname;password=student_db_uname;database=student_db";
try
{
con = new SqlConnection(conString);
}
#pragma warning disable CS0168 // Variable is declared but never used
catch (SqlException ex)
#pragma warning restore CS0168 // Variable is declared but never used
{

}
return con;
}
}

The connection string is what is in godaddy connection..

but still the error persists.. can some one help me.. please

Server Error in '/' Application.

$
0
0

Hey guys. I'm trying to load a local web page using Internet Information Services Manager and I've into the following problem.

Can someone point me in the right direction to get this resolved?

ERROR MESSAGE:

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: Could not load file or assembly 'System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Source Error: 

Line 378:        <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
Line 379:        <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />Line 380:        <add assembly="System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />Line 381:        <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
Line 382:        <add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />


Source File: C:\Users\tanak\Documents\Appleseed\WebSites\Appleseed\web.config    Line: 380 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

 


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3160.0

PLEASE HELP w/ this Annoying Microsoft .NET Framework error message

$
0
0

Hello, I get this really annoying message whenever anyone whether domain or admin users login into any desktop/laptop or even servers that's part of company network. This Microsoft .NET framework error message pops up, please see below,How do I fix and not have this annoying error message to not come up anymore!?? Any help would be greatly appreciated.

Microsoft .NET Framework error message: Unhandled exception has occurred in your application. If you click Continue, the application will
ignore this error and attempt to continue. If you click Quit, the application will close immediately. Unable to find the requested
.Net Framework Data Provider. It may not be installed.

When you hit Details button, Below is the long msg thats included.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.
at System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName)
at VBHelper.gsDataAccess.UpdateDBProvider()
at VBHelper.gsDataAccess.PropertyChanged(String propertyName)
at VBHelper.gsDataAccess.Flush()
at VBHelper.gsDataAccess..ctor()
at CacheDLLs.wfCacheProgress.LocateRunAsCredentials()
at CacheDLLs.wfCacheProgress.wfCacheProgress_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3163.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
CacheDLLs
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
Code Base: file:///C:/Users/"Domain_username"/App Data/Local/Temp/GSS/CacheDLLs.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3151.0 built by: NET472REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
VBHelper
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/"Domain_username"/AppData/Local/Temp/GSS/VBHelper.DLL
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3160.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
System.Data.OracleClient
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data.OracleClient/v4.0_4.0.0.0__b77a5c561934e089/System.Data.OracleClient.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Error: it cannot be referenced by a project that targets .NETFramework, version=v4.7.2

$
0
0

Hi,

I have 5 projects in a solution.  the 4 projects targets framework .net core 2.1.  The UI Web App Framework targets .Net Framework 4.7.2.

I'm running into error the Web App references 2 of the projects where the framework is .net core 2.1:

Project '..\Person_WebAPI.Client\Person_WebApp.Client.csproj' targets 'netcoreapp2.1'. It cannot be referenced by a project that targets '.NETFramework,Version=v4.7.2'. Person_WebApp   

I already changed the UI Web App Framework to v 4.6.1, v4.5, I still get the same error.

Please help!

Best,

tinac99

Website crashes when a new application is added

$
0
0
Hello everyone,
I am facing a very critical issue with my company website. Managed by a vweb developer. Currently due to a new project going on gave access to another party to upload the new web service under our domain.
A precompiled application is already running there so when new application is uploaded the website crashes. Im no developer but after long discussion with both parties when the new application is compiled and uploaded it somehow overwrites the existing app_code.dll inside the bin directory.
Meaning there are now two app_code.dll files. One previously existing and the website is running, but overwrite with the new application app_code.dll the webservice is working but the website is down.
I am stuck in between both vendor issues n all and need some professio al advise on how to address this issue. Is there a way both these app_code.dll files can be merged or something. Any change and website goes down then I have to request the vendor to fix it. I am not sure but he said copying some published.zip folder inside wwwroot directory, delete the bin folder and unzip the published.zip file. Website is again up and running and the publisged.zip file is moved back outside of wwwroot folder.
Viewing all 3561 articles
Browse latest View live


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