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

The virtual path '...' maps to another application, which is not allowed.

$
0
0

Hi, when call localhost I have this error, why?
Can you help me? Happy new year.

Server Error in '/_aspx' Application.

Parser Error

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: The virtual path '/ver2/Login/Login.aspx.cs' maps to another application, which is not allowed.

Source Error:


Line 1:  <%@ Page Language="C#" AutoEventWireup="true" CodeFile="/ver2/Login/Login.aspx.cs"
Line 2:      Inherits="Login" %>
Line 3:

Source File: /_Aspx/WebApplication1/ver2/Default.aspx    Line: 1

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

 


Starting IIS Express website

$
0
0

Hello

I have created a batch file to start the web server (IIS Express). The site is configured to run on port 48000.

When the site has started, I get the IIS icon in the system tray and it displays the site in the list of sites available. However, I would like the batch file to open the site in the browser as well.

I tried :: START iexplore http://localhost:48000, but this line isnt opening the site. 

Any ideas?

Database Location?

$
0
0

Hi... Newbie here...

I'm using Visual Studio Express Edition 2012 for Web.

When I create an MVC3 Web Application, App_Data is already added and the ConnectionStrings area also added in Web.config which is;

<add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-QICSkillsForce-20121231165110;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-QICSkillsForce-20121231165110.mdf" />

Now, when I run my apps which I have auto populate class, it populate the db but I can't find where the database located... It didn't store in App_Data. Where can i find the DB? How can i make it store in App_Data folder?

Plus.. Can I add SQL Server Database in App_Data and point the connection string to added DB? How will I do that?

I tried creating QICSkillsForce.mdf in the App_Data and the connection strings in Web.config is;

<add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=QICSkillsForce;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\QICSkillsForce.mdf" />


but it won't populate my db... what's wrong?

Permission on Published Folders

$
0
0

Hello Guys, Happy New Year 2013 to everybody.

i hope somebody could give me some ideas about this. I have folder ~/Images/ where all of my images are stored. In development, i don't have any issue. But after publishing my web application into another separate server, I can no longer write to the said folder thru my Image Web (if (FileUpload.Hasfile { FileUpload.SaveAs(ImagePath) }.

Is there anything I should configure in IIS or where? I add my user account in IIS Manage Permission but I cannot still write.

thanks in advance. Jim

Deploy WCF webservice, Windows service and Website

$
0
0

Hi Everyon,
I want to create a setup project, which creates Databases in SQL server 2008,deploy wcf web service in IIS7.0, Windows service andWebsite. Can anybody help me that how i can create a deployment package for all of them in a single exe file. Waiting for you quick response. Thanks in advance.

httpCompression settings

$
0
0
<system.webServer><urlCompression doStaticCompression="true" doDynamicCompression="true"
  dynamicCompressionBeforeCache="true" /><httpCompression><scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" staticCompressionLevel="9" dynamicCompressionLevel="4"  /></httpCompression></system.webServer>

I have this code in my web.config for an ASP.NET 4.5 website running in IIS 7.5

I wonder if having an empty <httpCompression>  section (without directory="..." and other internal elements like  and such) will cause issue or the default attributes/elements for this section are correctly read from IIS applicationHost.config

What I'm trying to do here is just set the compression on and the compression ratio in the web.config without overriding or clearing other default values. Could I remove name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" from the scheme as well in the web.config and just leave staticCompressionLevel and dynamicCompressionLevel in the scheme tag? Would those attributes be read from applicationHost.config

Host a second site (*.com) in the same Web Application?

$
0
0

Hello,

I have a single ASP.NET web application.  Can I create a new folder in my ASP.NET web application, called "MyNewSite", and somehow configure IIS to point a domain to it?  Let's assume my current site is "mysite.com", and so I want "mynewsite.com" to point to the new "MyNewSite" folder.  I don't want to create a second web application.

Thanks!

Standard Application_Error code for Global.asax

$
0
0

Hello,

my code for the Application_Error area of Global.asax is pretty messy for my public website.  Things that I've had to write code for:

1.  Search engine bots that make invalid requests

2.  Random web crawling tools by ZmEu and other malicious bots out there

Would anyone be willing to share their code for Application_Error that is a best practice and handles the above?

Thanks!

 


Managing log files and log rotation on shared server

$
0
0

I am on a shared hosting server with unlimited disk space (as it is mentioned in plesk). Until know i have not seen the Log files of my site, But now i need to analyze them. Righ now what i can see is a single log file of size 1.50 GB( i think they allow max 2 GB) also the option of choosing log rotation settings. Now i am confused what to do, I have option like: Download 1.50 GB log file, delete the file from server and set Log Rotation option to set multiple small log files. But i have some concerns now:

1) how to analyze the 1.50 GB log file on my local PC. I have downloaded 800 MB file from 1 of my other domain and its not even opening in microsoft word, telling its too large. Will Awstats do the job ?

