Quantcast
Channel: All Forums
Viewing all 26858 articles
Browse latest View live

"No managed code" and web.config

$
0
0

Hi!

  I have a site with an application pool running over .Net 2.0. This site has a web.config with configsections defined, like "system.web.extensions", "scripting"... about the .NET 3.5 version.

 Sample:
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />

 

  Well, I need run a new application (called stats) under the site, but it doesn't need any code, so it runs with an application pool without .NET, i.e., with "No managed code" configured.

  When I try run stats, I have got an HTTP error 500:

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

 

The only way to get this error is reading the .NET 4.0 file machine.config, but i don't understand why it's occuring. Site is .NET 2.0 and stats is with "No managed code".

Any idea about this?

 

Regards and thanks in advance!


Max pool reached and unable to create connection with database

$
0
0

Is Server Restart Required, after upgrading the Hardware like CPU and RAM of a server..

Or is Webservice Restart is enough ?

Skip files from syncing in Web Farm framework using skipDirectives

$
0
0

Hello, 

I am trying to set up WFF and skip certain files from syncing. Below is the file structure for my IIS installation:

D:\Web\default_site - Default Web Site

D:\Web\Site1 - Site1

D:\Web\Site2 - Site2

I am using skipDirectives in applicationHost.config on the controller server to skip lbtest.asp and lbtest.bak files located on root of each site (Default, Site1, Site2).

 <skipDirectives>

    <skip name="skipfile1" skipDirectives="objectName=^filePath$,absolutePath=\\lbtest\.asp$'"

   <skip name="skipfile2" skipDirectives="objectName=^filePath$,absolutePath=\\lbtest\.bak$'"

 </skipDirectives>

Unfortunately, the files are still syncing. 

 

How to detect url, first containing directory with query string and second having simple .aspx file with query string

$
0
0

I have two Pages having rewritten URLs,

First one is WWW.domain.com/test/page.aspx?id=2&URL=3
which is re-written like WWW.domain.com/test/page/2/3/

Second one is WWW.domain.com/page.aspx?id=1&URL=2&query=3 which is re-written like WWW.domain.com/page/1/2/3/

Now how can i differentiate these URL because in general both looks same.

In real first page is in the sub-directory and other is in the root directory

I have tried a rule which is written below but it is getting call for both URL due to regular expression pattern match.

Can any one help me to map these URL, i think both the URL should match by different rules.

or If this is not the way to do it. kindly tell me what is the way to handle this.

 <rule name="RewriteUserFriendlyURL2" stopProcessing="true">
                    <match url="^([^/]+)/([^/]+)/([^/]+)/([^/]+)/?$" />
                    <conditions>
                        <add input="{REQUEST_FILENAME}" pattern="^([^/]+)" />
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="false" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="false" />
                    </conditions>
                    <action type="Rewrite" url="{R:1}/{R:2}.aspx?{R:3}={R:4}" />
                </rule>

If you feel any difficulty in understanding my question kindly let me know. Thanks.

The asp_net folder problem

$
0
0

Hello

Sometimes the web deploy fails because it hasn't enough rights to delete the empty folder "asp_net", which IIS sometimes generates inside a web application. At the moment we have from time to time log on the server and delete the folder by hand and then start the deploy process again, which is quite annoying.

Is there a way to solve this problem? Either ignore the asp_net folder or make it deletable or something else?

Problems with Live Site on IIS 6.0

$
0
0

Hello,

We are having this issue on our production servers with one of our site stops working, when we hit the URL we get message "Server Restarting..." and it stalls for some time

While looking into Event Logs on the server we found this error msg:

"Cannot register the URL prefix "http://*:80/" for site "1". The necessary network binding may already be in use. The site has been deactivated. The data field contains the error number."

Any idea what could be issue here and what can we do to fix this? This is happening very frequently which is hitting us hard.

Any help would be appreciated.

Thanks!

Cheers

Amit

applicationHost.config corruption, 32bit system acting like x64

$
0
0

Windows 7 32-bit system. Heavy developer tools installations (VS2008,10, SSMS). IIS 7 has began to act as though it thinks its on a 64-bit install, specifically in terms of the applicationHost.config file. The user was trying to remove sites in IIS7 and it began to start throwing the error below:

