# Rename of ASMX file does not rename the code behind file

**URL:** https://talk.remobjects.com/t/rename-of-asmx-file-does-not-rename-the-code-behind-file/26102
**Category:** Mercury
**Created:** [January 31, 2022, 1:23pm UTC](https://talk.remobjects.com/t/rename-of-asmx-file-does-not-rename-the-code-behind-file/26102 "2022-01-31T13:23:27Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Theo69](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/35a633/32.png) [@Theo69](https://talk.remobjects.com/u/Theo69)
#### Post date: [January 31, 2022, 1:23pm UTC](https://talk.remobjects.com/t/rename-of-asmx-file-does-not-rename-the-code-behind-file/26102/1 "2022-01-31T13:23:27Z")

</div>

Open visual studio and create a new project - RemObjects Mercury, [ASP.Net](http://asp.net/) Classic Web Service Application.

In the solution explorer, rename Service1.asmx to Exchange.asmx  
The result:

 ![image](https://talk.remobjects.com/uploads/default/original/3X/0/6/06e27cd8ad7592bfe69745f4c9c0a169f807d392.png)  
The code behind file has not been renamed, and it is also not possible to rename it.

---

<div class="post-metadata">

### Author: ![Theo69](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/35a633/32.png) [@Theo69](https://talk.remobjects.com/u/Theo69)
#### Post date: [January 31, 2022, 1:25pm UTC](https://talk.remobjects.com/t/rename-of-asmx-file-does-not-rename-the-code-behind-file/26102/2 "2022-01-31T13:25:22Z")

</div>

Extra info.  
In the elements file you see this after the rename:

 ![image](https://talk.remobjects.com/uploads/default/original/3X/1/b/1b5594650ac8eee5dda0069e660da71d43addf70.png)  
The dependency of the code behind file has also not been updated by the rename.

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [January 31, 2022, 1:49pm UTC](https://talk.remobjects.com/t/rename-of-asmx-file-does-not-rename-the-code-behind-file/26102/3 "2022-01-31T13:49:55Z")

</div>

Logged as [bugs://E25652](https://www.remobjects.com/portal/bugs/?id=E25652).

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [February 1, 2022, 1:01pm UTC](https://talk.remobjects.com/t/rename-of-asmx-file-does-not-rename-the-code-behind-file/26102/4 "2022-02-01T13:01:45Z")

</div>

[bugs://E25652](https://www.remobjects.com/portal/bugs/?id=E25652) was closed as fixed.
