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

how to set domain name in web server (windows 2003)

$
0
0

hello, i have a web server with windows 2003, where iis and aps.net intalled. my application is running in localhost after published. how can i set my domain name in my server. thank you


error message from wep site

$
0
0
<div class="body">

I'm getting this on a web page but have no idea what it means.

Can someone point me to a resource?

   Error Occured:
   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.member_mim_assetmgd_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d6357409\306c3e75\App_Web_cgnkjy_t.0.cs:line 0
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
      

</div>

Configuration changes to ThreadPool via processModel and httpRuntime?

$
0
0

We are running an investigation on a scalability issue using outgoing asynchronous web requests on IIS 7.5. This is long story and it is documented here with a number of open questions for anyone to read (and give feedback if you want). However, as a possible fix to this problem we need to try to change someThreadPool configuration values on the processModel and httpRuntime configurations in machine.Config and web.config. (instead of running with processmodel autoConfig=true in machine.config.)

So by doing these changes, I came up with some questions that I think are suiteful for this forum:

A. Confirming that the applied changes have been adopted by the ThreadPool

Once the processModel config changes in machine.Config has been applied, we would like the web application to give some feedback of that the changes has been applied. We have found three possible ways to verify this:

1) ThreadPool properties GetMaxThreads and GetMinThreads should be able to render the correlating config values processModel: maxWorkerThreads, maxIoThreads, minWorkerThreads, minIoThreads.

2) The ProcessModelSection .NET class should be able to give many of these values back including theMinWorkerThreads which is not available via the ThreadPool class.However, when querying these values on our production server (Win 2008 R2 /  .NET 4.5), the values do not appear correctly. The AutoConfig is set to false although it is set to true in Machine.Config. And when changing this the value to false instead in machine.Config as well as setting higher value on MinWorkerThreads to 50, the MinWorkerThreads property of the class still outputs 1.
Question 1: What’s up with this?

3) Another way, as suggested in this forum post (at the bottom), is to reflect on typeof(HttpRunTime). have a number of questions here:

Before the change  the Max Worker Thread had a value 32767 (should be max Int16 size). Following the suggestion in the this Microsofttech article 821268 (“Contention, poor performance, and deadlocks when you make Web service requests from ASP.NET applications”) we set the maxWorkerThreads on processModel to its max value 100 (according to MSDN processModel reference). Applying the change on the web page does reveal the new value 1600 which is correct since there are 16 logical cores.
Question 2: What’s up with the value 100 being the max value when clearly 32767 was possible?

There is a fields value of class httpRunTime called _queueLimit with a value stating 5000 on our production server.
Question 3: What queue is this and is it true?
Question 4: How is it possible to change this value in a config file?

There are two fields called _localQueue as well as _externQueue with values 0 supposedly showing the number of queued items currently.  
Question 5: What queues are those? (see a list of queue I’ve made here)

B. Following the recommendation in tech article 821268

1) When reading about processModel autoConfig=true/falsehere (MSDN), it says that when this value is true, the five configuration attributes listed here (maxWorkerThreads, maxIoThreads, minFreeThreads, minLocalRequestFreeThreads, and maxConnection)“are set according to the KB article at http://support.microsoft.com/?id=821268”.
Question 6: Should this be interpreted that the values are set by ASP.NET according to the Resolution, Recommendation section in this article if autoConfig=true?

2) The recommendation on http://support.microsoft.com/?id=821268 for minFreeThreads is 88*N where N is the number for the logical number of processors. According to the note on this web site: “When you use this configuration, you can execute a maximum of 12 ASP.NET requests per CPU at the same time because 100-88=12. Therefore, at least 88*N worker threads and 88*N completion port threads are available for other uses (such as for the Web service callbacks).
Question 7: Is this 12 requests per core as it says or 12 threads per core? In an asynchronous case when the thread is returning to the thread pool after making the web service requests, this number quite is high. However the number is low if is actually requests which should include the latency time for the web service  callback method to be called and the request finally finished. 

3)  Question 8: If .NET 4.5 is being used and the .NET new default value of ServicePointManager.DefaultConnectionLimit as max value of int is not changed, can the default value of maxConnection really be a bottleneck then as this article is saying?

