Quantcast
Channel: ASP.NET Administration
Viewing all 589 articles
Browse latest View live

HTTP Error 405.0 - Method Not Allowed to a redirected Site

$
0
0

Hi,

I have a simple asp.net App with Label Text “Start” in default.aspx:

http://soapp.melchers-software.de/Company_Logo_DV

Now dies Page should be user-authenticated with SAML-Token then redirected from a URL of our CRM-System SuperOffice:

https://sod.superoffice.com/login/?app_id=ed430dd39fbebcb7daf9c7e1b52ec515

Then I get HTTP-Error 405.0 - Method Not Allowed:

According to this Error Information, I have checked the Handler Mapping of this App in our IIS of a Windows 2016 Web Server, the staticFile and all *.aspx Files are allowed with all Verbs and allocated with its File and Folder, then reload the Page, it still comes this 405.0 error:

Under this Site “soap”, other Apps have no Problem to be user-authenticated then redirected from SuperOffice URL to start the Page.

I have also asked our CRM, SuperOffice Support, they said there is nothing to find from their site, it must get Support from here thehttps://forums.iis.net/ with Microsoft IIS issues.

Thanks a lot for your Helps!

-- Jianchun


Lee Hnetinka- how to become Asp Dot Net Developer?

$
0
0

Dear friends,

Lee Hnetinka want to learn asp dot net programming language , how it is possible for me.

Please share with me some ideas

HTTP Error 500.22 - Internal Server Error

$
0
0

Hi all,

my asp.net mvc 5 app was working fine until i tried to implement rdlc reporting. with no success i removed all reporting dll's with nuget and when i tried to run my app i got this error

////////////////////////////

<div class="content-container">

HTTP Error 500.22 - Internal Server Error

An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.

</div> <div class="content-container">

Most likely causes:

  • This application defines configuration in the system.web/httpModules section.

</div> <div class="content-container">

Things you can try:

  • Migrate the configuration to the system.webServer/modules section. You can do so manually or by using AppCmd from the command line. For example, from the IIS Express install directory, run appcmd migrate config "Default Web Site/". Using AppCmd to migrate your application will enable it to work in Integrated mode. It will continue to work in Classic mode and on previous versions of IIS.
  • If you are certain that it is OK to ignore this error, it can be disabled by setting system.webServer/validation@validateIntegratedModeConfiguration to false.
  • Alternatively, switch the application to a Classic mode application pool. For example, from the IIS Express install directory, run appcmd set app "Default Web Site/" /applicationPool:"Clr4ClassicAppPool". Only do this if you are unable to migrate your application.

</div> <div class="content-container">

Detailed Error Information:

<div id="details-left">
Module   ConfigurationValidationModule
Notification   BeginRequest
Handler   ExtensionlessUrlHandler-Integrated-4.0
Error Code   0x80070032
</div> <div id="details-right">
Requested URL   https://localhost:44321/
Physical Path   D:\Programiranje\C#\mojapp\Quiz\Quiz
Logon Method   Not yet determined
Logon User   Not yet determined
Request Tracing Directory   C:\Users\Stefan\Documents\IISExpress\TraceLogFiles\QUIZ
<div class="clear"></div> </div>

</div> <div class="content-container">

More Information:

Integrated mode is the preferred mode for running ASP.NET applications on IIS 7.0 and above.

View more information »

/////////////////////////////

the thing is i dont know much about iis administration, but i would like to use Integrated managed pipeline as i was until now. 

can you please help me i am using iis 10.

ive tried run appcmd migrate config "Default Web Site/" but i get error that appcmd is not recognized and appcmd.exe is present in folder 

</div>

Not able to debug in Visual Studio 2017- Firefox only (Chrome works)

$
0
0

I am seeing this error when I try to debug in Visual Studio 2017. I can't change anything on IIS, so what do I do?

Here is my web.config:

<system.web><machineKey validationKey="472746AFE7C9E160AC970C6D28A3F0102967298BFB861738AD43DC2227EDD1F6BE543000AE7976A893D50C67216ABAB757FF50FAD65401AF12EA8F2F8351BBF4" decryptionKey="34DC01312C3C8DC6C5A61B226076C24281EBEB0DA1575466" validation="HMACSHA256" decryption="AES"/><trust level="Full"/><compilation debug="true" targetFramework="4.6.1"/><httpRuntime targetFramework="4.6.1"/><pages><namespaces><add namespace="System.Web.Optimization"/></namespaces><controls><add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt"/><!--<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />--></controls></pages><authentication mode="None"/><authorization><deny users="*" /></authorization></system.web><runtime><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed"/><bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0"/></dependentAssembly><dependentAssembly><assemblyIdentity name="WebGrease" culture="neutral" publicKeyToken="31bf3856ad364e35"/><bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234"/></dependentAssembly><dependentAssembly><assemblyIdentity name="Common.Logging.Core" publicKeyToken="af08829b84f0328e" culture="neutral"/><bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0"/></dependentAssembly><dependentAssembly><assemblyIdentity name="Common.Logging" publicKeyToken="af08829b84f0328e" culture="neutral"/><bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0"/></dependentAssembly></assemblyBinding></runtime><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>

<div class="content-container">

HTTP Error 401.2 - Unauthorized

You are not authorized to view this page due to invalid authentication headers.

<div class="content-container">

Most likely causes:

  • No authentication protocol (including anonymous) is selected in IIS.
  • Only integrated authentication is enabled, and a client browser was used that does not support integrated authentication.
  • Integrated authentication is enabled and the request was sent through a proxy that changed the authentication headers before they reach the Web server.
  • The Web server is not configured for anonymous access and a required authorization header was not received.
  • The "configuration/system.webServer/authorization" configuration section may be explicitly denying the user access.

</div> <div class="content-container">

Things you can try:

  • Verify the authentication setting for the resource and then try requesting the resource using that authentication method.
  • Verify that the client browser supports Integrated authentication.
  • Verify that the request is not going through a proxy when Integrated authentication is used.
  • Verify that the user is not explicitly denied access in the "configuration/system.webServer/authorization" configuration section.
  • Check the failed request tracing logs for additional information about this error. For more information, clickhere.

</div> </div>

Hindi lengvaige to ASP

404 when trying to access aspx on IIs

$
0
0

Signed up for the free tier on Amazon webservices. Installed an EC2 Instance using window server 2016. Enabled IIs. 

Static pages work fine but for some reason when I try to access aspx pages I get a 404.

url Rewrite question

asp. net web app with IIS server

$
0
0

Hi all,

I believe this is the right place to post this.

First all, I haven't got much knowledge on coding but I can do a few simple tweaks on html and java. So I will put you in situation.

I have a web app which there is a text editor and I would want to add more fonts to it. I have update the css style with the new webfonts and then I am trying to localise where this combobox is, so I can add the new fonts. Moreover, I thought  it was a good idea to use visual studio and go through the design view which it would be easier for me to identify where this code is located. Unfortunately, my design view is blank when I try to preview the main .htm. Tried the same process in a few editors and always get the design view in blank.

This web app run through an IIS server which I believe I have installed all what is required but I must be missing something somewhere. Obviously, if I run the web app from a browser worked completely, the issue comes when I try to change the code and identify it in a visual design. 

I hope I explained well and I apologize if this isn't the right place to post it, but this is driving me mental as I spent 3 full days on this.

I look forward to hearing from your suggestions/ideas.

Thank you 

Juan


Trouble with my website

$
0
0
First i'm sorry for my english.
My problem is with my SharePoint Website running on MOSS 2007 on a Windows Server 2003 with IIS 6.0 ans ASP Net 2.0.
My website was working very well but after some configuration on ISS console i got this issue.
When i try to access to my website with this URL: http://myserver i got an error Message : Content view is not allowed for this virtual directory.
But when i try with this URL http://mywebsite/default.aspx it's working but my CSS and JS file are not loaded. So i get an aspx page without my customisation.
I tried to give all right to my directory wwwroot to different user like thé ASP user, to ISS user ... Without any result.
The strange thing it's :
- when i try to go to my default site which use ASP Net 1.0 it's working well...
- When i try to read my SharePoint list from ACCESS 2007 or directly from the web by the direct URL it's Works
- but when i try to open my website from SharePoint designer it's impossible.

