Configuration and Deploymenthttp://forums.asp.net/26.aspx/1?Configuration+and+DeploymentConfiguring and deploying ASP.NET applications - web.config, \bin, etc.Tue, 21 May 2013 06:18:59 -0400urn:uuid:00000000-0000-0000-0000-000000000026urn:uuid:00000000-0000-0000-0000-000005400652http://forums.asp.net/p/1908430/5400652.aspx/1?Deploying+Website+in+Vs+2012Deploying Website in Vs 2012 <p>I have a website that was originally built on vs 2010 (.net 4.0).</p> <p>I opened it in vs 2012 and changed the web.config &quot;targetFramework&quot; to &quot;4.5&quot; instead of &quot;4.0&quot; , tried to build it and it was successfull.</p> <p>There is no &quot;Add WebDeployment&quot; in vs 2012.What should i do to deploy the website on the server?All what i have found is for web projects,but mine is a website.&nbsp;</p> <p>The website is currently running on server and using 4.0.What are the changes i should do to replace it?</p> <p>I have : Windows server 2008 R2 and IIS 7 and i have installed .net 4.5.</p> 2013-05-21T08:38:18-04:002013-05-21T08:38:18.453-04:00urn:uuid:00000000-0000-0000-0000-000005392034http://forums.asp.net/p/1905571/5392034.aspx/1?Failing+recycle+after+deploying+new+dllFailing recycle after deploying new dll <p>Hello!</p> <p>I'm having a problem where when I try to upload a new .dll or web.config on one of my projects the server fails to recycle automatically. At least that is what I suspect is happening. The app pool doubles in memory and the process increases dramatically until it eventually seems to crash.</p> <p>When I recycle manually it works quite well and there are not problems. Also the auto recycling seems to work well for some other applications.</p> <p>Does anyone know what the problem might be? Could unclosed connections or such cause this?</p> <p>Thanks!</p> <p>/Juha</p> 2013-05-13T07:52:51-04:002013-05-13T07:52:51.35-04:00urn:uuid:00000000-0000-0000-0000-000003746174http://forums.asp.net/p/1539386/3746174.aspx/1?Transfer+file+via+SFTP+Transfer file via SFTP <p>Hi,</p> <p>Can any body tell me how to transfer file via SFTP in .net? Does .net have library for this?</p> <p>Best Regards,</p> <p>Salman Farrukh<br> </p> 2010-03-23T13:10:39-04:002010-03-23T13:10:39.65-04:00urn:uuid:00000000-0000-0000-0000-000005401143http://forums.asp.net/p/1908520/5401143.aspx/1?Release+option+is+not+available+under+configurationRelease option is not available under configuration <p>Under configuration in vs 2012 i have only Debug and release is not appearing.What should i do?</p> 2013-05-21T14:29:18-04:002013-05-21T14:29:18.753-04:00urn:uuid:00000000-0000-0000-0000-000005393765http://forums.asp.net/p/1905996/5393765.aspx/1?deploying+method+using+visual+studiodeploying method using visual studio <p>if i am using Visual Studio to develop a web-based with c# language project in a UAT server, how can i deploy all the source code to another server (Production server) by visual studio?</p> <p>if i have config file cantain all the server info.</p> <p>how many methods?</p> 2013-05-14T16:30:21-04:002013-05-14T16:30:21.207-04:00urn:uuid:00000000-0000-0000-0000-000005400778http://forums.asp.net/p/1908445/5400778.aspx/1?Publishing+Asp+net+websitePublishing Asp.net website <p>Hi All,</p> <p>when we&nbsp;go for&nbsp;a website manual publish, what are the files will be copied to publish folder.</p> <p>since my website includes like datasources,service references,dll's,web pages,web.config,global.asax,classes,proxies and controllers...etc,.</p> <p>&nbsp;</p> <p>please explain me the same, with some examples.</p> <p>Thanks</p> <p>&nbsp;</p> 2013-05-21T09:47:00-04:002013-05-21T09:47:00.51-04:00urn:uuid:00000000-0000-0000-0000-000005394038http://forums.asp.net/p/1906060/5394038.aspx/1?How+do+I+include+application+files+in+a+Clickonce+application+How do I include application files in a Clickonce application? <p>I am developing an application that has a number of support files. Currently there are three .txt files and one .xml file: as the project progresses there will probably be more.&nbsp; These files exist in the root directory of the project, and are visible and editable with Visual Studio or Windows Explorer.</p> <p>In initial testing I used code like this to get the file name so that the program could read the data: -</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim Filename As String = My.Settings.CommonPath &amp; &quot;\&quot; &amp; My.Settings.States<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim InputTable As New StreamReader(Filename, System.Text.Encoding.Default)</p> <p>My.Settings.states has value &quot;States.txt&quot;. My.Settings.CommonPath has a value<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Users\Advanced Computers\Documents\Visual Studio 2010\Projects\Jazz\Jazz</p> <p>Thus, by putting these two together I get the complete path to the file, and InputTable reads the .txt file. This all works perfectly when I run the program locally with Visual Studio debugging.</p> <p>Now I want other members of the project team to be able to start working with the prototype application, so I've set up a web site that includes project status reports and a [Run] button to download the application and run it. I published the application as a ClickOnce, using the option &quot;Run from Website&quot;. You can click this and the software downloads and starts running, but fails when it tries to read the file. Hardly surprising: the folder C:\Users\Advanced Computers\Documents\Visual Studio 2010\Projects\Jazz\Jazz is on my laptop, and not accessible to the clickonce user.</p> <p>I changed the Dim Filename ... statement to</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim Directory As String = My.Application.Info.DirectoryPath<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim Filename As String = Directory &amp; &quot;\&quot; &amp; My.Settings.States</p> <p>When I run a Visual Studio this fails because Directory has value that adds &quot;\Debug\Bin&nbsp; to C:\Users\Advanced Computers\Documents\Visual Studio 2010\Projects\Jazz\Jazz</p> <p>I moved states.txt from the project root to \Debug\bin. This allowed my program to run from Visual Studio, but now I couldn't see it in VS, and I couldn't find any way of making it visible in Solution Explorer.&nbsp; I then re-published the application, but States.txt didn't seem to be included because when I tested the ClickOnce it didn't find the file.</p> <p>What I want to achieve: -</p> <p>1.&nbsp;&nbsp; When I publish the application, states.txt (and the other similar files) are included in the manifest to that they become available with the ClickOnce.</p> <p>2.&nbsp;&nbsp; I can leave states.text (etc) in the project root folder, where it is easy to manage them as part of the project.</p> <p>How do I do this?</p> <p>Thank you, Robert</p> 2013-05-15T01:19:29-04:002013-05-15T01:19:29.02-04:00urn:uuid:00000000-0000-0000-0000-000005399866http://forums.asp.net/p/1908241/5399866.aspx/1?Web+config+write+rewrite+rule+for+gclid+in+asp+netWeb.config write rewrite rule for gclid= in asp.net <p>Hello Team,</p> <p>Could you please help me to rewrite the rule in web.config? I have to write rule for gclid=&nbsp;</p> <p>My web.config rules are as follows:</p> <pre class="prettyprint">&lt;system.webServer&gt; &lt;rewrite&gt; &lt;rules&gt; &lt;rule name=&quot;GCLID Rule&quot; stopProcessing=&quot;true&quot;&gt; &lt;match url=&quot;^(.*)$&quot;/&gt; &lt;conditions logicalGrouping=&quot;MatchAll&quot;&gt; &lt;add input=&quot;{QUERY_STRING}&quot; pattern=&quot;^(gclid=.*)&quot; /&gt; &lt;/conditions&gt; &lt;action type=&quot;Rewrite&quot; url=&quot;/Default.aspx/{R:1}?&quot; /&gt; &lt;/rule&gt; &lt;rule name=&quot;Redirect to WWW&quot; stopProcessing=&quot;true&quot;&gt; &lt;match url=&quot;.*&quot; /&gt; &lt;conditions&gt; &lt;add input=&quot;{HTTP_HOST}&quot; pattern=&quot;^idimplants.com.au$&quot; /&gt; &lt;/conditions&gt; &lt;action type=&quot;Redirect&quot; url=&quot;http://www.idimplants.com.au/{R:0}&quot; redirectType=&quot;Permanent&quot; /&gt; &lt;/rule&gt; &lt;/rules&gt; &lt;/rewrite&gt; &lt;defaultDocument&gt; &lt;files&gt; &lt;clear /&gt; &lt;add value=&quot;default.aspx&quot; /&gt; &lt;add value=&quot;Default.htm&quot; /&gt; &lt;add value=&quot;Default.asp&quot; /&gt; &lt;add value=&quot;index.htm&quot; /&gt; &lt;add value=&quot;index.html&quot; /&gt; &lt;add value=&quot;iisstart.htm&quot; /&gt; &lt;/files&gt; &lt;/defaultDocument&gt; &lt;/system.webServer&gt;</pre> <p>However above rewrite rule is not working. It is redirecting to default page i.e. home page of my site.</p> <p>This should work like when I write&nbsp;</p> <pre class="prettyprint"><a href="http://www.idimplants.com.au/?gclid=">http://www.idimplants.com.au/?gclid=</a></pre> <pre class="prettyprint">It should remain as it is with its home page.</pre> <p><br> Thanks in advance</p> <p></p> 2013-05-20T14:08:51-04:002013-05-20T14:08:51.767-04:00urn:uuid:00000000-0000-0000-0000-000005400398http://forums.asp.net/p/1908368/5400398.aspx/1?how+to+activate+or+deactivate+a+published+web+appln+how to activate or deactivate a published web appln <p>Hi,</p> <p>We have asp.net web appln created in our company.&nbsp; being used by HR for&nbsp; accessing by all the employees.</p> <p>Now HR says that that appln&nbsp;should&nbsp;be shut down and they want publish / enable /activate&nbsp;that appln again next year only.</p> <p>Can anyone tell mehow to shut down this applcation now. so that i should be able to enable/activate it&nbsp; again&nbsp; in the month April-2014.&nbsp;</p> <p>any help&nbsp; is appreciated,.</p> <p>am using&nbsp; asp.net 3.5 / sql server 2008</p> 2013-05-21T04:59:52-04:002013-05-21T04:59:52.31-04:00urn:uuid:00000000-0000-0000-0000-000005399135http://forums.asp.net/p/1908086/5399135.aspx/1?Targetframe+work+errorTargetframe work error <p>when i am trying to upload i've got the following error</p> <p></p> <h2><i>Configuration Error</i></h2> <p><span></span><span face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif " style="font-family:Arial,Helvetica,Geneva,SunSans-Regular,sans-serif"><span face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif " style="font-family:Arial,Helvetica,Geneva,SunSans-Regular,sans-serif"><b>Description:&nbsp;</b>An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.&nbsp;<br> <br> <b>Parser Error Message:&nbsp;</b>The 'targetFramework' attribute in the &lt;compilation&gt; element of the Web.config file is used only to target version 4.0 and later of the .NET Framework (for example, '&lt;compilation targetFramework=&quot;4.0&quot;&gt;'). The 'targetFramework' attribute currently references a version that is later than the installed version of the .NET Framework. Specify a valid target version of the .NET Framework, or install the required version of the .NET Framework.<br> <br> <b>Source Error:</b>&nbsp;<br> <br> </span></span></p> <table width="100%" bgcolor="#ffffcc"> <tbody> <tr> <td> <pre>Line 11: &lt;/connectionStrings&gt; Line 12: &lt;system.web&gt; <span color="red" style="color:red">Line 13: &lt;compilation debug=&quot;true&quot; strict=&quot;false&quot; explicit=&quot;true&quot; targetFramework=&quot;4.5&quot;&gt; </span>Line 14: &lt;assemblies&gt; Line 15: &lt;add assembly=&quot;System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A&quot; /&gt;</pre> &lt;div&gt;&lt;/div&gt; </td> </tr> </tbody> </table> 2013-05-19T21:20:18-04:002013-05-19T21:20:18.09-04:00urn:uuid:00000000-0000-0000-0000-000005400028http://forums.asp.net/p/1908273/5400028.aspx/1?Importing+key+file+Pfx+was+Canceled+Importing key file *.Pfx was Canceled. <p>I am trying to download a Visual C# application from the TFS on to the local machine now its using a file&nbsp;RedRibbonPrintServer_TemporaryKey.pfx and I am getting the following two errors.</p> <p>Cannot import the following key file. The key file may be password protected. To correct this, try to import the certificate again or import the certificate manually into the current user's personal certificate store.</p> <p>Importing key file &quot;RedRibbonPrintServer_TemporaryKey.Pfx&quot; was Canceled.</p> <p></p> <p>What needs to be done so that this application builds successfully.</p> 2013-05-20T16:34:57-04:002013-05-20T16:34:57.223-04:00urn:uuid:00000000-0000-0000-0000-000005399611http://forums.asp.net/p/1908196/5399611.aspx/1?pseudo+Streaming+dll+failed+to+load+in+iis+7+0pseudo Streaming dll failed to load in iis 7.0 <p><span>I am getting this error when I add the handlers for implementing pseudo Streaming video mentioned in below url</span></p> <pre><pre class="prettyprint">http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Internet-Information-Services-IIS7-Version2</pre></pre> <p>When I run the website from the IIS 7 web server the application pool gets stopped due to this error. I am using asp.net 4.0, Windows OS 7 home premium. IIS 7 with all the features installed provided by IIS 7 on windows</p> <p>The screen shot are attached below</p> <pre><pre class="prettyprint">Error 1 on IIS 7</pre></pre> <p><span><img src="http://i.stack.imgur.com/DwsWt.png" width="640" height="446" /></span></p> <pre><pre class="prettyprint">Error 2 on IIS 7</pre></pre> <p><span><img src="http://i.stack.imgur.com/dsfuB.png" width="791" height="522" /></span></p> <p>and when I browse the application through iis i get this on my browser</p> <pre><pre class="prettyprint">Service Unavailable HTTP Error 503. The service is unavailable. </pre></pre> <p>When I remove pseudo Streaming video handler mapping from my IIS every thing works fine I have no problem open my website through IIS . but I need to implement pseudo Streaming video in my website</p> <p><span><br></span></p> <p><span><br></span></p></pre> 2013-05-20T10:44:09-04:002013-05-20T10:44:09.773-04:00urn:uuid:00000000-0000-0000-0000-000005392235http://forums.asp.net/p/1905624/5392235.aspx/1?The+Microsoft+Jet+OLEDB+12+0+provider+is+not+registered+on+the+local+machineThe 'Microsoft.Jet.OLEDB.12.0' provider is not registered on the local machine <p>Hi..</p> <p>I am trying to integrate my website with the present company website.It was running in windows server 2003 and we had to migrate the server into server 2008 because of the framework issues with VS 4.0 with which my website is made.After migration,the framework issues were solved.&nbsp;I am facing with another issue now.Since our <span dir="ltr"> database is MS Access 2010 and we use Provider=Microsoft.Jet.OLEDB.<wbr>12.0;Data Source=|DataDirectory|\HR Portal.accdb as the connection string.</span><span title="sinjumujeeb@gmail.com"> </span><span dir="ltr">Now when i uploaded all the pages with the existing pages,when i open my pages,connection cannot be established.error is showing as &quot; The 'Microsoft.Jet.OLEDB.12.0' provider is not registered on the local machine&quot;.</span><span title="sinjumujeeb@gmail.com"> </span><span dir="ltr">when i was running the website in windows 2003 server this error was not there.there was 4.0 framework issues.now when that got solved,this error came.What should i do?any idea?my system is 32 bit.Hope someone will help me soon..its really urgent.</span></p> 2013-05-13T11:03:48-04:002013-05-13T11:03:48.863-04:00urn:uuid:00000000-0000-0000-0000-000005392614http://forums.asp.net/p/1905717/5392614.aspx/1?automated+nightly+buildsautomated nightly builds <p>Hello,</p> <p>Not sure if this is the right place for this question..but we have currently a project that is on VS2008 with nunit unit tests and watin web tests. The process we have is: before we trunk our changes, we run all our unit tests..a min or so to run about 2000 tests..then the watin integration tests (800 of them). The problem is it takes about 1 to 2 hrs depending on how good the local machine is run them all. That is the source of our problem and my question here. Our machines for that 1 to 2 hrs is not usable since we want full process power focused on running tests and get it over with. Can someone tell us what they are doing to run integration (web) tests that click through anywhere between 4 and 10 web pages? what can we do to make it faster? I am looking for ideas...we know we want to change it..but no idea what options are out there.</p> <p>Thanks</p> <p>D</p> 2013-05-13T16:54:07-04:002013-05-13T16:54:07.59-04:00urn:uuid:00000000-0000-0000-0000-000005395778http://forums.asp.net/p/1906449/5395778.aspx/1?Server+Error+in+Application+error+and+refreshing+web+configServer Error in '/' Application error and refreshing web.config <p>Hi Guys,</p> <p>My site <a href="http://buy.apeshop.com.au/">http://buy.apeshop.com.au/</a> which uses windows asp.net will work fine one minute, but without changing or touching anything it will go continually go down, this happens continually almost every day, I get this error:</p> <p>Server Error in '/' Application.<br> Input string was not in a correct format.</p> <p>Strange fix:</p> <p>When this error occurs, if I logon via FTP and rename web.config to web2.config then tried to load the site it will obviously fail<br> Then I renamed it back to web.config and the site comes up. As renaming (same as deleting and re-uploading) will reload the web.config itself.&nbsp; I also uploaded an old copy of web.config which fixed the error at first so site loads but again hours later same error message.</p> <p>Obviously it is important that the site actually stays live for more than 24hrs, I understand my little web.config refresh brings the site back but then the error simply keeps happening again every few hours</p> <p>Please what can be done? Would really appreciate some help!</p> <p>cheers</p> 2013-05-16T10:01:03-04:002013-05-16T10:01:03.907-04:00urn:uuid:00000000-0000-0000-0000-000005399397http://forums.asp.net/p/1908137/5399397.aspx/1?IIS+Error+CS0016+Could+not+write+to+output+file+C+WINDOWS+microsoft+net+Framework+V2+0+50727+Temporary+FilesIIS Error : CS0016: Could not write to output file C:\WINDOWS\microsoft .net\Framework\V2.0.50727\Temporary Files <p>Hi All,</p> <p>I am getting below error while accessing my application after deployment,</p> <p>CS0016: Could not write to output file C:\WINDOWS\microsoft .net\Framework\V2.0.50727\Temporary Files --<br> The directory name is invalid</p> <p>Any solution?</p> <p>Thanks in advance.</p> 2013-05-20T07:11:59-04:002013-05-20T07:11:59.137-04:00urn:uuid:00000000-0000-0000-0000-000005398815http://forums.asp.net/p/1907996/5398815.aspx/1?Virtual+directory+access+errorVirtual directory access error <p>Hi,</p> <p>I wrote this website and put it's files on httpdocs folder on the server an also I wrote an admin section and put it's files on adminfiles folder on the same server.</p> <p>in the adminfiles i created a virtual directory that points to a folder named &quot;Images&quot; on the httpdocs to add or delete images.</p> <p>but when I want to create a file inside this virtual directory it gives me this error:</p> <h1>Server Error in '/' Application.</h1> <hr width="100%" size="1" color="silver"> <h2><i>Security Exception</i></h2> <p><span></span><span face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "><b>Description:&nbsp;</b>The application attempted to perform an operation not allowed by the security policy. &nbsp;To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.&nbsp;<br> <br> <b>Exception Details:&nbsp;</b>System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.</span></p> <p></p> <p>CAN ANYONE HELP ME?</p> 2013-05-19T00:34:24-04:002013-05-19T00:34:24.61-04:00urn:uuid:00000000-0000-0000-0000-000005399071http://forums.asp.net/p/1908064/5399071.aspx/1?Deploy+Asp+net+websiteDeploy Asp.net website <p>Hello ,&nbsp;</p> <p>I've made a website using aps.net v2012 , i cant piblish the website to the host target because &nbsp;&quot;The Web server does not appear to have FrontPage Server Extensions installed. &quot;&nbsp;</p> <p>Is there any other way to deploy the website without source code ?</p> <p></p> <p>Thank you in advance</p> 2013-05-19T18:11:18-04:002013-05-19T18:11:18.193-04:00urn:uuid:00000000-0000-0000-0000-000005393298http://forums.asp.net/p/1905890/5393298.aspx/1?How+To+Configure+Wild+Character+Subdomain+in+IIS+How To Configure Wild Character Subdomain in IIS? <p>For example, the following two example URLs resolve to the sameIP address:</p> <ul> <li> <p>abc.apps.com 200.100.1.22</p> </li><li> <p>xyz.apps.com resolves to 200.100.1.22</p> </li><li>ccc.apps.com resolves to 200.100.1.22 </li></ul> <p>There are about 15,000&nbsp; subdomains in hosting. Instead ofcreating 15,000 DNS entries in the DNS server for zone to the server farm uses a wildcard DNS entry:</p> <ul> <li> <p>*.appps.com resolves to 200.100.1.22</p> </li></ul> <p>how to create subdomain in iis like using wild character can any one guide how to do this .</p> <p>UPdated :</p> <p>I was resolved the above issue by using concept called Wild Card Subdomain creation in IIS , it will help get above requirement . If you want to do wild card domain creation you need an dediated static ip server .</p> <p></p> <p></p> 2013-05-14T09:55:10-04:002013-05-14T09:55:10.097-04:00urn:uuid:00000000-0000-0000-0000-000005397441http://forums.asp.net/p/1906871/5397441.aspx/1?Why+must+I+keep+the+App_Code+folder+with+my+customized+HttpModule+codes+Why must I keep the App_Code folder with my customized HttpModule codes? <p>Hi all,</p> <p>I wrote a customized module inherited from IHttpModule and when I deploy it onto my IIS (after rebuilding successfully), I find that I cannot delete the App_Code in my IIS, if I remove, error will be thrown out saying I cannot find customized module.</p> <p>Why? I find that in my bin folder, there's a VB.dll file compiled with MyModule, it should not include the code file in the App_Code anymore?</p> 2013-05-18T03:55:44-04:002013-05-18T03:55:44.837-04:00