Category Archives: IIS 6

IIS 6

[RESOLVED]Jquery Autocomplete text box in vs2005 with IIS7 working fine bun not working in IIS6

Hi 

I have implemented JQuery autocomplete Textbox in   VisualStudio 2005   and hosted in IIS7 ,Its working fine. But  JQuery autocomplete Textbox  with same application  not working when I hosted in IIS6.

Note : I have added below code  in webconfig for working  JQuery autocomplete Textbox in   VisualStudio 2005

<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</httpModules>

Please share if any solution is there

dhanumay21

But  JQuery autocomplete Textbox  with same application  not working when I hosted in IIS6.

map .* extension to same extension as .aspx

Hi dhanumay21,

According to your description, it doesn’t work in IIS 6, but work in IIS7, I think this issue is related to IIS. I suggest that you could post it to the
IIS forum.

On the other hand, you may use the latest version of jQuery.

Best Regards

Starain

Thanks Starain

[RESOLVED]I have java script timeout counter, on iis 6 , it does show timeoutcounter but on IIS7 showing NaN

I have the following when used on IIS 6.0 working with session timeoutcounter within a text box, but on IIS 7 showing NaN, can you please advise what may be going wrong or i need to update.

Thanks a lot for the helpful info.

// TimeOut Counter functions
function startSessionTimeoutCounter()
{
var e;

//window.clearInterval (counter);
//counter = null;
//y = 0;
e = window.parent.frames[0].document.getElementById("txtTimeOut");
if (e!=null) {
x = parseInt(e.value,10) * 60;
}
e = window.parent.frames[0].document.getElementById("txtTimeOutMessage");
if (e!=null) {
timeoutmessage = e.value;
}
window.parent.frames[0].document.getElementById("txtcounter").value = x;

}

I’m a bit confused as to exactly what you are trying to do. It might be a bit easier if we had some kind of context or example markup. I tried to clean things up a bit, however I wasn’t sure if this is going to be exactly what you are looking for :

function startSessionTimeoutCounter() {
    // Define your x variable (since it is being reused)  
    var x;
    // Find your txtTimeOut element
    var timeOut = window.parent.frames[0].document.getElementById("txtTimeOut");
    // If it exists
    if (timeOut !== undefined) {
         // Get the value from it and multiply it by 60
         x = parseInt(e.value,10) * 60;
         // Store your value in the counter
         window.parent.frames[0].document.getElementById("txtcounter").value = x; 
    } 
    
    // Find your txtTimeOutMessage element
    var timeOutMessage = window.parent.frames[0].document.getElementById("txtTimeOutMessage");
    // If it exists
    if (timeOutMessage !== undefined) {
        timeOutMessage.value = e.value;
    } 
}

I would highly recommend using the Javascript
debugger; keyword
in this case. Place it in the beginning of your function, open the Developer Tools (F12) within your browser and trigger the function. You should be presented with a Visual Studio-like debugger that you can use to step through your existing
code and see where your problem might be occurring at.

function startSessionTimeoutCounter() {
    // Define a debugger
    debugger;
    // Code omitted for brevity
}

[RESOLVED]Visual Studio 2008 project migration issues

Enviremont:
Vista 64 Ultimate, Visual Studio 2008, VWD express 2008;  ….. moved from XPpro

I’m now trying to re-run my old web projects with mixed success.

Test2SQL is a VERY simple project which runs ok when:
- using Visual Studio Development Server OR
- when changing project to use IIS; however, then I must start VWD  ‘as administrator’ … even when I start it in the ‘Admin’ account!!!

If I start VWD NOT ‘ as administrator’  I get below error message:
"" start of message
The Web application project Test2SQL is configured to use IIS.
To access local IIS Web sites, you must run Visual Studio in the content of an administrator account.
In addition, you must install the following IIS components.

IIS 6 Metabase and IIS 6 Configuration compatibility
ASP.NET
Windows Authentification
- end of message