Javascript Code Change is not Updating at runtime

$
0
0

Hi all

Iam working on an 3 tier architecture Project. The Problem iam facing last 2 days is when i change the javascript code in website Page, it is saving locally but not reflecting at runtime (ie.,while at runtime oldcode( unchanged javascript) is running not the updated code).Design and Code behind changes reflects correctly.

why this problem. I cleaned the solution and rebuild, but of no use.

i recently uninstalled my VSS, is this problem due to that.

Iam using Asp.Net 2.0, c#, Sql Server 2005.

Looking for suggestion

Thanks

deployment using vs2012 pro one click

$
0
0

I am trying to publish my project to my SBS 2011 Server using web Deploy from VS2012 Pro.    It is going into my C://inetpub/wwwroot folder.  

1.  I am presently publishing to default web site/application name.    That puts the default.aspx file in the application name folder.   Is that a problem?   How do I direct those entering the site to that folder?   They are now seeing the iisstart.htm file

2.  I am using an access database which I can copy over to server in the App_Data folder with no problem.   My problem is getting the aspnetdb.mdf database published and operable.    Should I check one or both boxes under aspnetdbEntities?   What remote connection string should I enter?

3.  What advantage is there to entering a Destination URL?

Force IE8 compatible mode by ASP.NET app

$
0
0

Hi

I want to force user IE10 browser to always use IE8 as compatible mode on rendering and feature. I have tried to add meta tag and also response header via web.config.

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" >

<add name="X-UA-Compatible" value="IE=EmulateIE8"/>

Both working fine if I test using IE in virtual machine, to connect to my machine. However, it doesn't work "100%" if connect via remote computer. Some callback would failed.

Also, by checking browser / document mode, found that only document mode turned to IE 8 mode. Browser mode still show IE10 standard. If I change it manually to IE8, it working fine.

How could I force browser mode to IE8 as well?

Thank you

What is this file......App_Web_vptpxnci.4.vb? plz help me with it anyone

$
0
0

App_Web_vptpxnci.4.vb

in this file i am getting an error like this:

'Server' is not a member of 'ASP.hosteladmfees_aspx'

and several other errors are there with in this file,........

what is this file.....an why it is used.......

Losing a profile object

$
0
0

First of all, if this is not the right forum to post this question, please tell me where would be more appropriate.

I have the following section in my web.config:

<profile defaultProvider="MySqlProfileProvider" enabled="true">
  <providers>
    <clear/>
    <add name="MySqlProfileProvider" connectionStringName="UsersConnStr" type="System.Web.Profile.SqlProfileProvider"/>
  </providers>

  <properties>
    <add name="Cart" allowAnonymous="true" serializeAs="Binary" type="MyShoppingCart"/>
  </properties>
</profile>

All of the users on our site are anonymous. We do not have any login capabilities on the site.

The first part of the checkout process on our site is a page to display the contents of the cart. This is an unsecured page. The following page is the billing and shipping address page, the first secured (https) page in the checkout process. In the past six months or so, several of our customers have gotten to the address page and their cart is empty, though it looked correct on the previous display cart page.

Our site is hosted on a server running Windows Web Server 2008 R2 and IIS7. Prior to the middle of last year, we had been hosted on a different server running Windows Server 2003 and IIS6. I don't know if it has anything to do with it, but it seems like this problem only started occurring after we switched to the new server.

Another curious detail about this problem is that though I am in the U.S., all of the people that I've heard from who are having the problem are outside the U.S. (one in Australia and two in Canada). I cannot duplicate the problem on my local system, and we have received hundreds of orders that have made it successfully through the checkout process, so it's obviously not a general problem with the site.

I know this is a stab in the dark, but does anyone have any suggestions of something I should check or change that might be related to this problem? Thanks!


404 error after deploying my website

$
0
0

I just uploaded my website to my server, and I keep getting this error:

"The page cannot be found

HTTP Error 404 - File or directory not found."

You can see this error at http://www.mm-theory.com.

I'm running IIS 6 on Windows Server 2003. In the properties of the website, under Documents, I have nuts_and_bolts.aspx at the top of the list. nuts_and_bolts.aspx certainly exist in the root directory. I have it pointing to my root directory under Home Directory. I have all permissions set for everyone.