Trying various replacements to repair this file were worthless. Viewing the file utilizing Visual Studio or a third party editor such as Notepad++ would show that the file was complete. Just for kicks and knowing of the infamous 64 bit files system replicators, I decided to view the file in windows notepad. Which did show the file was just cut off and EOF for some reason (see below):

It gets better, when you view the file in something like notepad++, it is completed. I even went as far as copying and pasting the rest of the config into windows notepad. It allows me to save it and re-opening it reflects the changes, but as soon as I attempt configuration changes within the IIS7 UI that would reflect in this file, I end up right back at the "not well-formed XML" error dialog in the first image.

This occurred to another developer's machine many months ago. We spent some time troubleshooting it, including removal and re-installation of IIS7 with no luck. The users machine was blown away and rebuilt then but we attributed it to possible OS corruption. Now that this has popped up again, we're concerned it may become a recurring issue. Unfortunately I cannot remember if the previous problematic machine was a 32bit or 64bit machine. 


Error: ASN1 bad tag value met. 0x8009310b(ASN: 267) when installing a VeriSign SSL certificate using IIS 7 server

$
0
0

Hello... Is anyone seen this error when attempting to install a VeriSign chain certificate using IIS 7 server?

 CertEnroll:CX509Enrolment:p_InstallResponse: ASN1 bad tag value met. 0x8009310b(ASN: 267)

 I have search the internet to no avail... Any help is greatly appreciated.

 Thank you

 


 

 


Continue Supporting Classic ASP Indefinitely

$
0
0

I've heard a lot of rumors about Classic ASP being one day being unsupported entirely in IIS sometime in the next decade.

My feedback:  keep supporting it.

I realize that its old and its DLL is written in VB6 which is also old,  and there's plenty to complain about in regards to lack of updates. But there's still demand to use for it on the world wide web that isn't fading off as fast as you might think.

I like to gauge the level of continued-usage by looking to Google. You can search for filetypes and get a count for each like so:

filetype:asp

Near the top of the page it gives you a count for the number of results returned. So today I decided to compare the number returned for various common file types found in search results. Here are the results that were returned:

Google SearchCount Returned
filetype:php
About 9,030,000,000 results
filetype:asp
About 1,340,000,000 results
filetype:aspx
About 1,830,000,000 results
filetype:jsp
About 434,000,000 results
filetype:cgi
About 315,000,000 results
filetype:py
About 75,000,000 results
filetype:pl
About 118,000,000 results
filetype:html
About 14,500,000,000 results
filetype:htm
About 738,000,000 results


If we use these numbers as an indicator for popularity, clearly Classic ASP's level is nowhere near that of the mighty PHP. However, its not terribly far behind that of ASP.NET either. And it seems certianly more popular than some of the others shown. So my argument is: why throw away something that works and is still being used? Seems an awful waste.

How do you disable a handler mapping in IIS 7

$
0
0

I have two handler mappings on my Windows 2008, IIS 7 web server that I need to disable (ISAPI-dll and CGI-exe). I can't find an option to do that on the Handler mappings page, and the applicationhost.config on the server I need to disable it on looks identical to the one on the server where they are disabled.  Can anyone tell me how to disable them?

 Any assistance is appreciated.

thanks

terri

How to generate multiple camera angles .ism and .ismc using Transform Manager

$
0
0

Hello,

Does anybody know how to generate a .ism and .ismc with multiple camera angles?

Below is the sample I tried but the chunks generated and specified in the .ism and .ismc for the camera angles are not aligned and it is giving me 404 errors when I play them back.

http://msdn.microsoft.com/en-us/library/gg134026(v=vs.95).aspx

Thanks in advance.

Yannick

Windows Auth - AD LDS Instance

$
0
0

i'm an IIS noob, so please be gentle. :)

 

I have a server 2008 R2 running IIS 7.5, and would like to turn on authentication for a website against an LDS Instance.  The LDS instance sits on another server 2008 R2 box with the AD LDS role added. I believe I need to use Windows Authentication for this, using NTLM, I could be wrong there.  I've enabled that authentication and am gettnig the login prompt on my website now; but where do I go about configuring the settings to have it authenticate against my LDS Instance?