I certainly installed suggested functions as mentioned in message! … and read tons of forum suggestions!

QUESTIONS:
a) why do I need  – when in ‘admin’ account – open VWD ‘as administrator’?
b) how can I force that VWD by default opens in the administrator context? .. e.g. adding some more privileges?!
b1) of course I’d like to do this also in the ‘user’ account! ?

c) are there any special considerations when migrating old web projects (Framework 2.0) onto Vista (Framework 3.5).
   Any articel suggestions? advise, hints ……

Thanks for your time and hints
ed

You need to run as an administrator when integrating with IIS because of how the debugger gets attached to the IIS process, it’s a Vista security thing. 

To make VWD or VS run under the Administrators account by default:

Right click on VS/VWD icon in the Start menu, choose Properties, then Compatibility and check ‘Run As Administrator’.  After doing this you must open your projects using the IDE rather than double clicking on the project / solution file.

or

http://msdn.microsoft.com/en-us/library/ms165100.aspx

 

Hi William, thanks for your time

your suggestion worked, However, I ran into another problem as follows:
when loading a framework 2.0 project and run it using IIS I get below error:

""Unable to start debugging on the Web server. The web server is not configured correctly.

See help for common configuration errors. Running the web page outside of the debugger may provide further information.""

when running without debugger I get an error in web.config at statement:

<authentication mode="Windows">  </authentication>

I checked the forum(s) and followed a suggestion to use CREATE in IIS for this project (the problem: I didn’t find the CREATE as mentioned; assume it was for an older IIS). Instead I found in IIS 7 – when right clicking the project – ‘add application’. Doing
that made disappear the error msg but now my project does NOT come up correctly anymore i.e I only see the text ie. no formatting …

I know this is trial and error but might be you have an idea what I really need to configre in IIS!?

any suggestions where to find hints … the forums are full of ‘unable to debug ….’ but I didn’ find anything which helped me!

thanks again for your time, ed

 

EdKaufmann

Doing that made disappear the error msg but now my project does NOT come up correctly anymore i.e I only see the text ie. no formatting

When you say this do you mean the css styles an/or images are not showing up but the text/layout is?

Hi William, thanks again

yes you are right: no pictures, CSS styles BUT text is ok! E.g. the menues are even expanding (as text only ; no styles).

It ‘must’ have to do the way I configured IIS –