Why would it say the file or directory is not found?

Bad Request - Invalid Hostname

$
0
0

Hi,
In my Win 2008 server, I have published the project fine in "Start" of the site called "WIN-BVDIC8GIAHI". But when I go to this
http://WIN-BVDIC8GIAHI:81/Start

I've got, while I am able to ping "WIN-BVDIC8GIAHI"
Bad Request - Invalid Hostname

HTTP Error 400. The request hostname is invalid.

why?

Could not load file or assembly &#39;System.Web.Extensions, Version=4.0.0.0

$
0
0

I have a web application that is throwing this error only for a single page, I'm able to login and do everything else, but when attempting to access a particular page the following exception is thrown:

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)


I'm not sure why it's trying to load version 4 as this website is built against .Net 2.0, I'm also not sure why every other page would work just fine but this one would throw the exception since nothing has changed. I've searched and tried replacing the assmebly in the bin folder with version 4, but the rest of the site fails to load when I do this. 

I also searched for the file and copied it to C:\Windows\Microsoft.NET\Framework\v2.0.50727, to no avail.

TIA

@Edit: Also worth noting is that this work just fine when I debug in VS, no problems with any page.

The 'System.Web.Security.SqlMembershipProvider' requires a database schema compatible with schema version '1'. However, the current database schema is not compatible with this version. You may need to either install a compatible sche

$
0
0

Hello

i am using .net 4.0 and sqlserver 2008. i hosted my project to online shared server. but error is coming like

The 'System.Web.Security.SqlMembershipProvider' requires a database schema compatible with schema version '1'. However, the current database schema is not compatible with this version. You may need to either install a compatible schema with aspnet_regsql.exe (available in the framework installation directory), or upgrade the provider to a newer version.

kindly tell me how to solve this problem. below i mentioned web.config file details.

<authentication mode="Windows">
<forms defaultUrl="dashboard/dashboard.aspx" path="/" loginUrl="Default.aspx" protection="All" name="aspxauth" timeout="200">
</forms>
</authentication>
<membership defaultProvider="AspNetCSqlMembershipProvider">
<providers>
<add name="AspNetCSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="EVISEAZY" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="/" requiresUniqueEmail="false" minRequiredPasswordLength="5" minRequiredNonalphanumericCharacters="0" passwordFormat="Clear" maxInvalidPasswordAttempts="10" passwordAttemptWindow="3" passwordStrengthRegularExpression=""/>
</providers>
</membership>
<roleManager enabled="true" defaultProvider="SqlRoleManager">
<providers>
<add name="SqlRoleManager" type="System.Web.Security.SqlRoleProvider" connectionStringName="EVISEAZY" applicationName="/"/>
</providers>
</roleManager>

Unable to connect to the remote server - Deployment Only

$
0
0

I have a web application that works fine in development, and worked fine in my hosted environment but now I have my own server I cannot get it to connect to an online API. This is the website I am trying to access (it delivers custom QR codes):

http://api.qrserver.com/v1/create-qr-code/?size=150x150&data=Example

From my desktop it is fine, from within a browser on the server I can access it fine, but in my code I am trying to get the image into the iTextSharp plugin which is creating my pdf files. The pdf constructs fine but when trying to access this online API for a QR code the server sits there for a while, then gives up and the pdf is delivered minus the qr code.

Here is the line of code that tries to get the image:

Dim QRImageFile As iTextSharp.text.Image = iTextSharp.text.Image.GetInstance(ImageUrl)

Does anyone know what might be happening (could be a firewall setting but not sure which one?) please?

How to host my service in self webapplication

$
0
0

hello .net heros

i am getting confused about how to host my webservice....

in my soluation there are 5 project namely

1)Business object model

2) data access layer

3) service layer ==wcf application project containing svc file

5) my web application (startup application)

now business object model, data access layer is refrenced with servervice layer

and service layer refrences as web refrence in my web applicaiton

i mean all the thing is done by visual studio bydefault i have never touch the web.config or app.config but in my startup project web.config i m seeing there is added endpoint with address something like this htttp://localhost:8081/mp.svc