2) Now for log rotation which condition to set, By time or Size and maximum no of log files.

Thanks

"Virtual Path" Issue When Deploying App

$
0
0

In a separate thread I was assured that as of VS2008 one could reference the root of an ASP.NET app with just a single forward slash: "/"

I've made this the case throughout my VS2012/ASP.NET 4.0 app.  And within the Visual Studio IDE it does run fine.  But when I deploy it to run under IIS7 I get this error message:

                          "The virtual path '/main.master' maps to another application, which is not allowed."

I assure you that I have just one application that I'm working with!

The Source Error code lines are as follows:

<%@ Page Language="C#" MasterPageFile="/main.master" AutoEventWireup="true" Inherits="_default" Codebehind="default.aspx.cs" %>
<%@ MasterType VirtualPath="/main.master" %>

As you see on both lines, there's no tilde ("~") character.  It used to be there, before both of the "/main.master" occurrences but I removed them as per the first sentence in this posting.  However, when I do change those lines in "default.aspx" as follows:

<%@ Page Language="C#" MasterPageFile="~/main.master" AutoEventWireup="true" Inherits="_default" Codebehind="default.aspx.cs" %>
<%@ MasterType VirtualPath="~/main.master" %>

the error does disappear but then another similar error appears in another file.  The reason I'm hesitant to keep on adding tildes back throughout the app is that I suspect this is not really addressing the problem at hand -and- perhaps there's a simpler solution to the problem.

Any advice would be much appreciated!

Robert

How can I run a Remote Batch

$
0
0

I have a forum on one server, upon user hitting the click button, if everything goes well. I need to be able to process a batch file on the another server.

Someone told me that I can use the WMI but I am new to it. How can I execute a batch file from another server.

Thanks

-Sarah

how to increase get parameters size from web config or code

$
0
0

Dear Friends, i am integrating ebs payment gateway  but getting issue like 'server error' during returning response message from payment gateway. then payment gateway provider told that you should to increased get parameter size. please help me how can i do that .??

 

Sys.Webforms.PageRequestManagerServerErrorException server error 503

$
0
0

I am Referring to this link as i have to write file from one server to another i am trying to create a custom domain account on windows server

i Have done all as told in the link however when i browse the site i get the following error

enter image description here

I was refferring the following link for the error

However no success yet

I get this error when i authorise my network service for the application pool

Access to the path '\\servername\c$\fromvini\abc.text is denied.'

loginView not working on internet but working in localhost

$
0
0

Hello
i just finished the ASPNET_Security_Tutorial_14_CS tutorial for user security ,it working fine on the localhost, but after uploading to the internet, the loginview not showing the username, i connected them to the databse on the internet, and run the both websites, online and oon the localhost at the same time, when login localhost showing the username but the internet not showing, i think its a problem with web.config file please check