Also, a side note, eventually I have to move this to our production server (server 2003, running IIS 6.0), so i'm hoping whatever method I get working in test is someting I could implement on our prod server.

 

Any help is greatly appreciated.

Thanks!

What is a wildcard

$
0
0

Hello,

I wanted to get a wildcard certificate for my domain and I searched around and found a fairly inexpensive place to get one.  When I first set it up I seemed to do it incorrectly on their site and had to pay a $25 fee to get it revoked. 

From what I understand from the company a wildcard certificate will only work for subdomains that I specify prior to making the certificate.  This does not make any sense to me, I would think that a wildcard certificate is good for any subdomain that I have now or dream up in the future.

I have never created a wildcard certificate but have used them in the past and I think that I'm correct.  Can someone let me know what a wildcard certficate is and how it is used and if I will have to pre-load all my subdomains into the wildcard certificate.

Thank you,

Below is the thread I have been having with their tech support

On 12/05/2013 06:04 AM, Robert Sieloff wrote:

Hi Karen,

 

Being a neophyte perhaps I�??m not using correct terminology.

 

My domain is Sieloff.com

 

I would consider exchange.sieloff.com or sharepoint.sieloff.com sub domains, correct?

(support response) No the wild card certificate will cover all recent sub domains (not future). If you want to add some sub domain, you need to recreate the same certificate and add new sub domain manually. (/end)

 

When I think of a wildcard certificate I would think that I could create a certificate that allows for <<anyname>>.sieloff.com now and in the future subdomain for as long as my certificate is valid, is that correct?

 

Thanks for your patience and help explaining,

-Bob

 

From: StartCom CertMaster (Karen Sargsyan) [mailto:certmaster@startcom.org]
Sent: Wednesday, December 04, 2013 9:47 PM
To: Robert Sieloff
Subject: Re: StartSSL Certificate revoked, 05 Dec 2013 04:33

 

Yes. The wildcard certificate can be used on any current sub domain.

On 12/05/2013 05:32 AM, Robert Sieloff wrote:

Hello Karen,

 

Is this a standard wildcard certificate then?  When I was looking around for a certificate company it was explained that a wildcard certificate could be used on any subdomain I had.  I have used wildcard certificates in the past and that seemed to be the case, unfortunately I have never had to create one.

 

Thanks again,

-Bob

 

From: StartCom CertMaster (Karen Sargsyan) [mailto:certmaster@startcom.org]
Sent: Wednesday, December 04, 2013 9:02 PM
To: Robert Sieloff
Subject: Re: StartSSL Certificate revoked, 05 Dec 2013 04:33

 

On 12/05/2013 04:56 AM, Robert Sieloff wrote:

Hello Support,

 

I would like to create a wildcard certificate for my domain but I have run into issues in the past and am looking to complete this correctly.

 

Reading from the FAQ's on the site, #38 seems to talk about a wildcard certificate.  It states that I will need to validate all my domain names first.  Does this mean I will need to know all my future domain names first before creating a wildcard certificate?  Ie (exchange.sieloff.com, sharepoint.sieloff.com, web.sieloff.com, security.sieloff.com, etc..).

(support response) Yes you need to validate all your domains and know all sub domains. (/end)


  If this is the case and I need to know all my future domain names, if in the future I need to add another domain name that I did not include in the original request will I be able to do that?

(suuport response) No you can't edit created certificate. If you need to add some sub/domain simply create a new certificate. (/end)


 

Thanks for your help,

-Bob

 

https://www.startssl.com/?app=25#38

                                                                        38.) How can I   use the same certificate on multiple servers?

For this you need to have   your identity validated. Once Class 2 or higher validated you can create   certificates with multiple domain names. To achieve this, validate all your   domain names first, then select the "Certificates Wizard"   and "Add More" when selecting the domain names you wish to   have included. This is specially useful if you are deploying Exchange, IIS   and ISA servers or virtual hosts with only one unique IP (Only IIS and newest   Apache support this).

 

 