now my question is i have uploaded all the thing in web and trying to run my svc file which is in service layer in address http://new.manpowerlink.com/Host/MP.svc but it gives me error that business object not found..

and even my webapplicaition is not able to run service ..where as in local every thing is perfect so any idia heros

u can see the main link http://new.manpowerlink.com/Host/MP.svc

and main link is http://new.manpowerlink.com

please let me know

thanks in advance

Css and Scripts don't work until the user log in the website - Asp.NET MVC 3 Web Site

$
0
0
<div> <div>

I've a asp.net mvc 3 site and i publish it in iis 7.5 (framework 4.0), the problem is that the css and the scripts don't work util the user log in the website.  So:

  • The website was created like virtual directory and converted into a application.
  • The mode is forms authentication.
  • I enable in the iis the forms and anonymous authentication.

The web config has:

<location path="Content" allowOverride="true">     <system.web>         <authorization>             <allow users="*" />         </authorization>     </system.web> </location> <location path="Scripts" allowOverride="true">     <system.web>         <authorization>             <allow users="*" />         </authorization>         <globalization culture="pt-BR" uiCulture="pt-BR" />     </system.web> </location>  <authorization>     <deny users="?"/> </authorization> 

Obs: the dlls that i add in bin directory: System.Web.Helpers.dll, System.Web.Mvc.dll, System.Web.Routing.dll, System.Web.WebPages.dll.

I tried to change the path in the localtion as "~/Content", but i got the same result.

I tried to put the tag allow in the autorization tag as:

<authorization> 
   
<denyusers="?"/> 
   
<allowusers="*"/> 
</authorization> 

But i got the same result.

What am i missing?

</div></div>


Submit button not firing?

$
0
0

Hi

The "Add" button as shown is firing correctly and posting back on my localhost but for some reason it hasn't been on the live server (Godaddy IIS7). Other submit buttons on the site do fire correclt though. Does anyone know why?

Here's the button code:

<input type="submit" name="ctl00$ContentPlaceHolder1$ButtonAdd" value="Add" id="ctl00_ContentPlaceHolder1_ButtonAdd" style="font-weight: 700">



encrypting configuration files

$
0
0

hi, is there any way to encrypt sections of other configuration files?

I already have done the one available for web.config but our application also have other config files containing credentials. Any procedure that I can do similar to the one available in aspnet_regiis.exe? Thanks.

RE: sychronization problem of dll files in bin folder and SVC files

$
0
0

Hi There;

I have a project , its name is "Protected Areas".There are svc files in PAServer folder such as AuthenticationInterface.svc file and bin folder which consists of dll files. I have changed the business logic of the project (the files that its extention is cs) and traditional publishing to web server hasn't been worked.When I replace the contents of PAServer, namely dll containing bin folder and svc's; the problem has solved.PAServer folder inside the wwwroot/ProtectedAreas path.

There are three projects that tightly coupled among them: Protected Areas ,Special Protected Areas and Enterprises in the protected areas. However the problem is when I updated the svc and dll files of theProtected Areas, the project Enterprises in the protected areas doesn't work anymore. This problem arises frequently and I couldn't make any changes on theProtected Areas project. Where can I get information?

Precombiled App. Loading error

$
0
0

When trying to start my precompiled application (published from Visual Studio 2010) with IE, I met the following load error.

Could not load file or assembly 'FlickrNet' An attempt was made to load a program with an incorrect format. (FlickrNet is a compiled program and added as a reference to my application)

WRN: Assembly binding logging is turned OFF.

To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

Note: There is some performance penalty associated with assembly bind failure logging.

To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Yet, it runs ok when started by the debugger of Visual Studio 2010. 

Can anybody help us to understand what this error really means? Why  IE cannot start whereas Visual Studio 2010 can on the same computer with the same registry setting?

Internet explorer cannot display the webpage

$
0
0

Hi

I have hosted my asp.net application on windows server 2003. Its working fine but sometime on some systems whenever we browse for havy data inernet explorer stops and display a message that internet explorer can not display the webpage.

At the same time if i access the same page from Mozilla or Chrome it works fine.

If any body have understood the prolem and know the answer, please let me know.

Thanks,

Dheeraj Sharma

Viewing all 3561 articles
Browse latest View live


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