Thanks on avance for any help.

Windows authentication

$
0
0

Hello

IIS 10 Windows authentication problem (401 – Unauthorized: Access is denied due to invalid credentials)

 - web server with windows authentication is enabled.

Site is working only with anonymous authentication. 

Added registry with 'Backconnetionhostnames' key.

how to resolve this issue?

Thank you

Anil

Load Balancer & Keeping Sites Warm

$
0
0

Hello,

We are running IIS 10 for our sites and have a bit of a conundrum. Our sites often go cold due to lack of visitors. This causes the email alerts that are supposed to be triggered when certain data from our databases matches the trigger to fail. To resolve this, our developers created something similar to a spider, so that the sites will be periodically visited. This works fine and all, but there are two problems: 1) we have a load balancer and this spider-like tool is set only to do so on one server which overwhelms that server. 2) The spider is setup with hard coded sites that we have to physically enter into its configuration file (I have suggested to my boss using a script to re-populate the site names from IIS into the spidering program , so that we are not having to hard code everything).

I just started using IIS a few months ago and am still getting used to the setup. I did some research and read about the Application Initialization module as a means to keep sites warm. Will this solve any of our problems or meet my needs? I worry since it may still have the same load balancer issues and am struggling to come up with a way to adequately load balance it to not overwhelm a single server as well as to keep the sites alive to allow for our email alerts to trigger for our customers. Does anyone have any recommendations or a similar setup?

Strange situation where 32 bit app runs on IIS 10 without enabling 32 bit????

$
0
0

Hi,

I work in DevOps.  Our infrastructure is on Azure.

One of our clients has two Windows 2016 servers running IIS 10.  On one we had to set the application pool to enable 32 applications to run.  On the other one that setting is not enabled but the same application runs.

I have been trying to figure out how that is even possible but have not come up with an answer yet.

Any help understanding this situation is appreciated.

Thanks in advance!

Steve

IIS 8.5 Asp.net and Application Pools

$
0
0

We have multiple 2012 R2 Servers in our QA environment running ASP.Net websites and one of them is giving us problems when we run multiple 4.0 Websites under one application pool. The most recent problem was that one of the websites was not recognizing the handlers in the  system.webServer section. We were receiving 404.0 and error like "No http handler was found for request type 'POST'". When I segregated the one website to a separate application pool the problems went away. We have other servers that are set up with multiple application (in this case it was 3) running under thew same pool and they work fine.

The web.configs target frameworks are set to 4.5.1 for the websites. Also none of the production servers have a problem.

I don't like have inconsistencies in IIS configurations and have not been able to determine the root cause of this issue, hence I am posting here for input.

Thanks

IIS 8.5 Fills up pool max with one asp.net post

$
0
0

Hi,
I've got an ASP.Net app running on IIS 8.5. The app ran great for 2 years, and today gets a max pool size error:
EventID: 1309, EventCode: 3009.
This is an employee application. The app will run fine empty, and retrieve employee data from db using a dropdownlist,
but even immediately after recycling the app pool and site,
when attempting a launch from an email link, with employee# for auto retrieval, it times out on max pool.

Any help or guidance is greatly appreciated.

thanks
Vincent

----------------------------------------------------------
Here's the generic error from server event log:

Event code: 3005

Event message: An unhandled exception has occurred.

Event time: 1/21/2019 1:59:45 PM

Event time (UTC): 1/21/2019 6:59:45 PM

Event sequence: 21

Event occurrence: 6

Event detail code: 0

Application information:

    Trust level: Full

    Application Virtual Path: /

 Process information:

    Process ID: 4432

    Process name: w3wp.exe