-----Original Message-----
From: StartCom CertMaster (Karen Sargsyan) [mailto:certmaster@startcom.org]
Sent: Wednesday, December 04, 2013 8:33 PM
To: Robert Sieloff
Cc: Robert Sieloff
Subject: StartSSL Certificate revoked, 05 Dec 2013 04:33

 

To Robert Sieloff,

 

Your certificate with serial number  (113703) has been revoked for the following reason(s):

 

- the subscriber of the certificate requested revocation.

 

** If you feel, that the reasons above are not correct,

   please contact us, by replying to this message, with

   your explanation!

 

 

StartCom Ltd.

StartSSL�?� Certification Authority

 

Disable SSL v2 in IIS7?

$
0
0

I saw and read http://support.microsoft.com/kb/187498

 It states that it is the same for IIS 7 on 2K8, but when I looked in the registry I only saw the Key for SSL 2.0 and no other versions, then expanding that key there is a client subkey but no server subkey. So I created the server subkey and added the Enabled DWORD with a value of 000000 (aka 0) like the kb article states, rebooted, and SSL V2 is still working. Anyone have ideas?

 Thanks in advance

Problem with Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'ScriptHandlerFactory'

$
0
0

Hi, my name is Arif,

I've tried to deploy the website in windows server 2008 (IIS 7.0). However, it does not work successfully. I developed the website using windows xp and I also have tried to published in windows xp and it works great.

For that projects, I use AJAX. in windows server 2008(IIS 7.0) I am sure that I have installed ajax extension which is the same version that i have installed in my local machine ( windows xp).

Here is the error details that I've got, any idea how to solve this error?

<div class="content-container">

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 class="content-container">
Detailed Error Information<div id="details-left">
ModuleIIS Web Core
NotificationBeginRequest
HandlerNot yet determined
Error Code0x800700b7
Config ErrorCannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'ScriptHandlerFactory'
Config File\\?\C:\inetpub\wwwroot\arif\arif\web.config
</div> <div id="details-right">
Requested URLhttp://localhost:80/arif/arif/index.htm
Physical PathC:\inetpub\wwwroot\arif\arif\index.htm
Logon MethodNot yet determined
Logon UserNot yet determined
</div>
</div> <div class="config_source content-container">
Config Source
142:
  143:         <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode"
  144:              type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</div>

IIS 8 and Webdav...

$
0
0

 

    Hi everyone!, this is what I am trying to do, but running into problems.

 

I have Server 2012, its up running just file.   I have a virtual DC, a virtual  Fileserver / Printserver,  and what I would like to do is setup a

virtual webserver with just webdav so the users can access any file / folder they have access to on the server. (From outside the building)

This is what I have  done so far:

          Setup the Virtual server with IIS

          installed webdav

          created an application pool called webdav:

                 set the .net framework to No managed code

                 set the identity to a domain user account, that has permission to the file server share

                changed the default website to  new webdav application pool

                added the webdav authoring rule and gave full access to everything.

I created a virtual path to the file server share, tested the settings, it worked.

Then converted to an application

enabled only windows authentication, made sure kernal-mode authentication was checked.

 

From in side the firewall: webdav is working from Win7,  I have just used http as a test, works fine.

http://localservername/data, it asks me to authenticate, I do, it works.

(I know http is not secure, but I am testing...)

So I gave the server a live ip, and I can bring up the IIS Screen.

From inside the firewall, I use the live ip   http://xxxxxxx/data, it asks me to authenticate, I do, it works

When I try to either map a network drive from outside the building I either get an

error 67 (from the command line) or I get the folder does not appear to be valid from windows.

 

What the heck am I missing??

 I have tried to read every tutorial that I can get my hands on and cannot find a solution....

Did I miss a step, or can't you do this this way??, I am at a loss...

    any help would be appreciated..

 

                      Thanks..

 

                               Wolverine1994

 

 

Rules for non-http(s) protocols

$
0
0

Is it possible to write redirect rules for protocols other than http(s)?