Because:
when I run the site with the VS default Web server ALL is ok!
Only if I run with the ‘custom server’ (http://localhost/project) I do not get CSS styles/images!?

? do I need to tell IIS something about the ‘CSS environment!?!?

thanks for your time and advise, ed

If you are using the built in authentication for your site you will have to add some entries into your web.config file to allow them to be visible see

http://www.velocityreviews.com/forums/t385250-authentication-forms-and-cssfile.html

or

View the source of your page when it is loaded in the browser and take a look at the path to the css and or images does it look right?  Are there leading forward slashes in the paths (ie. /) if so you may be pointing to the wrong location for your images
and styles.  For any path you use that is handled by .NET code and or any ASP.NET control that has some kind of path property if you use (~/path/to/my/resource.jpg) like this .NET resolves the ~/ for you to the root of your site regardless if it’s in a virtual
folder or not see

http://www.aspnetpro.com/newsletterarticle/2003/11/asp200311kd_l/asp200311kd_l.asp

Hi William, thanks

sorry for my ignorance … I guess my problem in the end is (as usual) a simple one … I just don’t see it!

Again: when running with the VS Web server ALL is ok; only when I run through IIS I don’t get the formatting. Below the source code – it is ecactly the same in both scenarios! I.e get the CSS info always from href="App_Themes/…..

1    <head><meta http-equiv="X-UA-Compatible" content="IE=7" /><link
rel=
"shortcut icon" href="Images/favicon.ico" /><title>
2    Eddie’s WEB site
3    </title><meta name="description" content="Eddie’s WEB site" /><meta
name=
"keywords" content="capeliere capelière cap con" /><meta name="generator"
content=
"My Web Pages Starter Kit 1.2.1" /><link

4    href="App_Themes/SwirlBlue/CustomControls.css" type="text/css" rel="stylesheet"
/><link
5    href="App_Themes/SwirlBlue/FormElements.css" type="text/css" rel="stylesheet" /><link

6    href="App_Themes/SwirlBlue/Navigation.css" type="text/css" rel="stylesheet" /><link

7    href="App_Themes/SwirlBlue/PageLayout.css" type="text/css" rel="stylesheet" /> ……

…. etc

any hint is appreciated, ed

after changing to IIS integrated mode and pick ‘static content’ option all is ok
thanks to all for your time, ed

web service returns xml instead of json

Hi,

I am calling a web service (asmx) with jquery.

When I run my application on IIS 6 or IIS 7 all is good.

Yesterday I moved the application on IIS 7.5 (server 2008 R2) and the call returns xml instead of json no matter what.

The call is this:

 

   var WebServiceUrl = legacy + 'PopulateSmallCartMessage';
 
            var parameters = null;
 
            var res = null;
 
            $.ajax({
 
                type: "POST",
 
                contentType: "application/json; charset=utf-8",
 
                url: WebServiceUrl,
 
                data: parameters,
 
                datatype: "jsondata",
 
                async: true,
 
                success: function (result) {
 
                    $('#smallcartmessage').html(result.d);
 
                    $('.fbloader').hide();
 
                },
 
                error: function (request, status, error) {
                    alert(request.statusText + "/" + request.status + "/" + error);
                    $('.fbloader').hide();
                }
 
            });

The web service function is decorated only with the webmethod attribute.

I also added to the web config the following but I thing is not needed.

 

      <webServices>
          <protocols>
              <add name="HttpGet"/>
              <add name="HttpPost"/>
          </protocols>
      </webServices>

 

Any thoughts?

Do you have asp.net 3.5 ScriptHandlerFactory handler declared in your web.config handlers section under system.webserver?

<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"/>

p3tar

Do you have asp.net 3.5 ScriptHandlerFactory handler declared in your web.config handlers section under system.webserver?

<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"/>

 

No, do I need to? The app runs on .net 4 Inergrated app pool. It wasn’t there when the app was working fine.

If you change

datatype: "jsondata",

to

datatype: "json",

does it fix the problem?

Thanx for your help, it seems that there is a problem with the IIS settings hosting the project.

The administrator is looking in to it.

I would like to mark your post as answer but it might misleed others.

Kudos for your replies.

Hi, did you get this fixed?

same situation, iis 7.5, 4.0 asmx returning xml instead of json, funny thing is that it was working fine in our ii6 until we upgraded recently.

Any help will be appreciated.

 contentType: "application/json; charset=utf-8",
 dataType: "json",

Please check ajax method that dataType should be json

http://dotnetplace.com/post/Fill-ASPNETDropdownlist-through-JSON-data-using-jQuery.aspx


Unable to attach to process and debug web application

Hi Gurus,

I am running VS2008 on Vista and developing an web application in VB.Net. I have set up the default website in localhost in IIS (IIS 6.0) to run the website and it is working fine. But when I try to debug the site by selecting attach to process from debug
menu and select the browser process (IE8 or Mozilla), nothing happens and the process doesn’t hit the breakpoint. What am I doing wrong?

Thanks in advance for the help.

Regards,

Sudipta

check if you are running with release mode ..

And check this article too

http://weblogs.asp.net/abdullaabdelhaq/archive/2009/06/01/VS-Debug-Problem-with-IE8.aspx

Hi Abdulla,

Thanks for the response. I have checked that the settings in the solution is kept as Debug mode. One major issue is that when I click on the Start Debug button on the VS opens a new IE window with URL like
http://localhost:2108/…  with an error saying that there is connection issue.

Where is this port number coming form? How can I run the debugging?

Appreciate your help.

Thanks,

Sudipta

In your web browser check this http://localhost:2236  this is the Process Id on which your web application is running in IIS attach your process to this Id in the list of
Available Processes  and then debug the application

Check this also if you r facing this problem :

http://support.microsoft.com/kb/950244

Regards

Asif

ASPDev200

Hi Abdulla,

Thanks for the response. I have checked that the settings in the solution is kept as Debug mode. One major issue is that when I click on the Start Debug button on the VS opens a new IE window with URL like
http://localhost:2108/…  with an error saying that there is connection issue.

Where is this port number coming form? How can I run the debugging?

Appreciate your help.

Thanks,

Sudipta

Port number comes becuase you create a file system web application, this port number is an autogenerate number.

check if you are opening another instance from the VS 2008 at the same, because the process (asp.net webserver) will be busy with the first instance, you can stop all opened webserver, you can found them on the task bar on your desktop right beside the clock,
just do right click and click stop.

Post the complete actual error, this will close us to the find solution.

ASPDev200

I have set up the default website in localhost in IIS (IIS 6.0) to run the website

For IIS 6, Attach Process to w3wp.exe.

For IIS 5, Attach Process to aspnet_wp.exe,

For VS web server Attach Process to Web Developer.exe

Hi Everyone,

Thanks for all the tips. I am still facing the issue. To test the issue I created a simple website in VS 2008 and tried to debug it. When clicked on the Start Debugging button, a new firefox (default browser) window opened up with the URL like : http://localhost:49934/Test/Default.aspx
. But this page throw a page load error with message saying "Firefox can’t establish a connection to the server at localhost:49934." 

If I setup the IIS (IIS 7.0) default website to point to this website location with port number 49934 and try to debug then an error message comes up saying "Port 49934 is in use".

I am really confused on this one. When I try to find the attach to process I couln’t find any process with like w3wp.exe or aspnet_wp.exe. I am using IIS 7.0

Thanks in advance.

Sudipta

   

ASPDev200

Firefox can’t establish a connection to the server at localhost:49934

May be Antivirous Software Blok this Port

http://forums.asp.net/p/987980/3266451.aspx

http://forums.asp.net/t/1235447.aspx

ASPDev200

If I setup the IIS (IIS 7.0) default website to point to this website location with port number 49934 and try to debug then an error message comes up saying "Port 49934 is in use".

Try To Change the Port By Selecting The Project Root then Open properties Window then Set Dynamic Port=False and then Set Port Number any e.g, 2999.

ASPDev200

I am using IIS 7.0

Is you create a Virtual Directory For You Web Application in  IIS 7?

this state that

ASPDev200

http://localhost:49934

you are not using IIS 7

Hi Everyone,

Thanks for all the suggestions and valuable links. Finally I was able to debug the website in visual studio 2008. I did so many changes in the trial and error process that I am not sure what fixed the issue. But I will list down some of the changes I made
so that others reading this post might have some clue.

The changes I did:

1. Right click on the web project in the solution and click on "Convert to Web Application". After this change I was able to catch the debug poing set. Not sure why this happened. May be the project was a file system project rather than a web project. I
downloaded the solution from web.

2. In the host file in I had commented the line ":: 1" and made an entry as "127.0.0.1    localhost".

3. In the Web Project properties under the Web section I choose specific port and gave port number as 8600 (just random number).

4. In the Vista firewall I created an exception to allow incomming http request to pass through port 8600.

I made all th above changes after going through several forums, blogs and articles. Hope this will help others going through similar issues.

Thanks,

Sudipta

404 – ScriptResource.axd? Where is it??

HI

I have used fiddler on my non working AJAX site, and it reports a 404 on scriptresource.axd?  eg 404 /AusTest/ScriptResource.axd?d=ZLki_IjVMO0boYXA-y4gC1cwh8RCxVzqKkV2XtNku4YljtUILJl0Z8Mid1UbpVvSvRDwVvVkOJoMZtJ05peUYPBgtEJe6jMT-m4cE_pxfJr_pBFp0nw61Z56Mc36kzsByjhcTwIQJAhgE1eG3UMaag2&t=633100901805313464
not found.

 Well, its not there, and I can’t find it anywhere. How does this work? I have all the entries in the web.config?

  <httpHandlers>
   <add path="CrystalImageHandler.aspx" verb="GET" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
   <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
   <remove verb="*" path="*.asmx"/>
   <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
   <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
   <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
  </httpHandlers>
  <httpModules>
   <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
  </httpModules>

and 

 <system.webServer>
  <validation validateIntegratedModeConfiguration="false"/>
  <modules>
   <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
  </modules>
  <handlers>
   <remove name="WebServiceHandlerFactory-Integrated"/>
   <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
   <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.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=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
  </handlers>
 </system.webServer>

 

Please please help!

Please see if following links are help full

http://www.worldofasp.net/AJAX/re-1923_Demystifying-%E2%80%98Sys-is-undefined.aspx

http://forums.asp.net/thread/1583736.aspx

HI Swell,

Can you past some of your code here. then we can take a look at it. Thanks!

PS: i suppose that your non working AJAX site must become a working AJAx site [:)]