Exception information:

    Exception type: InvalidOperationException

    Exception message: Timeout expired.  The timeout period elapsed prior to obtaining a connection from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached.

   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.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)

   at System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)

   at System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e)

   at System.Web.UI.WebControls.ListControl.PerformSelect()

   at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()

   at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()

   at System.Web.UI.WebControls.ListControl.OnPreRender(EventArgs e)

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Request information:

    Request URL: http://sql1:83/e3_default.aspx

    Request path: /e3_default.aspx

    User host address: x.x.x.x

    User:xxx

    Is authenticated: True

    Authentication Type: Negotiate

    Thread account name: xxx

Thread information:

    Thread ID: 12

    Thread account name: xxx

    Is impersonating: False

    Stack trace:    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.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)

   at System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)

   at System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e)

   at System.Web.UI.WebControls.ListControl.PerformSelect()

   at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()

   at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()

   at System.Web.UI.WebControls.ListControl.OnPreRender(EventArgs e)

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Event ID : 2262, Source : IIS-W3SVC-WP

$
0
0

Hi All,

I am receiving the follow alert for some months now. We are unable to locate the root cause. I am a system administrator.

CERRAPW02.ASPNC.local

2262

07/02/2019 08:37:04

W3SVC-WP

ISAPI 'C:\windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll' reported itself as unhealthy for the following reason: 'Deadlock detected'.

<div class="e"> <div class="c">-<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"></div><div> <div class="e"> <div class="c">-<System></div> <div> <div class="e"> <div> <ProviderName="Microsoft-Windows-IIS-W3SVC-WP" Guid="{670080D9-742A-4187-8D16-41143D1290BD}" EventSourceName="W3SVC-WP" /></div> </div> <div class="e"> <div> <EventID Qualifiers="32768">2262</EventID></div></div> <div class="e"> <div> <Version>0</Version></div> </div> <div class="e"><div> <Level>3</Level></div> </div> <div class="e"> <div> <Task>0</Task></div> </div> <div class="e"> <div> <Opcode>0</Opcode></div> </div> <div class="e"> <div> <Keywords>0x80000000000000</Keywords></div> </div> <div class="e"> <div> <TimeCreatedSystemTime="2019-02-07T08:37:04.000000000Z" /></div> </div> <div class="e"> <div> <EventRecordID>1343306</EventRecordID></div> </div> <div class="e"> <div> <Correlation/></div> </div> <div class="e"> <div> <ExecutionProcessID="0" ThreadID="0" /></div></div> <div class="e"> <div> <Channel>Application</Channel></div> </div><div class="e"> <div> <Computer>CERRAPW02.ASPNC.local</Computer></div></div> <div class="e"> <div> <Security/></div> </div> <div> </System></div> </div> </div> <div class="e"> <div class="c">-<EventData></div> <div> <div class="e"> <div> <Data Name="IsapiExtension">C:\windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll</Data></div></div> <div class="e"> <div> <Data Name="UnhealthyReason">Deadlock detected</Data></div></div> <div class="e"> <div> <Binary/></div> </div> <div> </EventData></div> </div> </div> <div> </Event></div> <div></div> <div></div> <div>Can someone please advise.</div> <div></div> <div>Thank,</div><div>Nitish</div> </div> </div>

Problems with the application "cleaning the WSUS server"

$
0
0

Hello,

I come to you after cleaning the network information, and I admit that I am a little blocked. I work in a clinic that has configured its update server. As for the days to come, everything works niquel, and the information is well transcribed, on the other hand, when I go in: Options => Server Cleanup.

The administration console has been connected to the server. Verify that the Update Services service, Internet Information Services (IIS), and SQL are running on the server. If the problem persists, try restarting IIS, SQL, and the Update Services service. System.Net.Sockets.SocketException - An existing connection must be closed by the remote host Source System.Windows.Forms Trace of the pile: at System.Windows.Forms.Control.MarshaledInvoke (Control Caller, Delegate Method, Arguments Object [], Synchronous Boolean) at System.Windows.Forms.Control.Invoke (Delegate Method, Object [] args) to Microsoft.UpdateServices.UI.SnapIn.Wizards.ServerCleanup.ServerCleanupWizard.OnCleanupComplete (Object Sender, PerformCleanupCompletedEventArgs e)