For example, I have a rule that forwards http requests to a web app listening on https only:

        <rule name="myrule" enabled="false" stopProcessing="true">

          <match url="^myapp(/(.*))?" />

          <conditions>

              <add input="{SERVER_PORT}" pattern="80"/>

              <add input="{HTTPS}" pattern="off"/>

          </conditions>

          <action type="Redirect" url="https://{HTTP_HOST}:443/myapp/{R:1}" redirectType="Found" />

        </rule> 

Is it possible to do something similar for the websocket protocol, if that even makes sense to do:

        <rule name="wsrule" enabled="false" stopProcessing="true">

          <match url="^myapp(/(.*))?" />

          <conditions>

              <add input="{SERVER_PORT}" pattern="81"/>

              <add input="{WS_PROTOCOL}" pattern="on"/>

          </conditions>

          <action type="Redirect" url="wss://{HTTP_HOST}:444/myapp/{R:1}" redirectType="Found" />

        </rule>        

IIS 7: Strange behavior: Application Host Helper Service keep starting

$
0
0

I'm using IIS 7.0 and it's really strange after a normal reboot, Application Host Helper Service just keep starting. Reboot again, nothing change. Now all application pools are stopped, try to enable all manually -> no work.


There's no eventlog for it because it runs forever, a whole day just stay still with "Starting",

i tried to cleanup C:\inetpub\temp\appPools,  uninstall Windows Process Activation Service Feature and remove and reinstall IIS 7.0, IISReset reboot server many times...

still nothing changed even with 0 sites on IIS. Man i'm clueless now. Currenty i have to switch Identity in Applicationpools from ApplicationPoolIdentity to Network service to run sites. My server is up-to-date to system latest patch.

There's only this kind of log:

    Application pool xxx has been disabled. Windows Process Activation Service (WAS) encountered a failure when it started a worker process to serve the application pool.

IIS6 giving problem for MIME type json

$
0
0

Hi All,

I  add MIME type in IIS6 but giving me following error. I used following link to add MIME extension

http://www.hosting.com/support/dedicated/iis/newmime/

Request URL:http://gisbesp100/trackingpublic/js/gmaps/tristate_WGS1984.json
Request Method:GET
Status Code:500 Server Error
Request Headersview source
Accept:application/json, text/javascript, */*; q=0.01
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Cookie:ASP.NET_SessionId=2rguv5tz4g2i2ivqqlsqjhof
Host:gisbesp100
Proxy-Connection:keep-alive
Referer:http://gisbesp100/trackingpublic/EPHTPublicHome.aspx
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22
X-Requested-With:XMLHttpRequest
Response Headersview source
Connection:close
Content-type:text/html
Date:Wed, 04 Dec 2013 15:07:56 GMT
Proxy-Connection:close
Server:Microsoft-IIS/6.0
Via:1.1 TMG2GC103
X-Powered-By:ASP.NET

Please let me know what to do.

Regards,

Vishal Bedre

Detect url issue

$
0
0

I have two Pages having rewritten URLs,

First one is WWW.domain.com/test/page.aspx?id=2&URL=3
which is re-written like WWW.domain.com/test/page/2/3/

Second one is WWW.domain.com/page.aspx?id=1&URL=2&query=3 which is re-written like WWW.domain.com/page/1/2/3/

Now how can i differentiate these URL because in general both looks same.

In real first page is in the sub-directory and other is in the root directory

I have tried a rule which is written below but it is getting call for both URL due to regular expression pattern match.

Can any one help me to map these URL, i think both the URL should match by different rules.

or If this is not the way to do it. kindly tell me what is the way to handle this.

 <rule name="RewriteUserFriendlyURL2" stopProcessing="true">
                    <match url="^([^/]+)/([^/]+)/([^/]+)/([^/]+)/?$" />
                    <conditions>
                        <add input="{REQUEST_FILENAME}" pattern="^([^/]+)" />
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="false" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="false" />
                    </conditions>
                    <action type="Rewrite" url="{R:1}/{R:2}.aspx?{R:3}={R:4}" />
                </rule>

If you feel any difficulty in understanding my question kindly let me know. Thanks.

Viewing all 26858 articles
Browse latest View live


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