<configuration>  <connectionStrings>    <!-- <add name="SecurityTutorialsConnectionString" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\SecurityTutorials.mdf;User Instance=true" providerName="System.Data.SqlClient"/>-->    <add name="SecurityTutorialsConnectionString" connectionString="Server=mssql3.royaltyservers.com;Database=koorabe_haybet;User Id=webpage;Password=1234561789;" providerName="System.Data.SqlClient"/>  </connectionStrings>  <appSettings/>  <system.web>    <customErrors mode="Off"/>    <!--            Set compilation debug="true" to insert debugging            symbols into the compiled page. Because this            affects performance, set this value to true only            during development.        -->    <compilation debug="true">      <assemblies>        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>        <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>        <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>        <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>        <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>      </assemblies>    </compilation>    <!--            The <authentication> section enables configuration            of the security authentication mode used by            ASP.NET to identify an incoming user.        -->    <authentication mode="Forms">      <forms slidingExpiration="true" timeout="60"/>    </authentication>    <machineKey decryption="AES" validation="SHA1" decryptionKey="1513F567EE75F7FB5AC0AC4D79E1D9F25430E3E2F1BCDD3370BCFC4EFC97A541" validationKey="32CBA563F26041EE5B5FE9581076C40618DCC1218F5F447634EDE8624508A129"/>    <membership defaultProvider="SecurityTutorialsSqlMembershipProvider">      <providers>        <!-- Add a customized SqlMembershipProvider -->        <add name="SecurityTutorialsSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="SecurityTutorialsConnectionString" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="SecurityTutorials" requiresUniqueEmail="true" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>      </providers>    </membership>    <roleManager enabled="true" defaultProvider="SecurityTutorialsSqlRoleProvider" cacheRolesInCookie="true" createPersistentCookie="false" cookieProtection="All">      <providers>        <add name="SecurityTutorialsSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" applicationName="SecurityTutorials" connectionStringName="SecurityTutorialsConnectionString"/>      </providers>    </roleManager>    <!--            The <customErrors> section enables configuration            of what to do if/when an unhandled error occurs            during the execution of a request. Specifically,            it enables developers to configure html error pages            to be displayed in place of a error stack trace.        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">            <error statusCode="403" redirect="NoAccess.htm" />            <error statusCode="404" redirect="FileNotFound.htm" />        </customErrors>        -->    <pages>      <controls>        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>      </controls>    </pages>    <httpHandlers>      <remove verb="*" path="*.asmx"/>      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>      <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>    </httpHandlers>    <httpModules>      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>    </httpModules>  </system.web>  <system.codedom>    <compilers>      <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">        <providerOption name="CompilerVersion" value="v3.5"/>        <providerOption name="WarnAsError" value="false"/>      </compiler>    </compilers>  </system.codedom>  <system.webServer>    <validation validateIntegratedModeConfiguration="false"/>    <modules>      <remove name="ScriptModule"/>      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>    </modules>    <handlers>      <remove name="WebServiceHandlerFactory-Integrated"/>      <remove name="ScriptHandlerFactory"/>      <remove name="ScriptHandlerFactoryAppServices"/>      <remove name="ScriptResource"/>      <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"/>      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>      <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>    </handlers>  </system.webServer>  <runtime>    <assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1">      <dependentAssembly>        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>      </dependentAssembly>      <dependentAssembly>        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>      </dependentAssembly>    </assemblyBinding>  </runtime>  <!-- Update the <smtp> settings -->  <system.net>    <mailSettings>      <smtp deliveryMethod="Network" from="postmaster@haybet.com">        <network host="mail.haybet.com" userName="postmaster@haybet.com" password="12345678" port="587"/>      </smtp>    </mailSettings>  </system.net>  <!-- Only allow authenticated users to view ChangePassword.aspx -->  <location path="ChangePassword.aspx">    <system.web>      <authorization>        <deny users="?"/>      </authorization>    </system.web>  </location></configuration>

 

Deploy Project Question

$
0
0

Hi, I am deploying my first project in Visual Studio 2010. I Published the project as FTP. I used FileZilla to move the cresated directory over to the server. However, when I view the page in the browser I am seeing the code - not the form. Any pointers on what I am doing wrong? Thanks


Anyone have any success running an ASP.Net app via TeamViewer's VPN?

$
0
0

I was experimenting with TeamViewer's VPN capabilities to see if I could get a friend to run an app I've deployed on a private server at my home office.

The problem is that, while the VPN connection to the server is established, it can't seem to talk with IIS.

A colleague of mine suggested that there must be some little "trick" to get this to work but everything I've tried so far hasn't work.

If you've successfully done this could you share the magic of how you accomplished it?

Robert

ASP.Net file sharing application configuration

$
0
0

Hello All,

I have ran into a problem with an ASP.Net application.  I am running the ASP.Net application on IIS 6.  The application is set up so that users have their own folder to place their files in.  When a user uploads a file to the file server using the ASP.Net application/site, the file inherits the owner 'Administrator'.  The only problem with this is that when a user goes to download the same file, it doesn't allow them to download the file because of the owner is 'Administrator' when the owner actually needs to be the user.  I can go into advanced permissions and set it to that it passes down the user as the owner, but when a new file is uploaded into the users folder, I have to do it manually everytime.  Is there another way to make a file inherit ownership (not permissions) from the immediate upper level folder?

RE: Re: how can access folder&#39;s pages according to roles in c# vs2005 in web.config?

$
0
0

The scenario is :

I am working on role based project in vs2005 and sql server2005. I defined the role in database and added custom role provider. I have two roles like "admin" and "user". I created two folder in project and placed the pages in these folder (admin and user) according to roles. Now I want to add code in web.config for accessing the pages according to roles means admin can see only admin folder pages and user can see only user folder pages.

If I define only one page for admin and one page for user in tag with roles authorization then they work fine. But if I used more than one pages in both folder then I need to define all pages in web.config file for both.

I used ` tag like this

<location path="user/userpage1.aspx"> <system.web> <authorization> <allow roles="user"/> <deny users="*"/> </authorization> </system.web> </location>

Is there any possibility to assign a role for a folder instead of a page in tag. If yes, Please give some valuable ideas to implement this.

Which of the following performed to fully debug an asp.net application running on same machine as a debugger?

$
0
0

1.Enable Debug information in the .net Asssembly

2.Setting Debug Attribute of the compilation element to true in the web.config file.

3. Enabling asp.net debugging in the IIS Metabase.

Encrypt Webconfig file

$
0
0

Hi all,

how to Encrypt Webconfig file other then aspnet_regiis.exe?,if other ways to encrypt webconfig file please give tricks.

thanking you

Viewing all 3561 articles
Browse latest View live


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