The event ID is 5011 .

I tried what is indicated by the error message but nothing. I specify that I am on a server Windows 2012 Here it is, if someone has a solution, I am a taker. If it lacks information, I remain available.

Regards,

The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration

$
0
0

My system: I have installed Windows 7, VS2010 and .NET40 and ASPAJAXExtSetup.msi

I used to work with vs2008 and .NET3.5, after installing VS2010 I upgraded to .NET40. I dont think that is the issue here, but it might be something you need to know :)

My problem seems to arise from something within IIS, but I have no idea.

I'm getting the error below.

<div> Error Summary

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

</div> <div> Detailed Error Information <div id="details-left">
ModuleIIS Web Core
NotificationUnknown
HandlerNot yet determined
Error Code0x80070032
Config ErrorThe configuration section 'system.web.extensions' cannot be read because it is missing a section declaration
Config File\\?\C:\inetpub\tickets\web.config
</div> <div id="details-right">
Requested URLhttp://www.tickets.com:80/
Physical Path
Logon MethodNot yet determined
Logon UserNot yet determined
</div> </div> <div> Config Source
   45: 	</connectionStrings>
46: <system.web.extensions>
47: <scripting>
</div>

My web.config:


<?xml version="1.0"?>
<configuration>
    <connectionStrings>        
    </connectionStrings>
    <system.web.extensions>
        <scripting>
            <webServices>
                <!--http://weblogs.asp.net/andrewfrederick/archive/2008/02/18/a-client-side-ajax-login-for-asp-net.aspx-->
                <authenticationService enabled="true" requireSSL="false"/>
            </webServices>
        </scripting>
    </system.web.extensions>
    <system.web>
        <httpHandlers>
            <add path="ChartImg.axd" verb="GET,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
        </httpHandlers>
        <compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
            <assemblies>
                <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies></compilation>
        <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
            <namespaces>
                <clear/>
                <add namespace="System"/>
                <add namespace="System.Collections"/>
                <add namespace="System.Collections.Specialized"/>
                <add namespace="System.Configuration"/>
                <add namespace="System.Text"/>
                <add namespace="System.Text.RegularExpressions"/>
                <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.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            </controls>
        </pages>
        <sessionState mode="InProc" timeout="60"/>
        <authentication mode="Forms">
            <forms name=".MyCookie" slidingExpiration="true" timeout="60" cookieless="AutoDetect" loginUrl="/login/" protection="All" defaultUrl="/">
                <credentials passwordFormat="SHA1"/>
            </forms>
        </authentication>
        <customErrors mode="Off" defaultRedirect="/contact.aspx">
            <error statusCode="404" redirect="/contact.aspx"/>
        </customErrors>
        <roleManager domain="192.168.0.103" enabled="true" cacheRolesInCookie="true" cookieName=".ASPXROLES" cookieTimeout="60" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" cookieProtection="All" defaultProvider="AccessRoleProvider" createPersistentCookie="false" maxCachedResults="25">
            <providers>
                <clear/>
                <add name="AccessRoleProvider" connectionStringName="conn1" applicationName="/tickets" type="Samples.AccessProviders.AccessRoleProvider"/>
            </providers>
        </roleManager>
        <membership defaultProvider="AccessMembershipProvider" userIsOnlineTimeWindow="30">
            <providers>
                <clear/>
                <add name="AccessMembershipProvider" type="Samples.AccessProviders.AccessMembershipProvider" connectionStringName="conn1" requiresQuestionAndAnswer="false" applicationName="/tickets" minRequiredPasswordLength="6" enablePasswordRetrieval="false" enablePasswordReset="true" requiresUniqueEmail="true" minRequiredNonalphanumericCharacters="0" passwordFormat="Hashed"/>
            </providers>
        </membership>
    </system.web>

    <system.webServer>
        <validation validateIntegratedModeConfiguration="false"/>
        <modules runAllManagedModulesForAllRequests="true">
        </modules>
        <handlers>
            <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        </handlers>
        <rewrite>
            <rules>
                <rule name="ordermanagement">
                    <match url="^eventmanager/ordermanagement/([0-9]+)"/>
                    <action type="Rewrite" url="ordermanagement.aspx?eventid={R:1}"/>
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

 