Regards,

Please see this link also.Refer "Bad IIS Setup" part in the blog.

http://www.rosshawkins.net/rfh/articles/webresource.axd.html 

Hi! Thanks so much for replying.

First, Dennis, I have copied the SampleWebSite directory from the Toolkit to my Web Server, and when I go to any of the pages with controls I still get the 404 from the request. This leads me to believe it is not a web.config related problem.

Second, anishdevasia, I have set enableCompression="false", I think I have a Web application rather than just a virtual directory but i’m not sure (It has an icon that looks like a globe coming
out of a box (IIS 5 btw)) and I have run "aspnet_regiis -i -enable" from C:WINNTMicrosoft.NetFrameworkv2.0.50727. The second link you provided was too complicated for me : (

I also checked and I do have the correct mapping for .axd files and "verify file exists" is indeed deselected.

 

Any other ideas? It must be IIS right because I am using the sample we site…

 

Do you have Visual Web Developer Express Edition or Visual Studio 2005 ? Then you can use the development server provided within that and see if the site is working.

Yep I have loaded the SampleWebSite and our actual site that I want to deploy in Visual Studio 2005 on my development machine and they both run fine through localhost.
While checking with fiddler are you getting same error for WebResource.axd which is there with usual asp.net 2.0 pages.(if you created simple aspx form then at least one call to WebResource.axd will be made).Then we can rule out the assumption regarding .axd
extetnsion.

Nope that one is fine… we must be getting close right?

 

WebResource.axd?d=Qqed81aNx6h85Ex91MKz1A2&t=632876586359375000 Status: 200 Response Size: 2,048

Can you paste the code you are using on the page.Is this 404 error happens for all ScriptResource.axd file.
Its all at http://www.e-timesheetz.com/SampleWebSite/ , does it give you an error as well?

I have tried that url and me too getting same 404.

Have tried to run the same on your Dev Machine IIS(not vs2005 dev web server)? 

Yes I can run through a localhost set up in IIS, they both appear to have the same settings

Have you installed ASP.NET AJAX v1.0 on ther server?If not install the same.

Then check following assemblies are present in GAC

System.Web.Extenstions

System.Web.Extensions.Design 

I could only repair the ASP.NET AJAX v1.0 installation as it was already installed

System.Web.Extenstions and System.Web.Extensions.Design are both listed if i do gacutil /l

 I note that in my web.config I have System.Design commented out as I read that it caussed conflicts, should I remove it from the GAC as well?

 

If Still problem persists you can use javascript files directly.Do the following things

1. Create a folder structure "ScriptLibrarySystem.Web.Extensions1.0.61025.0" in website root directory.

2. Copy following files from installation folder to above created folder

MicrosoftAjax.js

MicrosoftAjaxTimer.js

MicrosoftAjaxWebForms.js 

MicrosoftAjax.debug.js

MicrosoftAjaxTimer.debug.js

MicrosoftAjaxWebForms.debug.js

3. Modify script manager control as given below.

      <asp:ScriptManager ID="ScriptManager1"   runat="server" ScriptPath="ScriptLibrary">
            <Scripts>
                <asp:ScriptReference Assembly="System.Web.Extensions" Name="MicrosoftAjax.js" />

                <asp:ScriptReference Assembly="System.Web.Extensions" Name="MicrosoftAjaxWebForms.js" />
            </Scripts>

        </asp:ScriptManager>   

 4. This is only for basic libraries.Toolkit also could be done similiarly.

I don’t think its a good solution for production scenario. Its only a workaround.

You can check you IISlogs for more error information if any. 

 

May be usefull. Lots of experienced hands on this thread. 

http://forums.asp.net/2/1500402/ShowThread.aspx

Eureka!

I finally hunted down the IIS 5 logs, it has an entry for ScriptResource.axd, it says "Rejected-By-Urlscan"?!?!?

Sure enough, there’s a program called urlscan in the bowels of my winnt directory… open up urlscan.ini, hunt around…

[DenyUrlSequences]

/Script

Hmm so I create a file in my website root called ‘ScriptResource.htm’, sure enough, 404 – Create a file called ‘ScreptResouce.htm’, and it serves!

So i’ve commented out that line, and i’ll have to restart IIS tonight, but fingers are crossed!

 

Thanks Anish!

 

Good work!!!

Congrats!!

Enjoy

There are quite a lot of reasons this error can happen, once I’ve encountered it, I’ve tried them all, and then found out that the most stupid reason is what caused me to loose ScriptResource.aspx: The server’s clock was not rewinded.

Here’s an article that helped figure it out(It also lists some more reasons why this can happen):

ScriptResource.aspx Not Found

Visual Studio had edited the web.config based on the IIS 6.0 model and had made an entry for the Http Handler under the <httpHandler> section. With IIS 7.0 this section is no longer read. So we need to make the proper entries for the Http Handler that handles
the calls to ScriptResource.axd

Solution 1:

  1. Open IIS 7 or 7.5
  2. Select the site to modify by double clicking, revealing all options.
  3. Double click on Handler Mappings
  4. Click Add Managed Handler
  5. Request path: ScriptResource.axd
  6. Type: System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
  7. Name: ScriptResource-axd
  8. Click OK to complete

 

Solution 2:

Make entry for handler in webconfig under system.webServer

<system.webServer>

    <handlers>

    <add name="ScriptResource-axd" path="ScriptResource.axd" verb="*" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    </handlers>

</system.webServer>

[RESOLVED]I WaNNA HELP and i Press F1 [ ASP.NET ]

I’ve a problem in asp.net [ so crazy :D ]

 i can’t debug or run without debug my asp.net web pages when I’m online [ connected to INTERNET ]

after i turned off my router my problem gone can any one help me to solve this problem.

I’ve set my local network TCP/IP information with my isp settings.

there is no PPPOE connection in my system.

 another thing that my IIS is not responding  because when i type localhost in IE my sys hang and CPU usage is 100% :D

 I’m using windows xp sp2 1gb ram visual studio 2008 entrp and lately i’ve downloaded IIS 6 and SQLSERVER 2008 from Microsoft.

thanks.

 

 make sure debug is on in your web.config file as per the following line

<compilation
debug="true"
strict="false"
explicit="true"/>

thank you ahmedabad but the debug mode is enable and my problem persists yet. 

Hi,

Firstly, we need to make sure IIS can serve website correctly.

If we create a simple ASP.NET website, does it have the same issue? If it has the same issue, it seems that IIS doesn’t work well.

Please try to reset IIS and run Aspnet_regiis.exe (http://msdn.microsoft.com/en-us/library/k6h9cz8h(VS.80).aspx) with -i option to update the script maps of all existing ASP.NET application
with current .Net Framework.

I look forward to receiving your test results.

 

thank you Thomas.

I had tested all ways to solve my problem like uninstalling iis or reregistering it in aps.net [regiis] but i think my problem is in the network and my ports [ not in system settings ]  because I can’t run asp.net pages with file system [ in windows XP sp2
]

but i think its better for me to change my operating system to windows 7 rtm.

win 7 is completely integrated with .net framework 3.5 and it’s pretty fast.

i don’t have those problem now Laughing[ now I'm so happy ] 

sql server and visual studio run much faster than ever [ I’ve to say great job to Microsoft
Laughing]

But i think Eset Smart Security Business Edition 3.0.650 32bit is my problem.

when i installed it into win 7 my problems came again [I disabled it but it blocked my ports again]

maybe eset must  release some patch for its protection solutions :D

You can test it on your machine. 

thank all for answers. 

[RESOLVED]Problems with ReportViewer, ScriptManager, and ICallbackEventHandler

I am having problems porting a screen from 32 bit (SQL 2005, WinServer 2003, IIS 6) to 64 bit (SQL 2008, WinServer 2008, IIS 7.5).  This screen uses BOTH iCallBackEventHandler and a Reportviewer object, and works fine on the old server.  (I also had to add
a ScriptManager object which was not needed before.)

On the new server, when I issue a SetParameters call, it kills the ICallBackEventHandler interface.  All I have to do is comment out that line, and the program works (but parameters have to be set manually).  Enable it, and my client browser will no longer
receive any events sent through the ICallBackEventHandler interface.

Is there any fix for this?  Any way to see what is going on?  Or did we paint ourselves into a corner by using MS products before their architecture was refined enough (I imagine it’s going to be a while before we go 128 bit OS)?

Due to the way the report viewer uses script, it is currently not compatible with an UpdatePanel.  Microsoft is aware of this problem and looking into the necessary changes to get the ReportViewer working in an UpdatePanel.  But at present, there is no work
around.  While it may appear you can get simple reports working in this scenario, some of the more subtle report viewer behavior will still be broken, such as its code that keeps the report session alive when the browser window is left open.

http://forums.asp.net/p/1044194/3436555.aspx

http://forums.asp.net/p/1340895/2713548.aspx

It means I have to rewrite the product in a system that can handle the ‘complexity’, and I’m dead in the water with my current SQL 2005 implementation – I doubt that MS is worried because they already sold their product to us, and if software we developed
4 years ago is now unexpectedly useless, that’s our fault for making bad decisions.  But thanks for the reply, Chetan.

[RESOLVED]C# class .DLL

 Can any one give me a valid and straight answer, because I do not believe my hosting service.

here it goes

I have 2 completly different hosted folder in the same server running IIS 6 both

Folder # 1 named cart

Folder # 2 within cart named backoffice

both are set virtual for .NET 3.0 and treated as completly separated environment

one www.mydomain.com

and the other one www.mydomain.com/backoffice

because we did not want to make a sub-domain or domain

there is 2 managed .DLL written with c#

with the same name myComponent.dll sitting in different bin folder

wwwrootcartbinmyComponent.dll (This one has different functionalities than the one below)

wwwrootcartbackofficebinmyComponent.dll

it just turned out to be the same exact name.  Both .DLL were created by 2 different developers in case you ask one was not aware what the other one was doing so by coincidence they created .dll with same name. I was one of those developer in case you ask
and mine was first created then his was created 3 weeks after mine. but this is not the case.

IIS is treating these 2 virtual folders differently but per the hoster claiming that one .dll interfere with the other one. Is this true?

 

TIA

 

 

 

 

My gues is that you should create backoffice as a site, and not only a virtual directory. So one componente will not interfere with the other one.

Can you tell us if it worked?

 well one breaks the other one, it only works on one, cart broke the backoffice one

after was copied to the cartbin folder.

 

Thanks much for the promptly reply

 

 

Hi,

msdevm

I have 2 completly different hosted folder in the same server running IIS 6 both

Folder # 1 named cart

Folder # 2 within cart named backoffice

both are set virtual for .NET 3.0 and treated as completly separated environment

one www.mydomain.com

and the other one www.mydomain.com/backoffice

because we did not want to make a sub-domain or domain

there is 2 managed .DLL written with c#

with the same name myComponent.dll sitting in different bin folder

wwwrootcartbinmyComponent.dll (This one has different functionalities than the one below)

wwwrootcartbackofficebinmyComponent.dll

 In this case, if you request backoffice website using
www.mydomain.com/backoffice
, the folder cart will be treated as root directory and the assembly will be loaded from its Bin folder. So you got error.

To work around this issue, you can request backoffice as separate website without inheriting cart website, such as
http://backoffice. Or you can rename one myComponent.dll and copy them in cart website’s Bin folder.

 

I look forward to receiving your test results.

 

[RESOLVED]VS 2008 and IIS

 Hi,

I’m in a bit of a panic here.  I’m running vista 64bit machine with IIS 6 (I think) and VS 2008.   Before the weekend last week I had a perfectly working machine.  I came back and noticed an automatic windows update occured.  Since then my VS is doing very
strange things.  It’s not recognizing my dataconnections any longer, all SqlDataSources have an error in design view that says "Error Creating Control – SqlDataSource1 Object reference not set to an instance of an object" so I can’t compile my application.

If I try and run in debug, I get the popup window saying "Unable to start debugging on web server…blah, blah, blah".   In IIS I have notice my Default application pool stops on it’s own, and when I start it again go back into VS the IIS stops.

I don’t know what’s causing this.  I unistalled the update for the security patch that was installed but that didn’t help.  It might be IE 8 that’s got some security against it which is interferring with my connections but I don’t know why.  

Can someone help me with this?  I need this running again.

thanks.

I can suggest you look into using System Restore to roll back to an earlier restore point.  I guess this can be your last resort if nothing else works…

 Well it just so happens the last install that the pc did was the latest update to the Vista operating system so my last restore point is just that far, which isn’t far enough.

I’ve done more more digging and found that what appears to be the problem is that VS cannot see the web.config file.  I changed the permissions against that file so it wasn’t read only and that allows me to run the application in debug but the SQLDataSources
are still showing a control error on them.  The ASP.Net configuration settings in VS also return some really nasty errors on the page when looking at the various settings and links within it whereas before those didn’t exist.

I’m sure it has something to do with permissions either in IIS, or a windows.  I find it odd that the web.config file isn’t seen my VS.  I know this because all the connectionstrings in the SQLdatasource wizard are blank, but should show all the connections
in the web.config.  Further more, in the aspx code there are namespaces that are not recognized but are also in the web.config. 

I hope that helps.   

Thanks.

 I found the exact same problem listed in the Microsoft feedback site by another user.  This isn’t an isolated incident, appearently others are experiencing the problem. 

https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=369715

What can I do to solve this issue?  So far I’ve tried to uninstall all the updates that were done after my machine was at its last known working configuration.  I’ve ran a repair against VS 2008, and I’m not down to running a repair against my operating
system. 

I’m running out of ideas.

 I have managed to correct my problem.  Here’s what I did.  (this is on a vista business 64bit machine with vs 2008 sp1)

-  I went to’ programs and features’,  ‘Turn Windows features on or off’ and disabled IIS as well as ‘Windows Process Activation Service’ .

-  I then used my OS disk and ran a repair against my pc.

-  Then restart IIS as well as WPAS

Without shutting down WPAS you can’t restart the IIS component on your pc and you get an error when you attempt to do so.   This took some patience but it worked out in the end.  You will need to correct your IIS settings once it’s back up and running.

I haven’t reinstalled any of the service packs just yet on my pc as I’d like to enjoy a working machine for a few hrs at least.  I hope that helps someone else.