I then checked out this page: http://mvolo.com/blogs/serverside/archive/2007/12/08/IIS-7.0-Breaking-Changes-ASP.NET-2.0-applications-Integrated-mode.aspx

And now Im trying this:
%windir%\system32\inetsrv\Appcmd migrate config "c:\inetpub\tickets"

But I get the error:
ERROR ( message:Cannot find APP object with identifier "c:\inetpub\tickets"". )
I also tried:
%windir%\system32\inetsrv\Appcmd migrate config "tickets"

But still no luck..
What am I doing wrong?

Error with microsoft.web.administration

$
0
0

I have a web project in Visual Studio 2017 that is using ASP.net with Microsoft.Web.Administration to get a list of sites on IIS from another server.  The following code works in an F# console app but throws an error in my asp.net mvc application.

var remoteserver = ServerManager.OpenRemote("SVRDEV1")
var sites = remoteserver.Sites;

Retrieving the COM class factory for remote component with CLSID {2B72133B-3F5B-4602-8952-803546CE3344} from machine SVRDEV1 failed due to the following error: 80040154 SVRDEV1

System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0 System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +119 System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +232 System.Activator.CreateInstance(Type type, Boolean nonPublic) +83 System.Activator.CreateInstance(Type type) +11



When I use the same call to the same server in an F# 4.7.2 framework application it works.  Any suggestions why this does not work from Visual Studio IIS Express ?   I am using the same nuget package for both projects.

Thank you

.NET Web Noone can Access

$
0
0

 have a .NET web site with back-end SQL Server with IIS as web server. all on one machine. The configuration worked perfctly in Windows 7, but Had to reimage the machine nad got Windows 10. Now, I can access the web app but noone else can. 

The web app is developed in C# and IIS is set up with basic authentication with impersonation for authenticated users. This is an intranet website. I also updated .NET Framework to 4.x and Visual Studio to 2017 from 2010 to support TLS 1.2. 

I have given access to both Network Service and IUSR users, also the app pool user. No difference. There are no code changes, I just recompiled and re-published the website.I live in the world of domain and AD and there is no possibility that IT would create a user group. 

Also, when I publish in Visual Studio 2017, it adds an application to the app pool with the folder pointing to the source code folder rather than under inetpub\wwwroor\Default Web Site\MySite. This leads to an error and I have to go nad modify the applicationHost.config to remove that folder reference. and everything would work. I looked but could not find any publish reference to the source code folder.  Not sure if thsi is related to the bigger issue.

Any thoughts on how to make it work? Thanks in advance.

"HTTP Error 404.17 - Not Found" when I try to open a .aspx file

$
0
0

Good morning, I have a problem when I try to display into a browser a web-application, developed in .aspx and .aspx.vb format (through the Visual Studio 2017 environment). I distributed the app itself on a Windows 2012 R2 server, in which I uploaded both the ASPX 2.0 and 4.5 frameworks and the IIS.

In the IIS, through the Server Manager, I connected the app to the website on which I want to view it. The problem, however, is that when I type the address of the site and the name of the .aspx file on the browser, I read the following words: "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable".

"Locally", when the web-app is located on the C and/or D disks (inside the server), if I try to open the website I found this problem: "HTTP Error 404.17 - Not Found. 

Most likely causes:

The request matched a wildcard mime map. The request is mapped to the static file handler. If there were different pre-conditions, the request will map to a different handler.

Things you can try:

If you want to serve this content as a static file, add an explicit MIME map."

How can I solve, and so to see the page I want to visit?? Thank you in advance.

Viewing all 589 articles
Browse latest View live


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